Watt-32 tcp/ip  2.2 dev-rel.10
Functions
receive.c File Reference

Go to the source code of this file.

Functions

static int tcp_receive (Socket *sock, void *buf, int len, int flags, struct sockaddr *from, size_t *fromlen)
 
static int udp_receive (Socket *sock, void *buf, int len, int flags, struct sockaddr *from, size_t *fromlen)
 
static int raw_receive (Socket *sock, void *buf, unsigned len, int flags, struct sockaddr *from, size_t *fromlen)
 
static int receive (const char *func, int s, void *buf, int len, int flags, struct sockaddr *from, size_t *fromlen)
 
int W32_CALL recvfrom (int s, void *buf, int len, int flags, struct sockaddr *from, int *fromlen)
 
int W32_CALL recv (int s, void *buf, int len, int flags)
 
int W32_CALL read_s (int s, char *buf, int len)
 
int W32_CALL recvmsg (int s, struct msghdr *msg, int flags)
 
int W32_CALL readv_s (int s, const struct iovec *vector, size_t count)
 
static void udp_raw_fill_from_ip4 (struct sockaddr *from, size_t *fromlen, const struct in_addr *peer, WORD port)
 
static void udp_raw_fill_from_ip6 (struct sockaddr *from, size_t *fromlen, const void *peer, WORD port)
 

Detailed Description

BSD recv(), recvfrom().

Definition in file receive.c.

Function Documentation

static int tcp_receive ( Socket sock,
void buf,
int  len,
int  flags,
struct sockaddr from,
size_t *  fromlen 
)
static
Todo:
Handle receiving Out-of-Band data

Definition at line 335 of file receive.c.

References chk_timeout(), set_timeout(), sock_fastread(), sock_read(), tcp_Retransmitter(), and tcp_tick().

static int udp_receive ( Socket sock,
void buf,
int  len,
int  flags,
struct sockaddr from,
size_t *  fromlen 
)
static