Welcome![Sign In][Sign Up]
Location:
Search - winsock recv

Search list

[TCP/IP stacktcp-ipayixidailv

Description: 一个简单的TCP客户端程序流程 1、使用WSAStartup()初始化WinSock库。 2、使用socket()创建一个IPPROTO_TCP SOCKET。 3、使用gethostbyname()/gethostbyaddr()获取主机信息。 4、使用connect()和我们创建的套接字连接服务器。 5、使用send()/recv()发送和接收数据,直到我们的TCP会话结束。 6、使用closesocket()关闭套接字连接。 7、使用WSACleanup()释放WinSock。 -a simple TCP client a process, the use of WSAStartup () initialization WinSock library. 2, the use of socket () to create a IPPROTO_TCP SOCKET. 3, the use of gethostbyname () / gethostbyaddr () mainframe access information. 4, the use of connect (), and we create the socket connections server. 5, the use of send () / recv () to send and receive data until we TCP end of the session. 6, the use of closesocket () closes socket connections. 7, the use of WSACleanup () release WinSock.
Platform: | Size: 5096 | Author: 顾谦 | Hits:

[ADO-ODBCOftomatization

Description: 为了方便网络编程,90年代初,由Microsoft联合了其他几家公司共同制定了一套WINDOWS下的网络编程接口,即Windows Sockets规范,它不是一种网络协议,而是一套开放的、支持多种协议的Windows下的网络编程接口。本篇论文主要是介绍了在TCP/IP基础上利用winsock2对网卡进行编程,以达到网络流量监测的目的。论文首先介绍了TCP/IP协议,旨在介绍IP,TCP,UDP等比较重要的协议。主要是介绍IP头,TCP头,UDP头的特点,以便从IP头中可以获取源地址,目的地址,协议类型等信息。在随后的章节中提出了Socket的概念,Socket实际上提供了一个通信端口使所有拥有Socket的端口的计算机之间能够相互通信,在本论文中主要说明了socket的建立,监听和撤销的过程。具体到程序实现中,对网卡混杂模式的设置是通过原始套接字(raw socket)来实现的。为了让原始套接字能接受所有的数据,还需要通过将SOCK_RAW设置成SIO_RCVALL。对数据包的获取通过recv()函数来完成。最后要完成的工作就是对所捕获的IP数据包进行分析以提取出我们所需要的信息。在论文的最后是旨在说明进一步工作的展开. 关键词:网络流量测量 TCP/IP协议 WINSOCK编程 -To facilitate network programming and the beginning of the 1990s, Microsoft jointly by several other companies to develop a set of Windows programming network access , that is, Windows Sockets norms, it is not a network protocol, but a liberal, Multi-protocol support for the Windows network programming interface. The main purpose of this paper is to introduce a TCP / IP based on the use of the card for winsock2 programming, to achieve network traffic monitoring purposes. Papers first introduced the TCP / IP protocol, aimed at introducing IP, TCP, UDP, and other more important agreements. IP is introduced first, the first TCP, UDP first features to the IP header from access to the source address, destination address, Agreement type, and other information. In the ensuing chapters of the Sock
Platform: | Size: 10687 | Author: wq57 | Hits:

[TCP/IP stacktcp-ipayixidailv

Description: 一个简单的TCP客户端程序流程 1、使用WSAStartup()初始化WinSock库。 2、使用socket()创建一个IPPROTO_TCP SOCKET。 3、使用gethostbyname()/gethostbyaddr()获取主机信息。 4、使用connect()和我们创建的套接字连接服务器。 5、使用send()/recv()发送和接收数据,直到我们的TCP会话结束。 6、使用closesocket()关闭套接字连接。 7、使用WSACleanup()释放WinSock。 -a simple TCP client a process, the use of WSAStartup () initialization WinSock library. 2, the use of socket () to create a IPPROTO_TCP SOCKET. 3, the use of gethostbyname ()/gethostbyaddr () mainframe access information. 4, the use of connect (), and we create the socket connections server. 5, the use of send ()/recv () to send and receive data until we TCP end of the session. 6, the use of closesocket () closes socket connections. 7, the use of WSACleanup () release WinSock.
Platform: | Size: 5120 | Author: 顾谦 | Hits:

[Database systemOftomatization

Description: 为了方便网络编程,90年代初,由Microsoft联合了其他几家公司共同制定了一套WINDOWS下的网络编程接口,即Windows Sockets规范,它不是一种网络协议,而是一套开放的、支持多种协议的Windows下的网络编程接口。本篇论文主要是介绍了在TCP/IP基础上利用winsock2对网卡进行编程,以达到网络流量监测的目的。论文首先介绍了TCP/IP协议,旨在介绍IP,TCP,UDP等比较重要的协议。主要是介绍IP头,TCP头,UDP头的特点,以便从IP头中可以获取源地址,目的地址,协议类型等信息。在随后的章节中提出了Socket的概念,Socket实际上提供了一个通信端口使所有拥有Socket的端口的计算机之间能够相互通信,在本论文中主要说明了socket的建立,监听和撤销的过程。具体到程序实现中,对网卡混杂模式的设置是通过原始套接字(raw socket)来实现的。为了让原始套接字能接受所有的数据,还需要通过将SOCK_RAW设置成SIO_RCVALL。对数据包的获取通过recv()函数来完成。最后要完成的工作就是对所捕获的IP数据包进行分析以提取出我们所需要的信息。在论文的最后是旨在说明进一步工作的展开. 关键词:网络流量测量 TCP/IP协议 WINSOCK编程 -To facilitate network programming and the beginning of the 1990s, Microsoft jointly by several other companies to develop a set of Windows programming network access , that is, Windows Sockets norms, it is not a network protocol, but a liberal, Multi-protocol support for the Windows network programming interface. The main purpose of this paper is to introduce a TCP/IP based on the use of the card for winsock2 programming, to achieve network traffic monitoring purposes. Papers first introduced the TCP/IP protocol, aimed at introducing IP, TCP, UDP, and other more important agreements. IP is introduced first, the first TCP, UDP first features to the IP header from access to the source address, destination address, Agreement type, and other information. In the ensuing chapters of the Sock
Platform: | Size: 10240 | Author: wq57 | Hits:

[Internet-NetworkWinsock-Client-Server

Description: client与server通信,server先bind(),listen(),然后client connect(),server accept().client send(),server recv(),然后cout-client and server communications, server before bind (), listen (), then client connect (), server accept (). client send (), server recv (), then court
Platform: | Size: 1463296 | Author: liuliang | Hits:

[Internet-NetworkTCPClientTest

Description: TCP客户端测试程序,建立TCP客户端,连接到指定IP的端口号,收发数据,可以收发hex数据。使用winsock编程。-Tcp client app, build TCP clinet, connect to socket,send data and recv data. make be winsock.
Platform: | Size: 3503104 | Author: ba egc tg | Hits:

CodeBus www.codebus.net