Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1b2247106e
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (17 sloc) 0.649 kb
#ifndef SOCKET_H
#define SOCKET_H
#include "uint16.h"
extern int socket_tcp(void);
extern int socket_udp(void);
extern int socket_connect4(int,const char *,uint16);
extern int socket_connected(int);
extern int socket_bind4(int,char *,uint16);
extern int socket_bind4_reuse(int,char *,uint16);
extern int socket_listen(int,int);
extern int socket_accept4(int,char *,uint16 *);
extern int socket_recv4(int,char *,int,char *,uint16 *);
extern int socket_send4(int,const char *,int,const char *,uint16);
extern int socket_local4(int,char *,uint16 *);
extern int socket_remote4(int,char *,uint16 *);
extern void socket_tryreservein(int,int);
#endif
Jump to Line
Something went wrong with that request. Please try again.