Changeset 109 in libcf for trunk/src/cf_socket.c
- Timestamp:
- 06/04/13 14:25:10 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cf_socket.c
r104 r109 510 510 */ 511 511 int 512 CF_Socket_Send (const int sock,513 const void * buf,514 const int len)512 CF_Socket_Send (const int sock, 513 const void * buf, 514 const size_t len) 515 515 { 516 516 return CF_Socket_SendTimeout (sock, buf, len, CF_SOCKET_NO_TIMEOUT); … … 532 532 CF_Socket_SendTimeout (const int sock, 533 533 const void * buf, 534 const int len,534 const size_t len, 535 535 const int timeout) 536 536 { … … 539 539 ASSERT_SOCKET (sock); 540 540 541 result = (int) send (sock, buf, (size_t)len, 0);541 result = (int) send (sock, buf, len, 0); 542 542 if (result != len) 543 543 return CF_ERROR_SOCKET_SEND; … … 556 556 */ 557 557 int 558 CF_Socket_Recv (const int sock,559 void * buf,560 const int len)558 CF_Socket_Recv (const int sock, 559 void * buf, 560 const size_t len) 561 561 { 562 562 return CF_Socket_RecvTimeout (sock, buf, len, CF_SOCKET_NO_TIMEOUT); … … 578 578 CF_Socket_RecvTimeout (const int sock, 579 579 void * buf, 580 const int len,580 const size_t len, 581 581 const int timeout) 582 582 { … … 589 589 return result; 590 590 591 result = (int) recv (sock, buf, (size_t)len, 0);591 result = (int) recv (sock, buf, len, 0); 592 592 if (result < 0) 593 593 return CF_ERROR_SOCKET_RECV;
Note:
See TracChangeset
for help on using the changeset viewer.