Revathy
Revathy

Reputation: 103

How to access tcp header details?

Like I have created socket and bound that socket to the client side. I am able to connect two sides and able to send any amount of data.Its basically TCP socket. My problem is that I want to access TCP header details to check and set parameters for some kind of operation. But am not able to do that .I am working in user space. From the socket level I want to access header part.. Can you please help me on this....It would be great if help me..

Upvotes: 2

Views: 1156

Answers (1)

RobH
RobH

Reputation: 3338

You probably want raw sockets. Here's a document on MSDN. Note that access to raw sockets is limited; I'm don't think they are available for non-admins.

Upvotes: 1

Related Questions