Import everything
[cl-w32api.git] / modules / winsock.lisp
blob75a0efc93762d9f97c17cd293bdc81691283d195
2 (cl:in-package w32apimod)
4 (define-w32api-module winsock :winsock)
6 (cl:in-package cl-w32api.module.winsock)
9 (defconstant-exported FD_SETSIZE 64)
11 (defconstant-exported SD_RECEIVE #x00)
13 (defconstant-exported SD_SEND #x01)
15 (defconstant-exported SD_BOTH #x02)
17 (defcstructex-exported fd_set
18 (fd_count :unsigned-int)
19 (fd_array :pointer))
23 (defcfunex-exported ("__WSAFDIsSet" __WSAFDIsSet :convention :stdcall) :int
24 (arg0 :unsigned-int)
25 (arg1 :pointer))
27 (defcstructex-exported timeval
28 (tv_sec :int32)
29 (tv_usec :int32))
31 (defcstructex-exported hostent
32 (h_name :string)
33 (h_aliases :pointer)
34 (h_addrtype :short)
35 (h_length :short)
36 (h_addr_list :pointer))
38 (defcstructex-exported linger
39 (l_onoff :unsigned-short)
40 (l_linger :unsigned-short))
42 (defconstant-exported IOCPARM_MASK #x7f)
44 (defconstant-exported IOC_VOID #x20000000)
46 (defconstant-exported IOC_OUT #x40000000)
48 (defconstant-exported IOC_IN #x80000000)
50 (defconstant-exported IOC_INOUT (cl:logior #x80000000 #x40000000))
52 (defcstructex-exported netent
53 (n_name :string)
54 (n_aliases :pointer)
55 (n_addrtype :short)
56 (n_net :unsigned-long))
58 (defcstructex-exported servent
59 (s_name :string)
60 (s_aliases :pointer)
61 (s_port :short)
62 (s_proto :string))
64 (defcstructex-exported protoent
65 (p_name :string)
66 (p_aliases :pointer)
67 (p_proto :short))
69 (defconstant-exported IPPROTO_IP 0)
71 (defconstant-exported IPPROTO_ICMP 1)
73 (defconstant-exported IPPROTO_IGMP 2)
75 (defconstant-exported IPPROTO_GGP 3)
77 (defconstant-exported IPPROTO_TCP 6)
79 (defconstant-exported IPPROTO_PUP 12)
81 (defconstant-exported IPPROTO_UDP 17)
83 (defconstant-exported IPPROTO_IDP 22)
85 (defconstant-exported IPPROTO_ND 77)
87 (defconstant-exported IPPROTO_RAW 255)
89 (defconstant-exported IPPROTO_MAX 256)
91 (defconstant-exported IPPROTO_HOPOPTS 0)
93 (defconstant-exported IPPROTO_IPV6 41)
95 (defconstant-exported IPPROTO_ROUTING 43)
97 (defconstant-exported IPPROTO_FRAGMENT 44)
99 (defconstant-exported IPPROTO_ESP 50)
101 (defconstant-exported IPPROTO_AH 51)
103 (defconstant-exported IPPROTO_ICMPV6 58)
105 (defconstant-exported IPPROTO_NONE 59)
107 (defconstant-exported IPPROTO_DSTOPTS 60)
109 (defconstant-exported IPPORT_ECHO 7)
111 (defconstant-exported IPPORT_DISCARD 9)
113 (defconstant-exported IPPORT_SYSTAT 11)
115 (defconstant-exported IPPORT_DAYTIME 13)
117 (defconstant-exported IPPORT_NETSTAT 15)
119 (defconstant-exported IPPORT_FTP 21)
121 (defconstant-exported IPPORT_TELNET 23)
123 (defconstant-exported IPPORT_SMTP 25)
125 (defconstant-exported IPPORT_TIMESERVER 37)
127 (defconstant-exported IPPORT_NAMESERVER 42)
129 (defconstant-exported IPPORT_WHOIS 43)
131 (defconstant-exported IPPORT_MTP 57)
133 (defconstant-exported IPPORT_TFTP 69)
135 (defconstant-exported IPPORT_RJE 77)
137 (defconstant-exported IPPORT_FINGER 79)
139 (defconstant-exported IPPORT_TTYLINK 87)
141 (defconstant-exported IPPORT_SUPDUP 95)
143 (defconstant-exported IPPORT_EXECSERVER 512)
145 (defconstant-exported IPPORT_LOGINSERVER 513)
147 (defconstant-exported IPPORT_CMDSERVER 514)
149 (defconstant-exported IPPORT_EFSSERVER 520)
151 (defconstant-exported IPPORT_BIFFUDP 512)
153 (defconstant-exported IPPORT_WHOSERVER 513)
155 (defconstant-exported IPPORT_ROUTESERVER 520)
157 (defconstant-exported IPPORT_RESERVED 1024)
159 (defconstant-exported IMPLINK_IP 155)
161 (defconstant-exported IMPLINK_LOWEXPER 156)
163 (defconstant-exported IMPLINK_HIGHEXPER 158)
165 (defcstructex-exported in_addr
166 (S_un :pointer))
168 (cffi:defcunion in_addr_S_un
169 (S_addr :unsigned-long)
170 (S_un_b :pointer)
171 (S_un_w :pointer))
173 (defcstructex-exported in_addr_S_un_S_un_w
174 (s_w1 :unsigned-short)
175 (s_w2 :unsigned-short))
177 (defcstructex-exported in_addr_S_un_S_un_b
178 (s_b1 :unsigned-char)
179 (s_b2 :unsigned-char)
180 (s_b3 :unsigned-char)
181 (s_b4 :unsigned-char))
183 (defconstant-exported IN_CLASSA_NET #xff000000)
185 (defconstant-exported IN_CLASSA_NSHIFT 24)
187 (defconstant-exported IN_CLASSA_HOST #x00ffffff)
189 (defconstant-exported IN_CLASSA_MAX 128)
191 (defconstant-exported IN_CLASSB_NET #xffff0000)
193 (defconstant-exported IN_CLASSB_NSHIFT 16)
195 (defconstant-exported IN_CLASSB_HOST #x0000ffff)
197 (defconstant-exported IN_CLASSB_MAX 65536)
199 (defconstant-exported IN_CLASSC_NET #xffffff00)
201 (defconstant-exported IN_CLASSC_NSHIFT 8)
203 (defconstant-exported IN_CLASSC_HOST #xff)
205 (defconstant-exported INADDR_LOOPBACK #x7f000001)
207 (defconstant-exported INADDR_NONE #xffffffff)
209 (defcstructex-exported sockaddr_in
210 (sin_family :short)
211 (sin_port :unsigned-short)
212 (sin_addr in_addr)
213 (sin_zero :pointer))
215 (defconstant-exported WSADESCRIPTION_LEN 256)
217 (defconstant-exported WSASYS_STATUS_LEN 128)
219 (defcstructex-exported WSADATA
220 (wVersion :unsigned-short)
221 (wHighVersion :unsigned-short)
222 (szDescription :pointer)
223 (szSystemStatus :pointer)
224 (iMaxSockets :unsigned-short)
225 (iMaxUdpDg :unsigned-short)
226 (lpVendorInfo :string))
232 (defconstant-exported IP_OPTIONS 1)
234 (defconstant-exported SO_DEBUG 1)
236 (defconstant-exported SO_ACCEPTCONN 2)
238 (defconstant-exported SO_REUSEADDR 4)
240 (defconstant-exported SO_KEEPALIVE 8)
242 (defconstant-exported SO_DONTROUTE 16)
244 (defconstant-exported SO_BROADCAST 32)
246 (defconstant-exported SO_USELOOPBACK 64)
248 (defconstant-exported SO_LINGER 128)
250 (defconstant-exported SO_OOBINLINE 256)
252 (defconstant-exported SO_SNDBUF #x1001)
254 (defconstant-exported SO_RCVBUF #x1002)
256 (defconstant-exported SO_SNDLOWAT #x1003)
258 (defconstant-exported SO_RCVLOWAT #x1004)
260 (defconstant-exported SO_SNDTIMEO #x1005)
262 (defconstant-exported SO_RCVTIMEO #x1006)
264 (defconstant-exported SO_ERROR #x1007)
266 (defconstant-exported SO_TYPE #x1008)
268 (defconstant-exported SOCKET_ERROR -1)
270 (defconstant-exported SOCK_STREAM 1)
272 (defconstant-exported SOCK_DGRAM 2)
274 (defconstant-exported SOCK_RAW 3)
276 (defconstant-exported SOCK_RDM 4)
278 (defconstant-exported SOCK_SEQPACKET 5)
280 (defconstant-exported TCP_NODELAY #x0001)
282 (defconstant-exported AF_UNSPEC 0)
284 (defconstant-exported AF_UNIX 1)
286 (defconstant-exported AF_INET 2)
288 (defconstant-exported AF_IMPLINK 3)
290 (defconstant-exported AF_PUP 4)
292 (defconstant-exported AF_CHAOS 5)
294 (defconstant-exported AF_IPX 6)
296 (defconstant-exported AF_NS 6)
298 (defconstant-exported AF_ISO 7)
300 (defconstant-exported AF_OSI 7)
302 (defconstant-exported AF_ECMA 8)
304 (defconstant-exported AF_DATAKIT 9)
306 (defconstant-exported AF_CCITT 10)
308 (defconstant-exported AF_SNA 11)
310 (defconstant-exported AF_DECnet 12)
312 (defconstant-exported AF_DLI 13)
314 (defconstant-exported AF_LAT 14)
316 (defconstant-exported AF_HYLINK 15)
318 (defconstant-exported AF_APPLETALK 16)
320 (defconstant-exported AF_NETBIOS 17)
322 (defconstant-exported AF_VOICEVIEW 18)
324 (defconstant-exported AF_FIREFOX 19)
326 (defconstant-exported AF_UNKNOWN1 20)
328 (defconstant-exported AF_BAN 21)
330 (defconstant-exported AF_ATM 22)
332 (defconstant-exported AF_INET6 23)
334 (defconstant-exported AF_CLUSTER 24)
336 (defconstant-exported AF_12844 25)
338 (defconstant-exported AF_IRDA 26)
340 (defconstant-exported AF_NETDES 28)
342 (defconstant-exported AF_MAX 29)
344 (defcstructex-exported sockaddr
345 (sa_family :unsigned-short)
346 (sa_data :pointer))
348 (defcstructex-exported sockaddr_storage
349 (ss_family :short)
350 (__ss_pad1 :pointer)
351 (__ss_align :long-long)
352 (__ss_pad2 :pointer))
354 (defcstructex-exported sockproto
355 (sp_family :unsigned-short)
356 (sp_protocol :unsigned-short))
358 (defconstant-exported PF_UNSPEC 0)
360 (defconstant-exported PF_UNIX 1)
362 (defconstant-exported PF_INET 2)
364 (defconstant-exported PF_IMPLINK 3)
366 (defconstant-exported PF_PUP 4)
368 (defconstant-exported PF_CHAOS 5)
370 (defconstant-exported PF_NS 6)
372 (defconstant-exported PF_IPX 6)
374 (defconstant-exported PF_ISO 7)
376 (defconstant-exported PF_OSI 7)
378 (defconstant-exported PF_ECMA 8)
380 (defconstant-exported PF_DATAKIT 9)
382 (defconstant-exported PF_CCITT 10)
384 (defconstant-exported PF_SNA 11)
386 (defconstant-exported PF_DECnet 12)
388 (defconstant-exported PF_DLI 13)
390 (defconstant-exported PF_LAT 14)
392 (defconstant-exported PF_HYLINK 15)
394 (defconstant-exported PF_APPLETALK 16)
396 (defconstant-exported PF_VOICEVIEW 18)
398 (defconstant-exported PF_FIREFOX 19)
400 (defconstant-exported PF_UNKNOWN1 20)
402 (defconstant-exported PF_BAN 21)
404 (defconstant-exported PF_ATM 22)
406 (defconstant-exported PF_INET6 23)
408 (defconstant-exported PF_MAX 29)
410 (defconstant-exported SOL_SOCKET #xffff)
412 (defconstant-exported SOMAXCONN #x7fffffff)
414 (defconstant-exported MSG_OOB 1)
416 (defconstant-exported MSG_PEEK 2)
418 (defconstant-exported MSG_DONTROUTE 4)
420 (defconstant-exported MSG_MAXIOVLEN 16)
422 (defconstant-exported MSG_PARTIAL #x8000)
424 (defconstant-exported MAXGETHOSTSTRUCT 1024)
426 (defconstant-exported FD_READ_BIT 0)
428 (defconstant-exported FD_READ (cl:ash 1 0))
430 (defconstant-exported FD_WRITE_BIT 1)
432 (defconstant-exported FD_WRITE (cl:ash 1 1))
434 (defconstant-exported FD_OOB_BIT 2)
436 (defconstant-exported FD_OOB (cl:ash 1 2))
438 (defconstant-exported FD_ACCEPT_BIT 3)
440 (defconstant-exported FD_ACCEPT (cl:ash 1 3))
442 (defconstant-exported FD_CONNECT_BIT 4)
444 (defconstant-exported FD_CONNECT (cl:ash 1 4))
446 (defconstant-exported FD_CLOSE_BIT 5)
448 (defconstant-exported FD_CLOSE (cl:ash 1 5))
450 (defconstant-exported FD_QOS_BIT 6)
452 (defconstant-exported FD_QOS (cl:ash 1 6))
454 (defconstant-exported FD_GROUP_QOS_BIT 7)
456 (defconstant-exported FD_GROUP_QOS (cl:ash 1 7))
458 (defconstant-exported FD_ROUTING_INTERFACE_CHANGE_BIT 8)
460 (defconstant-exported FD_ROUTING_INTERFACE_CHANGE (cl:ash 1 8))
462 (defconstant-exported FD_ADDRESS_LIST_CHANGE_BIT 9)
464 (defconstant-exported FD_ADDRESS_LIST_CHANGE (cl:ash 1 9))
466 (defconstant-exported FD_MAX_EVENTS 10)
468 (defconstant-exported FD_ALL_EVENTS (cl:- (cl:ash 1 10) 1))
470 (defconstant-exported WSANO_ADDRESS 11004)
472 (defconstant-exported HOST_NOT_FOUND 11001)
474 (defconstant-exported TRY_AGAIN 11002)
476 (defconstant-exported NO_RECOVERY 11003)
478 (defconstant-exported NO_DATA 11004)
480 (defconstant-exported NO_ADDRESS 11004)
482 (defcfunex-exported ("accept" accept :convention :stdcall) :unsigned-int
483 (arg0 :unsigned-int)
484 (arg1 :pointer)
485 (arg2 :pointer))
487 (defcfunex-exported ("bind" bind :convention :stdcall) :int
488 (arg0 :unsigned-int)
489 (arg1 :pointer)
490 (arg2 :int))
492 (defcfunex-exported ("closesocket" closesocket :convention :stdcall) :int
493 (arg0 :unsigned-int))
495 (defcfunex-exported ("connect" connect :convention :stdcall) :int
496 (arg0 :unsigned-int)
497 (arg1 :pointer)
498 (arg2 :int))
500 (defcfunex-exported ("ioctlsocket" ioctlsocket :convention :stdcall) :int
501 (arg0 :unsigned-int)
502 (arg1 :int32)
503 (arg2 :pointer))
505 (defcfunex-exported ("getpeername" getpeername :convention :stdcall) :int
506 (arg0 :unsigned-int)
507 (arg1 :pointer)
508 (arg2 :pointer))
510 (defcfunex-exported ("getsockname" getsockname :convention :stdcall) :int
511 (arg0 :unsigned-int)
512 (arg1 :pointer)
513 (arg2 :pointer))
515 (defcfunex-exported ("getsockopt" getsockopt :convention :stdcall) :int
516 (arg0 :unsigned-int)
517 (arg1 :int)
518 (arg2 :int)
519 (arg3 :string)
520 (arg4 :pointer))
522 (defcfunex-exported ("inet_addr" inet_addr :convention :stdcall) :unsigned-long
523 (arg0 :string))
525 (defcfunex-exported ("inet_ntoa" inet_ntoa :convention :stdcall) :string
526 (arg0 in_addr))
528 (defcfunex-exported ("listen" listen :convention :stdcall) :int
529 (arg0 :unsigned-int)
530 (arg1 :int))
532 (defcfunex-exported ("recv" recv :convention :stdcall) :int
533 (arg0 :unsigned-int)
534 (arg1 :string)
535 (arg2 :int)
536 (arg3 :int))
538 (defcfunex-exported ("recvfrom" recvfrom :convention :stdcall) :int
539 (arg0 :unsigned-int)
540 (arg1 :string)
541 (arg2 :int)
542 (arg3 :int)
543 (arg4 :pointer)
544 (arg5 :pointer))
546 (defcfunex-exported ("send" send :convention :stdcall) :int
547 (arg0 :unsigned-int)
548 (arg1 :string)
549 (arg2 :int)
550 (arg3 :int))
552 (defcfunex-exported ("sendto" sendto :convention :stdcall) :int
553 (arg0 :unsigned-int)
554 (arg1 :string)
555 (arg2 :int)
556 (arg3 :int)
557 (arg4 :pointer)
558 (arg5 :int))
560 (defcfunex-exported ("setsockopt" setsockopt :convention :stdcall) :int
561 (arg0 :unsigned-int)
562 (arg1 :int)
563 (arg2 :int)
564 (arg3 :string)
565 (arg4 :int))
567 (defcfunex-exported ("shutdown" shutdown :convention :stdcall) :int
568 (arg0 :unsigned-int)
569 (arg1 :int))
571 (defcfunex-exported ("socket" socket :convention :stdcall) :unsigned-int
572 (arg0 :int)
573 (arg1 :int)
574 (arg2 :int))
576 (defcfunex-exported ("gethostbyaddr" gethostbyaddr :convention :stdcall) :pointer
577 (arg0 :string)
578 (arg1 :int)
579 (arg2 :int))
581 (defcfunex-exported ("gethostbyname" gethostbyname :convention :stdcall) :pointer
582 (arg0 :string))
584 (defcfunex-exported ("getservbyport" getservbyport :convention :stdcall) :pointer
585 (arg0 :int)
586 (arg1 :string))
588 (defcfunex-exported ("getservbyname" getservbyname :convention :stdcall) :pointer
589 (arg0 :string)
590 (arg1 :string))
592 (defcfunex-exported ("getprotobynumber" getprotobynumber :convention :stdcall) :pointer
593 (arg0 :int))
595 (defcfunex-exported ("getprotobyname" getprotobyname :convention :stdcall) :pointer
596 (arg0 :string))
658 (defcfunex-exported ("WSAStartup" WSAStartup :convention :stdcall) :int
659 (arg0 :unsigned-short)
660 (arg1 :pointer))
662 (defcfunex-exported ("WSACleanup" WSACleanup :convention :stdcall) :int)
664 (defcfunex-exported ("WSASetLastError" WSASetLastError :convention :stdcall) :void
665 (arg0 :int))
667 (defcfunex-exported ("WSAGetLastError" WSAGetLastError :convention :stdcall) :int)
677 (defcfunex-exported ("WSAIsBlocking" WSAIsBlocking :convention :stdcall) :int)
679 (defcfunex-exported ("WSAUnhookBlockingHook" WSAUnhookBlockingHook :convention :stdcall) :int)
681 (defcfunex-exported ("WSASetBlockingHook" WSASetBlockingHook :convention :stdcall) :pointer
682 (arg0 :pointer))
684 (defcfunex-exported ("WSACancelBlockingCall" WSACancelBlockingCall :convention :stdcall) :int)
694 (defcfunex-exported ("WSAAsyncGetServByName" WSAAsyncGetServByName :convention :stdcall) :pointer
695 (arg0 :pointer)
696 (arg1 :unsigned-int)
697 (arg2 :string)
698 (arg3 :string)
699 (arg4 :string)
700 (arg5 :int))
702 (defcfunex-exported ("WSAAsyncGetServByPort" WSAAsyncGetServByPort :convention :stdcall) :pointer
703 (arg0 :pointer)
704 (arg1 :unsigned-int)
705 (arg2 :int)
706 (arg3 :string)
707 (arg4 :string)
708 (arg5 :int))
710 (defcfunex-exported ("WSAAsyncGetProtoByName" WSAAsyncGetProtoByName :convention :stdcall) :pointer
711 (arg0 :pointer)
712 (arg1 :unsigned-int)
713 (arg2 :string)
714 (arg3 :string)
715 (arg4 :int))
717 (defcfunex-exported ("WSAAsyncGetProtoByNumber" WSAAsyncGetProtoByNumber :convention :stdcall) :pointer
718 (arg0 :pointer)
719 (arg1 :unsigned-int)
720 (arg2 :int)
721 (arg3 :string)
722 (arg4 :int))
724 (defcfunex-exported ("WSAAsyncGetHostByName" WSAAsyncGetHostByName :convention :stdcall) :pointer
725 (arg0 :pointer)
726 (arg1 :unsigned-int)
727 (arg2 :string)
728 (arg3 :string)
729 (arg4 :int))
731 (defcfunex-exported ("WSAAsyncGetHostByAddr" WSAAsyncGetHostByAddr :convention :stdcall) :pointer
732 (arg0 :pointer)
733 (arg1 :unsigned-int)
734 (arg2 :string)
735 (arg3 :int)
736 (arg4 :int)
737 (arg5 :string)
738 (arg6 :int))
740 (defcfunex-exported ("WSACancelAsyncRequest" WSACancelAsyncRequest :convention :stdcall) :int
741 (arg0 :pointer))
743 (defcfunex-exported ("WSAAsyncSelect" WSAAsyncSelect :convention :stdcall) :int
744 (arg0 :unsigned-int)
745 (arg1 :pointer)
746 (arg2 :unsigned-int)
747 (arg3 :int32))
763 (defcfunex-exported ("htonl" htonl :convention :stdcall) :unsigned-long
764 (arg0 :unsigned-long))
766 (defcfunex-exported ("ntohl" ntohl :convention :stdcall) :unsigned-long
767 (arg0 :unsigned-long))
769 (defcfunex-exported ("htons" htons :convention :stdcall) :unsigned-short
770 (arg0 :unsigned-short))
772 (defcfunex-exported ("ntohs" ntohs :convention :stdcall) :unsigned-short
773 (arg0 :unsigned-short))
775 (defcfunex-exported ("select" select :convention :stdcall) :int
776 (nfds :int)
777 (arg1 :pointer)
778 (arg2 :pointer)
779 (arg3 :pointer)
780 (arg4 :pointer))
782 (defcfunex-exported ("gethostname" gethostname :convention :stdcall) :int
783 (arg0 :string)
784 (arg1 :int))
844 (defconstant-exported IN_CLASSD_NET #xf0000000)
846 (defconstant-exported IN_CLASSD_NSHIFT 28)
848 (defconstant-exported IN_CLASSD_HOST #x0fffffff)
850 (defconstant-exported FROM_PROTOCOL_INFO -1)
852 (defconstant-exported SO_GROUP_ID #x2001)
854 (defconstant-exported SO_GROUP_PRIORITY #x2002)
856 (defconstant-exported SO_MAX_MSG_SIZE #x2003)
858 (defconstant-exported SO_PROTOCOL_INFOA #x2004)
860 (defconstant-exported SO_PROTOCOL_INFOW #x2005)
862 (defconstant-exported SO_PROTOCOL_INFO #x2004)
864 (defconstant-exported PVD_CONFIG #x3001)
866 (defconstant-exported MSG_INTERRUPT #x10)
870 (defconstant-exported WSA_IO_PENDING 997)
872 (defconstant-exported WSA_IO_INCOMPLETE 996)
874 (defconstant-exported WSA_INVALID_HANDLE 6)
876 (defconstant-exported WSA_INVALID_PARAMETER 87)
878 (defconstant-exported WSA_NOT_ENOUGH_MEMORY 8)
880 (defconstant-exported WSA_OPERATION_ABORTED 995)
882 (defconstant-exported WSA_MAXIMUM_WAIT_EVENTS 64)
884 (defconstant-exported WSA_WAIT_EVENT_0 0)
886 (defconstant-exported WSA_WAIT_IO_COMPLETION #xC0)
888 (defconstant-exported WSA_WAIT_TIMEOUT 258)
890 (defconstant-exported WSA_INFINITE #xFFFFFFFF)
892 (defcstructex-exported WSABUF
893 (len :unsigned-long)
894 (buf :string))
900 (cffi:defcenum GUARANTEE
901 :BestEffortService
902 :ControlledLoadService
903 :PredictiveService
904 :GuaranteedDelayService
905 :GuaranteedService)
909 (defcstructex-exported FLOWSPEC
910 (TokenRate :unsigned-int)
911 (TokenBucketSize :unsigned-int)
912 (PeakBandwidth :unsigned-int)
913 (Latency :unsigned-int)
914 (DelayVariation :unsigned-int)
915 (ServiceType :unsigned-int)
916 (MaxSduSize :unsigned-int)
917 (MinimumPolicedSize :unsigned-int))
925 (defcstructex-exported QOS
926 (SendingFlowspec FLOWSPEC)
927 (ReceivingFlowspec FLOWSPEC)
928 (ProviderSpecific WSABUF))
934 (defconstant-exported CF_ACCEPT #x0000)
936 (defconstant-exported CF_REJECT #x0001)
938 (defconstant-exported CF_DEFER #x0002)
942 (defconstant-exported SG_UNCONSTRAINED_GROUP #x01)
944 (defconstant-exported SG_CONSTRAINED_GROUP #x02)
946 (defcstructex-exported WSANETWORKEVENTS
947 (lNetworkEvents :int32)
948 (iErrorCode :pointer))
954 (defconstant-exported MAX_PROTOCOL_CHAIN 7)
956 (defconstant-exported BASE_PROTOCOL 1)
958 (defconstant-exported LAYERED_PROTOCOL 0)
960 (cffi:defcenum WSAESETSERVICEOP
961 (:RNRSERVICE_REGISTER #.0)
962 :RNRSERVICE_DEREGISTER
963 :RNRSERVICE_DELETE)
969 (defcstructex-exported AFPROTOCOLS
970 (iAddressFamily :int)
971 (iProtocol :int))
979 (cffi:defcenum WSAECOMPARATOR
980 (:COMP_EQUAL #.0)
981 :COMP_NOTLESS)
987 (defcstructex-exported WSAVERSION
988 (dwVersion :unsigned-long)
989 (ecHow WSAECOMPARATOR))
997 (defcstructex-exported SOCKET_ADDRESS
998 (lpSockaddr :pointer)
999 (iSockaddrLength :int))
1007 (defcstructex-exported CSADDR_INFO
1008 (LocalAddr SOCKET_ADDRESS)
1009 (RemoteAddr SOCKET_ADDRESS)
1010 (iSocketType :int)
1011 (iProtocol :int))
1019 (defcstructex-exported SOCKET_ADDRESS_LIST
1020 (iAddressCount :int)
1021 (Address :pointer))
1027 (defcstructex-exported BLOB
1028 (cbSize :unsigned-long)
1029 (pBlobData :pointer))
1037 (defcstructex-exported WSAQUERYSETA
1038 (dwSize :unsigned-long)
1039 (lpszServiceInstanceName :string)
1040 (lpServiceClassId :pointer)
1041 (lpVersion :pointer)
1042 (lpszComment :string)
1043 (dwNameSpace :unsigned-long)
1044 (lpNSProviderId :pointer)
1045 (lpszContext :string)
1046 (dwNumberOfProtocols :unsigned-long)
1047 (lpafpProtocols :pointer)
1048 (lpszQueryString :string)
1049 (dwNumberOfCsAddrs :unsigned-long)
1050 (lpcsaBuffer :pointer)
1051 (dwOutputFlags :unsigned-long)
1052 (lpBlob :pointer))
1060 (defcstructex-exported WSAQUERYSETW
1061 (dwSize :unsigned-long)
1062 (lpszServiceInstanceName :pointer)
1063 (lpServiceClassId :pointer)
1064 (lpVersion :pointer)
1065 (lpszComment :pointer)
1066 (dwNameSpace :unsigned-long)
1067 (lpNSProviderId :pointer)
1068 (lpszContext :pointer)
1069 (dwNumberOfProtocols :unsigned-long)
1070 (lpafpProtocols :pointer)
1071 (lpszQueryString :pointer)
1072 (dwNumberOfCsAddrs :unsigned-long)
1073 (lpcsaBuffer :pointer)
1074 (dwOutputFlags :unsigned-long)
1075 (lpBlob :pointer))
1089 (defconstant-exported LUP_DEEP #x0001)
1091 (defconstant-exported LUP_CONTAINERS #x0002)
1093 (defconstant-exported LUP_NOCONTAINERS #x0004)
1095 (defconstant-exported LUP_NEAREST #x0008)
1097 (defconstant-exported LUP_RETURN_NAME #x0010)
1099 (defconstant-exported LUP_RETURN_TYPE #x0020)
1101 (defconstant-exported LUP_RETURN_VERSION #x0040)
1103 (defconstant-exported LUP_RETURN_COMMENT #x0080)
1105 (defconstant-exported LUP_RETURN_ADDR #x0100)
1107 (defconstant-exported LUP_RETURN_BLOB #x0200)
1109 (defconstant-exported LUP_RETURN_ALIASES #x0400)
1111 (defconstant-exported LUP_RETURN_QUERY_STRING #x0800)
1113 (defconstant-exported LUP_RETURN_ALL #x0FF0)
1115 (defconstant-exported LUP_RES_SERVICE #x8000)
1117 (defconstant-exported LUP_FLUSHCACHE #x1000)
1119 (defconstant-exported LUP_FLUSHPREVIOUS #x2000)
1121 (defcstructex-exported WSANSCLASSINFOA
1122 (lpszName :string)
1123 (dwNameSpace :unsigned-long)
1124 (dwValueType :unsigned-long)
1125 (dwValueSize :unsigned-long)
1126 (lpValue :pointer))
1134 (defcstructex-exported WSANSCLASSINFOW
1135 (lpszName :pointer)
1136 (dwNameSpace :unsigned-long)
1137 (dwValueType :unsigned-long)
1138 (dwValueSize :unsigned-long)
1139 (lpValue :pointer))
1153 (defcstructex-exported WSASERVICECLASSINFOA
1154 (lpServiceClassId :pointer)
1155 (lpszServiceClassName :string)
1156 (dwCount :unsigned-long)
1157 (lpClassInfos :pointer))
1165 (defcstructex-exported WSASERVICECLASSINFOW
1166 (lpServiceClassId :pointer)
1167 (lpszServiceClassName :pointer)
1168 (dwCount :unsigned-long)
1169 (lpClassInfos :pointer))
1183 (defcstructex-exported WSANAMESPACE_INFOA
1184 (NSProviderId GUID)
1185 (dwNameSpace :unsigned-long)
1186 (fActive :int)
1187 (dwVersion :unsigned-long)
1188 (lpszIdentifier :string))
1196 (defcstructex-exported WSANAMESPACE_INFOW
1197 (NSProviderId GUID)
1198 (dwNameSpace :unsigned-long)
1199 (fActive :int)
1200 (dwVersion :unsigned-long)
1201 (lpszIdentifier :pointer))
1215 (defcstructex-exported WSAPROTOCOLCHAIN
1216 (ChainLen :int)
1217 (ChainEntries :pointer))
1223 (defconstant-exported WSAPROTOCOL_LEN 255)
1225 (defcstructex-exported WSAPROTOCOL_INFOA
1226 (dwServiceFlags1 :unsigned-long)
1227 (dwServiceFlags2 :unsigned-long)
1228 (dwServiceFlags3 :unsigned-long)
1229 (dwServiceFlags4 :unsigned-long)
1230 (dwProviderFlags :unsigned-long)
1231 (ProviderId GUID)
1232 (dwCatalogEntryId :unsigned-long)
1233 (ProtocolChain WSAPROTOCOLCHAIN)
1234 (iVersion :int)
1235 (iAddressFamily :int)
1236 (iMaxSockAddr :int)
1237 (iMinSockAddr :int)
1238 (iSocketType :int)
1239 (iProtocol :int)
1240 (iProtocolMaxOffset :int)
1241 (iNetworkByteOrder :int)
1242 (iSecurityScheme :int)
1243 (dwMessageSize :unsigned-long)
1244 (dwProviderReserved :unsigned-long)
1245 (szProtocol :pointer))
1251 (defcstructex-exported WSAPROTOCOL_INFOW
1252 (dwServiceFlags1 :unsigned-long)
1253 (dwServiceFlags2 :unsigned-long)
1254 (dwServiceFlags3 :unsigned-long)
1255 (dwServiceFlags4 :unsigned-long)
1256 (dwProviderFlags :unsigned-long)
1257 (ProviderId GUID)
1258 (dwCatalogEntryId :unsigned-long)
1259 (ProtocolChain WSAPROTOCOLCHAIN)
1260 (iVersion :int)
1261 (iAddressFamily :int)
1262 (iMaxSockAddr :int)
1263 (iMinSockAddr :int)
1264 (iSocketType :int)
1265 (iProtocol :int)
1266 (iProtocolMaxOffset :int)
1267 (iNetworkByteOrder :int)
1268 (iSecurityScheme :int)
1269 (dwMessageSize :unsigned-long)
1270 (dwProviderReserved :unsigned-long)
1271 (szProtocol :pointer))
1285 (cffi:defcenum WSACOMPLETIONTYPE
1286 (:NSP_NOTIFY_IMMEDIATELY #.0)
1287 :NSP_NOTIFY_HWND
1288 :NSP_NOTIFY_EVENT
1289 :NSP_NOTIFY_PORT
1290 :NSP_NOTIFY_APC)
1296 (defcstructex-exported WSACOMPLETION
1297 (Type WSACOMPLETIONTYPE)
1298 (Parameters :pointer))
1306 (cffi:defcunion WSACOMPLETION_Parameters
1307 (WindowMessage :pointer)
1308 (Event :pointer)
1309 (Apc :pointer)
1310 (Port :pointer))
1312 (defcstructex-exported WSACOMPLETION_Parameters_Port
1313 (lpOverlapped :pointer)
1314 (hPort :pointer)
1315 (Key :unsigned-long))
1317 (defcstructex-exported WSACOMPLETION_Parameters_Apc
1318 (lpOverlapped :pointer)
1319 (lpfnCompletionProc :pointer))
1321 (defcstructex-exported WSACOMPLETION_Parameters_Event
1322 (lpOverlapped :pointer))
1324 (defcstructex-exported WSACOMPLETION_Parameters_WindowMessage
1325 (hWnd :pointer)
1326 (uMsg :unsigned-int)
1327 (context :unsigned-int))
1329 (defconstant-exported PFL_MULTIPLE_PROTO_ENTRIES #x00000001)
1331 (defconstant-exported PFL_RECOMMENDED_PROTO_ENTRY #x00000002)
1333 (defconstant-exported PFL_HIDDEN #x00000004)
1335 (defconstant-exported PFL_MATCHES_PROTOCOL_ZERO #x00000008)
1337 (defconstant-exported XP1_CONNECTIONLESS #x00000001)
1339 (defconstant-exported XP1_GUARANTEED_DELIVERY #x00000002)
1341 (defconstant-exported XP1_GUARANTEED_ORDER #x00000004)
1343 (defconstant-exported XP1_MESSAGE_ORIENTED #x00000008)
1345 (defconstant-exported XP1_PSEUDO_STREAM #x00000010)
1347 (defconstant-exported XP1_GRACEFUL_CLOSE #x00000020)
1349 (defconstant-exported XP1_EXPEDITED_DATA #x00000040)
1351 (defconstant-exported XP1_CONNECT_DATA #x00000080)
1353 (defconstant-exported XP1_DISCONNECT_DATA #x00000100)
1355 (defconstant-exported XP1_SUPPORT_BROADCAST #x00000200)
1357 (defconstant-exported XP1_SUPPORT_MULTIPOINT #x00000400)
1359 (defconstant-exported XP1_MULTIPOINT_CONTROL_PLANE #x00000800)
1361 (defconstant-exported XP1_MULTIPOINT_DATA_PLANE #x00001000)
1363 (defconstant-exported XP1_QOS_SUPPORTED #x00002000)
1365 (defconstant-exported XP1_INTERRUPT #x00004000)
1367 (defconstant-exported XP1_UNI_SEND #x00008000)
1369 (defconstant-exported XP1_UNI_RECV #x00010000)
1371 (defconstant-exported XP1_IFS_HANDLES #x00020000)
1373 (defconstant-exported XP1_PARTIAL_MESSAGE #x00040000)
1375 (defconstant-exported BIGENDIAN #x0000)
1377 (defconstant-exported LITTLEENDIAN #x0001)
1379 (defconstant-exported SECURITY_PROTOCOL_NONE #x0000)
1381 (defconstant-exported JL_SENDER_ONLY #x01)
1383 (defconstant-exported JL_RECEIVER_ONLY #x02)
1385 (defconstant-exported JL_BOTH #x04)
1387 (defconstant-exported WSA_FLAG_OVERLAPPED #x01)
1389 (defconstant-exported WSA_FLAG_MULTIPOINT_C_ROOT #x02)
1391 (defconstant-exported WSA_FLAG_MULTIPOINT_C_LEAF #x04)
1393 (defconstant-exported WSA_FLAG_MULTIPOINT_D_ROOT #x08)
1395 (defconstant-exported WSA_FLAG_MULTIPOINT_D_LEAF #x10)
1397 (defconstant-exported IOC_UNIX #x00000000)
1399 (defconstant-exported IOC_WS2 #x08000000)
1401 (defconstant-exported IOC_PROTOCOL #x10000000)
1403 (defconstant-exported IOC_VENDOR #x18000000)
1405 (defconstant-exported SIO_ASSOCIATE_HANDLE (cl:logior #x80000000 #x08000000 1))
1407 (defconstant-exported SIO_ENABLE_CIRCULAR_QUEUEING (cl:logior #x20000000 #x08000000 2))
1409 (defconstant-exported SIO_FIND_ROUTE (cl:logior #x40000000 #x08000000 3))
1411 (defconstant-exported SIO_FLUSH (cl:logior #x20000000 #x08000000 4))
1413 (defconstant-exported SIO_GET_BROADCAST_ADDRESS (cl:logior #x40000000 #x08000000 5))
1415 (defconstant-exported SIO_GET_EXTENSION_FUNCTION_POINTER (cl:logior IOC_INOUT IOC_WS2 6))
1417 (defconstant-exported SIO_GET_QOS (cl:logior IOC_INOUT IOC_WS2 7))
1419 (defconstant-exported SIO_GET_GROUP_QOS (cl:logior IOC_INOUT IOC_WS2 8))
1421 (defconstant-exported SIO_MULTIPOINT_LOOPBACK (cl:logior #x80000000 #x08000000 9))
1423 (defconstant-exported SIO_MULTICAST_SCOPE (cl:logior #x80000000 #x08000000 10))
1425 (defconstant-exported SIO_SET_QOS (cl:logior #x80000000 #x08000000 11))
1427 (defconstant-exported SIO_SET_GROUP_QOS (cl:logior #x80000000 #x08000000 12))
1429 (defconstant-exported SIO_TRANSLATE_HANDLE (cl:logior IOC_INOUT IOC_WS2 13))
1431 (defconstant-exported SIO_ROUTING_INTERFACE_QUERY (cl:logior IOC_INOUT IOC_WS2 20))
1433 (defconstant-exported SIO_ROUTING_INTERFACE_CHANGE (cl:logior #x80000000 #x08000000 21))
1435 (defconstant-exported SIO_ADDRESS_LIST_QUERY (cl:logior #x40000000 #x08000000 22))
1437 (defconstant-exported SIO_ADDRESS_LIST_CHANGE (cl:logior #x20000000 #x08000000 23))
1439 (defconstant-exported SIO_QUERY_TARGET_PNP_HANDLE (cl:logior #x40000000 #x08000000 24))
1441 (defconstant-exported SIO_NSP_NOTIFY_CHANGE (cl:logior #x80000000 #x08000000 25))
1443 (defconstant-exported TH_NETDEV #x00000001)
1445 (defconstant-exported TH_TAPI #x00000002)
1447 (defcfunex-exported ("WSAAccept" WSAAccept :convention :stdcall) :unsigned-int
1448 (arg0 :unsigned-int)
1449 (arg1 :pointer)
1450 (arg2 :pointer)
1451 (arg3 :pointer)
1452 (arg4 :unsigned-long))
1454 (defcfunex-exported ("WSAAddressToStringA" WSAAddressToStringA :convention :stdcall) :int
1455 (arg0 :pointer)
1456 (arg1 :unsigned-long)
1457 (arg2 :pointer)
1458 (arg3 :string)
1459 (arg4 :pointer))
1461 (defcfunex-exported ("WSAAddressToStringW" WSAAddressToStringW :convention :stdcall) :int
1462 (arg0 :pointer)
1463 (arg1 :unsigned-long)
1464 (arg2 :pointer)
1465 (arg3 :pointer)
1466 (arg4 :pointer))
1468 (defcfunex-exported ("WSACloseEvent" WSACloseEvent :convention :stdcall) :int
1469 (arg0 :pointer))
1471 (defcfunex-exported ("WSAConnect" WSAConnect :convention :stdcall) :int
1472 (arg0 :unsigned-int)
1473 (arg1 :pointer)
1474 (arg2 :int)
1475 (arg3 :pointer)
1476 (arg4 :pointer)
1477 (arg5 :pointer)
1478 (arg6 :pointer))
1480 (defcfunex-exported ("WSACreateEvent" WSACreateEvent :convention :stdcall) :pointer)
1482 (defcfunex-exported ("WSADuplicateSocketA" WSADuplicateSocketA :convention :stdcall) :int
1483 (arg0 :unsigned-int)
1484 (arg1 :unsigned-long)
1485 (arg2 :pointer))
1487 (defcfunex-exported ("WSADuplicateSocketW" WSADuplicateSocketW :convention :stdcall) :int
1488 (arg0 :unsigned-int)
1489 (arg1 :unsigned-long)
1490 (arg2 :pointer))
1492 (defcfunex-exported ("WSAEnumNameSpaceProvidersA" WSAEnumNameSpaceProvidersA :convention :stdcall) :int
1493 (arg0 :pointer)
1494 (arg1 :pointer))
1496 (defcfunex-exported ("WSAEnumNameSpaceProvidersW" WSAEnumNameSpaceProvidersW :convention :stdcall) :int
1497 (arg0 :pointer)
1498 (arg1 :pointer))
1500 (defcfunex-exported ("WSAEnumNetworkEvents" WSAEnumNetworkEvents :convention :stdcall) :int
1501 (arg0 :unsigned-int)
1502 (arg1 :pointer)
1503 (arg2 :pointer))
1505 (defcfunex-exported ("WSAEnumProtocolsA" WSAEnumProtocolsA :convention :stdcall) :int
1506 (arg0 :pointer)
1507 (arg1 :pointer)
1508 (arg2 :pointer))
1510 (defcfunex-exported ("WSAEnumProtocolsW" WSAEnumProtocolsW :convention :stdcall) :int
1511 (arg0 :pointer)
1512 (arg1 :pointer)
1513 (arg2 :pointer))
1515 (defcfunex-exported ("WSAEventSelect" WSAEventSelect :convention :stdcall) :int
1516 (arg0 :unsigned-int)
1517 (arg1 :pointer)
1518 (arg2 :int32))
1520 (defcfunex-exported ("WSAGetOverlappedResult" WSAGetOverlappedResult :convention :stdcall) :int
1521 (arg0 :unsigned-int)
1522 (arg1 :pointer)
1523 (arg2 :pointer)
1524 (arg3 :int)
1525 (arg4 :pointer))
1527 (defcfunex-exported ("WSAGetQOSByName" WSAGetQOSByName :convention :stdcall) :int
1528 (arg0 :unsigned-int)
1529 (arg1 :pointer)
1530 (arg2 :pointer))
1532 (defcfunex-exported ("WSAGetServiceClassInfoA" WSAGetServiceClassInfoA :convention :stdcall) :int
1533 (arg0 :pointer)
1534 (arg1 :pointer)
1535 (arg2 :pointer)
1536 (arg3 :pointer))
1538 (defcfunex-exported ("WSAGetServiceClassInfoW" WSAGetServiceClassInfoW :convention :stdcall) :int
1539 (arg0 :pointer)
1540 (arg1 :pointer)
1541 (arg2 :pointer)
1542 (arg3 :pointer))
1544 (defcfunex-exported ("WSAGetServiceClassNameByClassIdA" WSAGetServiceClassNameByClassIdA :convention :stdcall) :int
1545 (arg0 :pointer)
1546 (arg1 :string)
1547 (arg2 :pointer))
1549 (defcfunex-exported ("WSAGetServiceClassNameByClassIdW" WSAGetServiceClassNameByClassIdW :convention :stdcall) :int
1550 (arg0 :pointer)
1551 (arg1 :pointer)
1552 (arg2 :pointer))
1554 (defcfunex-exported ("WSAHtonl" WSAHtonl :convention :stdcall) :int
1555 (arg0 :unsigned-int)
1556 (arg1 :unsigned-long)
1557 (arg2 :pointer))
1559 (defcfunex-exported ("WSAHtons" WSAHtons :convention :stdcall) :int
1560 (arg0 :unsigned-int)
1561 (arg1 :unsigned-short)
1562 (arg2 :pointer))
1564 (defcfunex-exported ("WSAInstallServiceClassA" WSAInstallServiceClassA :convention :stdcall) :int
1565 (arg0 :pointer))
1567 (defcfunex-exported ("WSAInstallServiceClassW" WSAInstallServiceClassW :convention :stdcall) :int
1568 (arg0 :pointer))
1570 (defcfunex-exported ("WSAIoctl" WSAIoctl :convention :stdcall) :int
1571 (arg0 :unsigned-int)
1572 (arg1 :unsigned-long)
1573 (arg2 :pointer)
1574 (arg3 :unsigned-long)
1575 (arg4 :pointer)
1576 (arg5 :unsigned-long)
1577 (arg6 :pointer)
1578 (arg7 :pointer)
1579 (arg8 :pointer))
1581 (defcfunex-exported ("WSAJoinLeaf" WSAJoinLeaf :convention :stdcall) :unsigned-int
1582 (arg0 :unsigned-int)
1583 (arg1 :pointer)
1584 (arg2 :int)
1585 (arg3 :pointer)
1586 (arg4 :pointer)
1587 (arg5 :pointer)
1588 (arg6 :pointer)
1589 (arg7 :unsigned-long))
1591 (defcfunex-exported ("WSALookupServiceBeginA" WSALookupServiceBeginA :convention :stdcall) :int
1592 (arg0 :pointer)
1593 (arg1 :unsigned-long)
1594 (arg2 :pointer))
1596 (defcfunex-exported ("WSALookupServiceBeginW" WSALookupServiceBeginW :convention :stdcall) :int
1597 (lpqsRestrictions :pointer)
1598 (arg1 :unsigned-long)
1599 (arg2 :pointer))
1601 (defcfunex-exported ("WSALookupServiceNextA" WSALookupServiceNextA :convention :stdcall) :int
1602 (arg0 :pointer)
1603 (arg1 :unsigned-long)
1604 (arg2 :pointer)
1605 (arg3 :pointer))
1607 (defcfunex-exported ("WSALookupServiceNextW" WSALookupServiceNextW :convention :stdcall) :int
1608 (arg0 :pointer)
1609 (arg1 :unsigned-long)
1610 (arg2 :pointer)
1611 (arg3 :pointer))
1613 (defcfunex-exported ("WSALookupServiceEnd" WSALookupServiceEnd :convention :stdcall) :int
1614 (arg0 :pointer))
1616 (defcfunex-exported ("WSANSPIoctl" WSANSPIoctl :convention :stdcall) :int
1617 (arg0 :pointer)
1618 (arg1 :unsigned-long)
1619 (arg2 :pointer)
1620 (arg3 :unsigned-long)
1621 (arg4 :pointer)
1622 (arg5 :unsigned-long)
1623 (arg6 :pointer)
1624 (arg7 :pointer))
1626 (defcfunex-exported ("WSANtohl" WSANtohl :convention :stdcall) :int
1627 (arg0 :unsigned-int)
1628 (arg1 :unsigned-long)
1629 (arg2 :pointer))
1631 (defcfunex-exported ("WSANtohs" WSANtohs :convention :stdcall) :int
1632 (arg0 :unsigned-int)
1633 (arg1 :unsigned-short)
1634 (arg2 :pointer))
1636 (defcfunex-exported ("WSARecv" WSARecv :convention :stdcall) :int
1637 (arg0 :unsigned-int)
1638 (arg1 :pointer)
1639 (arg2 :unsigned-long)
1640 (arg3 :pointer)
1641 (arg4 :pointer)
1642 (arg5 :pointer)
1643 (arg6 :pointer))
1645 (defcfunex-exported ("WSARecvDisconnect" WSARecvDisconnect :convention :stdcall) :int
1646 (arg0 :unsigned-int)
1647 (arg1 :pointer))
1649 (defcfunex-exported ("WSARecvFrom" WSARecvFrom :convention :stdcall) :int
1650 (arg0 :unsigned-int)
1651 (arg1 :pointer)
1652 (arg2 :unsigned-long)
1653 (arg3 :pointer)
1654 (arg4 :pointer)
1655 (arg5 :pointer)
1656 (arg6 :pointer)
1657 (arg7 :pointer)
1658 (arg8 :pointer))
1660 (defcfunex-exported ("WSARemoveServiceClass" WSARemoveServiceClass :convention :stdcall) :int
1661 (arg0 :pointer))
1663 (defcfunex-exported ("WSAResetEvent" WSAResetEvent :convention :stdcall) :int
1664 (arg0 :pointer))
1666 (defcfunex-exported ("WSASend" WSASend :convention :stdcall) :int
1667 (arg0 :unsigned-int)
1668 (arg1 :pointer)
1669 (arg2 :unsigned-long)
1670 (arg3 :pointer)
1671 (arg4 :unsigned-long)
1672 (arg5 :pointer)
1673 (arg6 :pointer))
1675 (defcfunex-exported ("WSASendDisconnect" WSASendDisconnect :convention :stdcall) :int
1676 (arg0 :unsigned-int)
1677 (arg1 :pointer))
1679 (defcfunex-exported ("WSASendTo" WSASendTo :convention :stdcall) :int
1680 (arg0 :unsigned-int)
1681 (arg1 :pointer)
1682 (arg2 :unsigned-long)
1683 (arg3 :pointer)
1684 (arg4 :unsigned-long)
1685 (arg5 :pointer)
1686 (arg6 :int)
1687 (arg7 :pointer)
1688 (arg8 :pointer))
1690 (defcfunex-exported ("WSASetEvent" WSASetEvent :convention :stdcall) :int
1691 (arg0 :pointer))
1693 (defcfunex-exported ("WSASetServiceA" WSASetServiceA :convention :stdcall) :int
1694 (arg0 :pointer)
1695 (arg1 WSAESETSERVICEOP)
1696 (arg2 :unsigned-long))
1698 (defcfunex-exported ("WSASetServiceW" WSASetServiceW :convention :stdcall) :int
1699 (arg0 :pointer)
1700 (arg1 WSAESETSERVICEOP)
1701 (arg2 :unsigned-long))
1703 (defcfunex-exported ("WSASocketA" WSASocketA :convention :stdcall) :unsigned-int
1704 (arg0 :int)
1705 (arg1 :int)
1706 (arg2 :int)
1707 (arg3 :pointer)
1708 (arg4 :unsigned-int)
1709 (arg5 :unsigned-long))
1711 (defcfunex-exported ("WSASocketW" WSASocketW :convention :stdcall) :unsigned-int
1712 (arg0 :int)
1713 (arg1 :int)
1714 (arg2 :int)
1715 (arg3 :pointer)
1716 (arg4 :unsigned-int)
1717 (arg5 :unsigned-long))
1719 (defcfunex-exported ("WSAStringToAddressA" WSAStringToAddressA :convention :stdcall) :int
1720 (arg0 :string)
1721 (arg1 :int)
1722 (arg2 :pointer)
1723 (arg3 :pointer)
1724 (arg4 :pointer))
1726 (defcfunex-exported ("WSAStringToAddressW" WSAStringToAddressW :convention :stdcall) :int
1727 (arg0 :pointer)
1728 (arg1 :int)
1729 (arg2 :pointer)
1730 (arg3 :pointer)
1731 (arg4 :pointer))
1733 (defcfunex-exported ("WSAWaitForMultipleEvents" WSAWaitForMultipleEvents :convention :stdcall) :unsigned-long
1734 (arg0 :unsigned-long)
1735 (arg1 :pointer)
1736 (arg2 :int)
1737 (arg3 :unsigned-long)
1738 (arg4 :int))