10 lines
359 B
C
10 lines
359 B
C
typedef struct tagNet Net;
|
|
|
|
Net *create_net(unsigned int bufSize);
|
|
void destroy_net(Net *net);
|
|
int set_net_host(Net *net, char *hostName, unsigned short port);
|
|
int connect_net(Net *net);
|
|
void disconnect_net(Net *net);
|
|
int send_net_string(Net *net, char *str, int len);
|
|
int read_net_string(Net *net, char **bufAddr, unsigned int *lenAddr, long usec);
|