|
@@ -1055,16 +1055,7 @@ ssize_t inet_sendto(int s, const void *msg, size_t len, int flags,
|
1055
|
1055
|
ssize_t err;
|
1056
|
1056
|
fd_set fdset;
|
1057
|
1057
|
int ret;
|
1058
|
|
-
|
1059
|
|
- int sendbuf;
|
1060
|
|
- socklen_t optlen;
|
1061
|
|
- optlen = sizeof(sendbuf);
|
1062
|
|
- int res = getsockopt(s, SOL_SOCKET, SO_SNDBUF, &sendbuf, &optlen);
|
1063
|
|
-
|
1064
|
|
- error("GetSockOpt: %i \n", res);
|
1065
|
|
-
|
1066
|
|
- error("Socket: %i Data: %p Data Length: %u Flags: %i Address: %p Address Length: %u", s, msg, len, flags, to, tolen);
|
1067
|
|
-
|
|
1058
|
+
|
1068
|
1059
|
if((err=sendto(s, msg, len, flags, to, tolen))==-1) {
|
1069
|
1060
|
error("sendto errno: %d err is: %d", errno, err);
|
1070
|
1061
|
switch(errno)
|