Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Want to work with TCP socket without HTTP #4

Open
arsium opened this issue Sep 8, 2024 · 2 comments
Open

Want to work with TCP socket without HTTP #4

arsium opened this issue Sep 8, 2024 · 2 comments

Comments

@arsium
Copy link

arsium commented Sep 8, 2024

Hello,

Firstly thx for the amazing code. I was wondering if it is possible to use with TCP client or raw tcp socket ?

@whSwitching
Copy link
Owner

@arsium TCP client, sure.
recordHeader = read first 5 bytes
recordBodyLength = ((recordHeader[3] << 8) + recordHeader[4]);
recordBody = read recordBodyLength bytes
for your reference
then feed the record to TLSContext.Process_Record

@arsium
Copy link
Author

arsium commented Oct 1, 2024

Do you have a sample code ? That would be kind

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants