Lines Matching refs:SOCKET
85 SOCKET sockctrl;
99 static SOCKET sockmain;
112 SOCKET rmt_sockctrl; /* socket ID of the socket used for the control connection */
113 SOCKET rmt_sockdata; /* socket ID of the socket used for the data connection */
158 static int rpcap_sendauth(SOCKET sock, uint8 *ver, struct pcap_rmtauth *auth, char *errbuf);
159 static int rpcap_recv_msg_header(SOCKET sock, struct rpcap_header *header, char *errbuf);
160 static int rpcap_check_msg_ver(SOCKET sock, uint8 expected_ver, struct rpcap_header *header, char *…
161 static int rpcap_check_msg_type(SOCKET sock, uint8 request_type, struct rpcap_header *header, uint1…
162 static int rpcap_process_msg_header(SOCKET sock, uint8 ver, uint8 request_type, struct rpcap_header…
163 static int rpcap_recv(SOCKET sock, void *buffer, size_t toread, uint32 *plen, char *errbuf);
164 static void rpcap_msg_err(SOCKET sockctrl, uint32 plen, char *remote_errbuf);
165 static int rpcap_discard(SOCKET sock, uint32 len, char *errbuf);
166 static int rpcap_read_packet_msg(SOCKET sock, pcap_t *p, size_t size);
1025 SOCKET sockdata = 0; /* socket descriptor of the data connection */ in pcap_startcapture_remote()
1228 SOCKET socktemp; /* We need another socket, since we're going to accept() a connection */ in pcap_startcapture_remote()
1809 static int rpcap_doauth(SOCKET sockctrl, uint8 *ver, struct pcap_rmtauth *auth, char *errbuf) in rpcap_doauth()
1890 static int rpcap_sendauth(SOCKET sock, uint8 *ver, struct pcap_rmtauth *auth, char *errbuf) in rpcap_sendauth()
2110 SOCKET sockctrl; in pcap_open_rpcap()
2349 SOCKET sockctrl; /* socket descriptor of the control connection */ in pcap_findalldevs_ex_remote()
2704 SOCKET pcap_remoteact_accept(const char *address, const char *port, const char *hostlist, char *con… in pcap_remoteact_accept()
2711 SOCKET sockctrl; /* keeps the main socket identifier */ in pcap_remoteact_accept()
2727 return (SOCKET)-1; in pcap_remoteact_accept()
2735 return (SOCKET)-2; in pcap_remoteact_accept()
2743 return (SOCKET)-2; in pcap_remoteact_accept()
2752 return (SOCKET)-2; in pcap_remoteact_accept()
2769 return (SOCKET)-2; in pcap_remoteact_accept()
2778 return (SOCKET)-1; in pcap_remoteact_accept()
2786 return (SOCKET)-1; in pcap_remoteact_accept()
2797 return (SOCKET)-3; in pcap_remoteact_accept()
2834 return (SOCKET)-1; in pcap_remoteact_accept()
3000 static int rpcap_recv_msg_header(SOCKET sock, struct rpcap_header *header, char *errbuf) in rpcap_recv_msg_header()
3020 static int rpcap_check_msg_ver(SOCKET sock, uint8 expected_ver, struct rpcap_header *header, char *… in rpcap_check_msg_ver()
3051 static int rpcap_check_msg_type(SOCKET sock, uint8 request_type, struct rpcap_header *header, uint1… in rpcap_check_msg_type()
3121 static int rpcap_process_msg_header(SOCKET sock, uint8 expected_ver, uint8 request_type, struct rpc… in rpcap_process_msg_header()
3153 static int rpcap_recv(SOCKET sock, void *buffer, size_t toread, uint32 *plen, char *errbuf) in rpcap_recv()
3176 static void rpcap_msg_err(SOCKET sockctrl, uint32 plen, char *remote_errbuf) in rpcap_msg_err()
3234 static int rpcap_discard(SOCKET sock, uint32 len, char *errbuf) in rpcap_discard()
3251 static int rpcap_read_packet_msg(SOCKET sock, pcap_t *p, size_t size) in rpcap_read_packet_msg()