Previous article, Linux interprocess communication--using flow sockets to introduce some basic content about sockets (sockets), and to explain the use of the flow sockets, this article will tell you, the use of datagram sockets.a simple review-what
What is socket
A socket interface is an API of a TCP/IP network. A socket interface defines many functions or routines. programmers can use it to develop applications on a TCP/IP network. To learn TCP/IP network programming on the internet, you
Send functionint send (SOCKET s, const char far *buf, int len, int flags);Both the client and the server application use the Send function to send data to the other end of the TCP connection.The client program typically sends a request to the server
Phenomenon:On a Windows 7 system, a uses a UDP socket, which calls the SendTo function to send data to a destination address B, but the destination address B does not receive data, and if a immediately calls Recvfrom to attempt to receive the data
Send Function
Int send (socket S, const char far * Buf, int Len, int flags );
Both the client and server applications use the send function to send data to one end of the TCP connection.
The client program generally uses the send function to send
Send Function
Int send (socket S, const char far * Buf, int Len, int flags );
Both the client and server applications use the send function to send data to one end of the TCP connection.
The client program generally uses the send function to send
Send function
int send (SOCKET s, const char FAR *buf, int len, int flags);
Both the client and the server application use the Send function to send data to the other end of the TCP connection.
The client typically sends a request to the server
Here, the thread model refers to the thread model design related to Winsock.
Some problems in the design process of this software involve Winsock. In order to design the thread model well, we must understand the internal working mechanism of socket.
1 UDP Receive principleThe UDP receiving process of the operating system is as follows: After receiving a UDP packet, after verifying that there is no error, put in a package queue, each element in the queue is a complete UDP packet. When the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.