[Dev-C++] Sockets API - Newbie - send() function
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Peter D. <don...@ne...> - 2004-11-08 06:08:44
|
Hi, In the send function as per: int send( int socket, const char *buffer, int len, int flags ); If I want to send data like the following: char* string = "hello, internet!"; int sent; sent = send( datasock, string, strlen( string ), 0); I understand the first 3 parameters but can someone tell me what the '0' is as the fourth parameter to the send function? (it is probably a flag but what does it do? does it mean there are no flags?) Many thanks, Peter. |