Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIdTCPServer - Reading TCP option values from Header packet
#4
(11-22-2024, 04:14 AM)philip.joseph Wrote: Exactly the first approach we are trying here.

Then I can't help you with that. I cant find any information on any implementation that doesn't involve writing a custom socket stack that has direct access to the raw TCP header.

(11-22-2024, 04:14 AM)philip.joseph Wrote: In the second approach, can you give some guidance on how to read this data from TdTCPServer events?

Did you read the documentation I linked to earlier? Provided the LB actually implements this protocol, you would simply read the initial PROXY header message inside the server's OnConnect event, or in the 1st invokation of the OnExecute event, before reading anything else from the socket. It is the first data to arrive at the server after the TCP connection is fully established, before any of the client's tunneled data then arrives.

Reply


Messages In This Thread
RE: TIdTCPServer - Reading TCP option values from Header packet - by rlebeau - 11-28-2024, 11:06 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)