in networking what type of socket should i use to guarantee that the receiving application has received all of the data in order?
A:
You will need to use the TCP socket (sometimes called reliable). A sample code of creating such socket:
SOCKET s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
dark_charlie
2010-08-10 21:20:55