mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-04-21 16:06:44 +02:00
Compare commits
No commits in common. "48164b572e2200f4518ce866c8f866a6199f1ac0" and "30ddf0eaea2de526acdd3236d27f6788af3576e2" have entirely different histories.
48164b572e
...
30ddf0eaea
@ -236,7 +236,7 @@ int socket_sendto(p_socket ps, const char *data, size_t count, size_t *sent,
|
||||
*sent = 0;
|
||||
if (*ps == SOCKET_INVALID) return IO_CLOSED;
|
||||
for ( ;; ) {
|
||||
long put = (long) sendto(*ps, data, count, 0, addr, len);
|
||||
long put = (long) sendto(*ps, data, count, 0, addr, len);
|
||||
if (put >= 0) {
|
||||
*sent = put;
|
||||
return IO_DONE;
|
||||
@ -403,7 +403,7 @@ const char *socket_hoststrerror(int err) {
|
||||
if (err <= 0) return io_strerror(err);
|
||||
switch (err) {
|
||||
case HOST_NOT_FOUND: return PIE_HOST_NOT_FOUND;
|
||||
default: return strerror(err);
|
||||
default: return hstrerror(err);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user