Lines Matching refs:my_sock
112 NSOCK *my_sock; in ne_net_accept() local
132 my_sock = (NSOCK *) calloc(1, sizeof(NSOCK)); in ne_net_accept()
133 if (my_sock == NULL) in ne_net_accept()
138 my_sock->fd = fd; in ne_net_accept()
139 my_sock->remote_ip = ntohl(client_addr.sin_addr.s_addr); in ne_net_accept()
140 my_sock->remote_port = ntohs(client_addr.sin_port); in ne_net_accept()
141 my_sock->data_timeout = data_timeout; in ne_net_accept()
143 *sock = my_sock; in ne_net_accept()
162 NSOCK *my_sock; in ne_net_connect() local
265 my_sock = (NSOCK *) calloc(1, sizeof(NSOCK)); in ne_net_connect()
266 if (my_sock == NULL) in ne_net_connect()
271 my_sock->fd = fd; in ne_net_connect()
272 my_sock->remote_ip = ntohl(serv_addr.sin_addr.s_addr); in ne_net_connect()
273 my_sock->remote_port = port; in ne_net_connect()
274 my_sock->data_timeout = data_timeout; in ne_net_connect()
275 my_sock->conn_timeout = conn_timeout; in ne_net_connect()
277 *sock = my_sock; in ne_net_connect()