Fix issue reported at https://groups.google.com/group/doubango/browse_thread/thread/4954639e03cd319b#
This commit is contained in:
parent
f463bd8d60
commit
2843d23745
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue