bossiel 2013-04-02 18:39:13 +00:00
parent f463bd8d60
commit 2843d23745
1 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ tsk_size_t tnet_transport_send(const tnet_transport_handle_t *handle, tnet_fd_t
goto bail;
}
}
else if((numberOfBytesSent = send(from, buf, size, 0)) <= 0){
else if((numberOfBytesSent = tnet_sockfd_send(from, buf, size, 0)) <= 0){
TNET_PRINT_LAST_ERROR("send have failed.");
//tnet_sockfd_close(&from);
@ -236,7 +236,7 @@ tsk_size_t tnet_transport_sendto(const tnet_transport_handle_t *handle, tnet_fd_
goto bail;
}
if((numberOfBytesSent = sendto(from, buf, size, 0, to, tnet_get_sockaddr_size(to))) <= 0){
if((numberOfBytesSent = tnet_sockfd_sendto(from, to, buf, size)) <= 0){
TNET_PRINT_LAST_ERROR("sendto have failed.");
goto bail;
}