#include "plibc_private.h"
Go to the source code of this file.
Functions | |
int | _win_accept (SOCKET s, struct sockaddr *addr, int *addrlen) |
Accepts an incoming connection attempt on a socket. | |
int | _win_bind (SOCKET s, const struct sockaddr *name, int namelen) |
Accept a new connection on a socket. | |
int | _win_connect (SOCKET s, const struct sockaddr *name, int namelen) |
Initiate a connection on a socket. | |
int | _win_getpeername (SOCKET s, struct sockaddr *name, int *namelen) |
Get the name of the peer socket. | |
int | _win_getsockname (SOCKET s, struct sockaddr *name, int *namelen) |
Get the socket name. | |
int | _win_getsockopt (SOCKET s, int level, int optname, char *optval, int *optlen) |
Get the socket options. | |
int | _win_listen (SOCKET s, int backlog) |
Listen for socket connections and limit the queue of incoming connections. | |
int | _win_recv (SOCKET s, char *buf, int len, int flags) |
Receive a message from a connected socket. | |
int | _win_recvfrom (SOCKET s, void *buf, int len, int flags, struct sockaddr *from, int *fromlen) |
Receive a message from a socket. | |
int | _win_send (SOCKET s, const char *buf, int len, int flags) |
Send a message on a socket. | |
int | _win_sendto (SOCKET s, const char *buf, int len, int flags, const struct sockaddr *to, int tolen) |
Send a message on a socket. | |
int | _win_setsockopt (SOCKET s, int level, int optname, const void *optval, int optlen) |
Set the socket options. | |
int | _win_shutdown (SOCKET s, int how) |
Shut down socket send and receive operations. | |
SOCKET | _win_socket (int af, int type, int protocol) |
Create an endpoint for communication. | |
hostent * | _win_gethostbyaddr (const char *addr, int len, int type) |
Retrieve the host information corresponding to a network address. | |
hostent * | _win_gethostbyname (const char *name) |
Retrieves host information corresponding to a host name from a host database. |
Definition in file socket.c.