Mercurial > pidgin
comparison src/win32/libc_interface.c @ 12749:13276711babc
[gaim-migrate @ 15096]
This allows us to access the errors, I might need to do something with the blocking for this.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sat, 07 Jan 2006 06:30:27 +0000 |
parents | 40fada5b3d59 |
children | 33bef17125c2 |
comparison
equal
deleted
inserted
replaced
12748:dd271caf25b0 | 12749:13276711babc |
---|---|
309 } | 309 } |
310 else { | 310 else { |
311 /* success */ | 311 /* success */ |
312 return ret; | 312 return ret; |
313 } | 313 } |
314 | |
315 } | 314 } |
316 else | 315 else |
317 return write(fd, buf, size); | 316 return write(fd, buf, size); |
317 } | |
318 | |
319 int wgaim_recv(int fd, void *buf, size_t len, int flags) { | |
320 int ret; | |
321 | |
322 if ((ret = recv(fd, buf, len, flags)) == SOCKET_ERROR) { | |
323 errno = WSAGetLastError(); | |
324 return -1; | |
325 } else { | |
326 return ret; | |
327 } | |
318 } | 328 } |
319 | 329 |
320 int wgaim_close(int fd) { | 330 int wgaim_close(int fd) { |
321 int ret; | 331 int ret; |
322 | 332 |