Lines Matching refs:errbuflen

131 void sock_fmterror(const char *caller, int errcode, char *errbuf, int errbuflen)  in sock_fmterror()  argument
148 pcap_snprintf(errbuf, errbuflen, "%sUnable to get the exact error message", caller); in sock_fmterror()
150 pcap_snprintf(errbuf, errbuflen, "Unable to get the exact error message"); in sock_fmterror()
155 pcap_snprintf(errbuf, errbuflen, "%s%s (code %d)", caller, message, errcode); in sock_fmterror()
157 pcap_snprintf(errbuf, errbuflen, "%s (code %d)", message, errcode); in sock_fmterror()
168 pcap_snprintf(errbuf, errbuflen, "%s%s (code %d)", caller, message, errcode); in sock_fmterror()
170 pcap_snprintf(errbuf, errbuflen, "%s (code %d)", message, errcode); in sock_fmterror()
194 void sock_geterror(const char *caller, char *errbuf, int errbuflen) in sock_geterror() argument
199 sock_fmterror(caller, GetLastError(), errbuf, errbuflen); in sock_geterror()
203 sock_fmterror(caller, errno, errbuf, errbuflen); in sock_geterror()
224 int sock_init(char *errbuf, int errbuflen) argument
234 pcap_snprintf(errbuf, errbuflen, "Failed to initialize Winsock\n");
244 int sock_init(char *errbuf _U_, int errbuflen _U_)
320 SOCKET sock_open(struct addrinfo *addrinfo, int server, int nconn, char *errbuf, int errbuflen) argument
330 sock_geterror("socket(): ", errbuf, errbuflen);
344 sock_geterror("setsockopt(SO_NOSIGPIPE)", errbuf, errbuflen);
392 pcap_snprintf(errbuf, errbuflen, "setsockopt(IPV6_V6ONLY)");
402 sock_geterror("bind(): ", errbuf, errbuflen);
410 sock_geterror("listen(): ", errbuf, errbuflen);
426 bufspaceleft = errbuflen;
502 int sock_close(SOCKET sock, char *errbuf, int errbuflen) argument
511 sock_geterror("shutdown(): ", errbuf, errbuflen);
560 struct addrinfo *hints, struct addrinfo **addrinfo, char *errbuf, int errbuflen) argument
574 sock_geterror("getaddrinfo(): ", errbuf, errbuflen);
576 pcap_snprintf(errbuf, errbuflen, "getaddrinfo() %s", gai_strerror(retval));
598 pcap_snprintf(errbuf, errbuflen, "getaddrinfo(): socket type not supported");
611 …pcap_snprintf(errbuf, errbuflen, "getaddrinfo(): multicast addresses are not valid when using TCP …
648 char *errbuf, int errbuflen) argument
657 pcap_snprintf(errbuf, errbuflen,
700 sock_fmterror("send(): ", errcode, errbuf, errbuflen);
712 sock_fmterror("send(): ", errcode, errbuf, errbuflen);
779 …fer, int size, char *tempbuf, int *offset, int totsize, int checkonly, char *errbuf, int errbuflen) argument
784 pcap_snprintf(errbuf, errbuflen, "Not enough space in the temporary send buffer.");
843 char *errbuf, int errbuflen) argument
858 pcap_snprintf(errbuf, errbuflen,
881 sock_geterror("recv(): ", errbuf, errbuflen);
897 pcap_snprintf(errbuf, errbuflen,
932 char *errbuf, int errbuflen) argument
949 pcap_snprintf(errbuf, errbuflen,
978 sock_geterror("recv(): ", errbuf, errbuflen);
1011 sock_geterror("recv(): ", errbuf, errbuflen);
1028 pcap_snprintf(errbuf, errbuflen, "recv(): Message too long");
1066 int sock_discard(SOCKET sock, int size, char *errbuf, int errbuflen) argument
1082 if (sock_recv(sock, buffer, TEMP_BUF_SIZE, SOCK_RECEIVEALL_YES, errbuf, errbuflen) == -1)
1094 if (sock_recv(sock, buffer, size, SOCK_RECEIVEALL_YES, errbuf, errbuflen) == -1)
1131 …stlist(char *hostlist, const char *sep, struct sockaddr_storage *from, char *errbuf, int errbuflen) argument
1148 sock_geterror("sock_check_hostlist(), malloc() failed", errbuf, errbuflen);
1171 pcap_snprintf(errbuf, errbuflen, "getaddrinfo() %s", gai_strerror(retval));
1212 … pcap_snprintf(errbuf, errbuflen, "The host is not in the allowed host list. Connection refused.");
1304 … sock, char *address, int addrlen, char *port, int portlen, int flags, char *errbuf, int errbuflen) argument
1314 sock_geterror("getsockname(): ", errbuf, errbuflen);
1319 …urn sock_getascii_addrport(&mysockaddr, address, addrlen, port, portlen, flags, errbuf, errbuflen);
1370 …kaddr, char *address, int addrlen, char *port, int portlen, int flags, char *errbuf, int errbuflen) argument
1402 sock_geterror("getnameinfo(): ", errbuf, errbuflen);
1403 errbuf[errbuflen - 1] = 0;
1460 …nst char *address, struct sockaddr_storage *sockaddr, int addr_family, char *errbuf, int errbuflen) argument
1470 … = sock_initaddress(address, "22222" /* fake port */, &hints, &addrinfo, errbuf, errbuflen)) == -1)
1483 pcap_snprintf(errbuf, errbuflen, "More than one socket requested; using the first one returned");