2009年10月14日星期三

raw socket from wiki

In computer networking, a raw socket is a socket that allows direct sending and receiving of network packets by applications, bypassing all encapsulation in the networking software of the operating system.

原始套接字是允许应用程序绕过操作系统网络协议栈的封装,而直接进行网络数据包收发的套接字。

Overview

Most socket application programming interfaces (APIs), especially those based on Berkeley sockets, support raw sockets.

Usually raw sockets receive packets inclusive of the header, as opposed to standard sockets which receive just the packet payload without headers. When transmitting packets, the automatic addition of a header may be a configurable option of the socket.

通常,原始套接字接收到的数据包包括包头,而标准套接字只能收到payload。

Support in Windows XP

When Microsoft released Windows XP in 2001 with raw socket support implemented in the Winsock interface, the media criticized Microsoft asserting that raw sockets are only of use to hackers to perform TCP reset attacks. Three years after the Windows XP release, Microsoft silently limited Winsock's raw socket support in a non-removable hotfix and offered no further support or workarounds for applications that used them.

标签:


评论: 发表评论

订阅 博文评论 [Atom]





<< 主页

This page is powered by Blogger. Isn't yours?

订阅 博文 [Atom]