如何访问tcp标头详细信息? [英] How to access tcp header details?

查看:62
本文介绍了如何访问tcp标头详细信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

就像我创建了套接字并将该套接字绑定到客户端一样.我能够连接两个侧面并且能够发送任何数量的数据,它基本上是TCP套接字.我的问题是我想访问TCP标头详细信息以检查和设置某种操作的参数.但是无法做到这一点.我正在用户空间中工作.从套接字级别,我要访问头部分..请您帮我....如果能帮助我,那就太好了.

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..

推荐答案

您可能想要原始套接字.这是

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.

这篇关于如何访问tcp标头详细信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆