Results 1 to 3 of 3
CWBool CWNetworkSendUnsafeConnected(CWSocket sock, const char *buf, int len) {
if(buf == NULL)
return CWErrorRaise(CW_ERROR_WRONG_ARG, NULL);
while(send(sock, buf, len, 0) < 0) {
if(errno == EINTR) continue;
CWNetworkRaiseSystemError(CW_ERROR_SENDING);
}
return CW_TRUE;
...
- 08-25-2009 #1Just Joined!
- Join Date
- Aug 2009
- Posts
- 5
new to linux.....plz help
CWBool CWNetworkSendUnsafeConnected(CWSocket sock, const char *buf, int len) {
if(buf == NULL)
return CWErrorRaise(CW_ERROR_WRONG_ARG, NULL);
while(send(sock, buf, len, 0) < 0) {
if(errno == EINTR) continue;
CWNetworkRaiseSystemError(CW_ERROR_SENDING);
}
return CW_TRUE;
}
I am new to linux programming......can any body tell me what does the send(sock,buf,len,0) function do in the above code snippet ?
- 08-25-2009 #2Linux Newbie
- Join Date
- Jan 2008
- Location
- Canada
- Posts
- 109
- 08-27-2009 #3Just Joined!
- Join Date
- Aug 2009
- Posts
- 5
Hi Robert,
Thnx for the help


Reply With Quote
