4extern volatile Sjmp_buf gNetTimeoutJmp;
11SRecv(
int sfd,
char *
const buf0,
size_t size,
int fl,
int tlen,
int retry)
15 char *
volatile buf = buf0;
20 if (
SSetjmp(gNetTimeoutJmp) != 0) {
50 tleft = (
int) (done -
now);
59 (
void) alarm((
unsigned int) tleft);
60 nread =
recv(sfd, (
char *)
buf, nleft,
fl);
80 if ((nleft <= 0) || ((retry == 0) && (nleft != (
int)
size)))
97SRecv(
int sfd,
char *
const buf0,
size_t size,
int fl,
int tlen,
int retry)
114 tleft = (
int) (done -
now);
116 nread =
size - nleft;
137 nread =
size - nleft;
148#if defined(WIN32) || defined(_WINDOWS)
149 nread =
recv(sfd, (
char *)
buf, nleft,
fl);
151 nread =
recv(sfd, (
char *)
buf, nleft,
fl);
158 nread =
size - nleft;
161 nread =
size - nleft;
172 if ((nleft <= 0) || ((retry == 0) && (nleft != (
int)
size)))
177 nread =
size - nleft;
int SRecv(int sfd, char *const buf0, size_t size, int fl, int tlen, int retry)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
INT WSAAPI recv(IN SOCKET s, OUT CHAR FAR *buf, IN INT len, IN INT flags)
INT WSAAPI select(IN INT s, IN OUT LPFD_SET readfds, IN OUT LPFD_SET writefds, IN OUT LPFD_SET exceptfds, IN CONST struct timeval *timeout)
GLenum GLuint GLenum GLsizei const GLchar * buf
#define SELECT_TYPE_ARG234
#define kFullBufferRequired
#define kFullBufferRequiredExceptLast
volatile sio_sigproc_t vsio_sigproc_t
void(*)(int) SSignal(int signum, void(*handler)(int))
#define kFullBufferNotRequired
void(* sio_sigproc_t)(int)