Lines Matching refs:tcp_sock
28 struct tcp_sock *tcp_server_create(struct tcp_conf *c)
31 struct tcp_sock *m;
34 m = calloc(sizeof(struct tcp_sock), 1);
117 void tcp_server_destroy(struct tcp_sock *m)
124 tcp_client_init(struct tcp_sock *m, struct tcp_conf *c)
208 struct tcp_sock *tcp_client_create(struct tcp_conf *c)
210 struct tcp_sock *m;
212 m = calloc(sizeof(struct tcp_sock), 1);
228 void tcp_client_destroy(struct tcp_sock *m)
234 int tcp_accept(struct tcp_sock *m)
273 ssize_t tcp_send(struct tcp_sock *m, const void *data, int size)
328 ssize_t tcp_recv(struct tcp_sock *m, void *data, int size)
364 int tcp_get_fd(struct tcp_sock *m)
369 int tcp_isset(struct tcp_sock *m, fd_set *readfds)
374 int tcp_accept_isset(struct tcp_sock *m, fd_set *readfds)
381 struct tcp_sock *client, struct tcp_sock *server)