massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / _socket.pyi
1 from typing import Tuple, Union, IO, Any, Optional, overload\r
2 \r
3 AF_APPLETALK = ...  # type: int\r
4 AF_ASH = ...  # type: int\r
5 AF_ATMPVC = ...  # type: int\r
6 AF_ATMSVC = ...  # type: int\r
7 AF_AX25 = ...  # type: int\r
8 AF_BLUETOOTH = ...  # type: int\r
9 AF_BRIDGE = ...  # type: int\r
10 AF_DECnet = ...  # type: int\r
11 AF_ECONET = ...  # type: int\r
12 AF_INET = ...  # type: int\r
13 AF_INET6 = ...  # type: int\r
14 AF_IPX = ...  # type: int\r
15 AF_IRDA = ...  # type: int\r
16 AF_KEY = ...  # type: int\r
17 AF_LLC = ...  # type: int\r
18 AF_NETBEUI = ...  # type: int\r
19 AF_NETLINK = ...  # type: int\r
20 AF_NETROM = ...  # type: int\r
21 AF_PACKET = ...  # type: int\r
22 AF_PPPOX = ...  # type: int\r
23 AF_ROSE = ...  # type: int\r
24 AF_ROUTE = ...  # type: int\r
25 AF_SECURITY = ...  # type: int\r
26 AF_SNA = ...  # type: int\r
27 AF_TIPC = ...  # type: int\r
28 AF_UNIX = ...  # type: int\r
29 AF_UNSPEC = ...  # type: int\r
30 AF_WANPIPE = ...  # type: int\r
31 AF_X25 = ...  # type: int\r
32 AI_ADDRCONFIG = ...  # type: int\r
33 AI_ALL = ...  # type: int\r
34 AI_CANONNAME = ...  # type: int\r
35 AI_NUMERICHOST = ...  # type: int\r
36 AI_NUMERICSERV = ...  # type: int\r
37 AI_PASSIVE = ...  # type: int\r
38 AI_V4MAPPED = ...  # type: int\r
39 BDADDR_ANY = ...  # type: str\r
40 BDADDR_LOCAL = ...  # type: str\r
41 BTPROTO_HCI = ...  # type: int\r
42 BTPROTO_L2CAP = ...  # type: int\r
43 BTPROTO_RFCOMM = ...  # type: int\r
44 BTPROTO_SCO = ...  # type: int\r
45 EAI_ADDRFAMILY = ...  # type: int\r
46 EAI_AGAIN = ...  # type: int\r
47 EAI_BADFLAGS = ...  # type: int\r
48 EAI_FAIL = ...  # type: int\r
49 EAI_FAMILY = ...  # type: int\r
50 EAI_MEMORY = ...  # type: int\r
51 EAI_NODATA = ...  # type: int\r
52 EAI_NONAME = ...  # type: int\r
53 EAI_OVERFLOW = ...  # type: int\r
54 EAI_SERVICE = ...  # type: int\r
55 EAI_SOCKTYPE = ...  # type: int\r
56 EAI_SYSTEM = ...  # type: int\r
57 EBADF = ...  # type: int\r
58 EINTR = ...  # type: int\r
59 HCI_DATA_DIR = ...  # type: int\r
60 HCI_FILTER = ...  # type: int\r
61 HCI_TIME_STAMP = ...  # type: int\r
62 INADDR_ALLHOSTS_GROUP = ...  # type: int\r
63 INADDR_ANY = ...  # type: int\r
64 INADDR_BROADCAST = ...  # type: int\r
65 INADDR_LOOPBACK = ...  # type: int\r
66 INADDR_MAX_LOCAL_GROUP = ...  # type: int\r
67 INADDR_NONE = ...  # type: int\r
68 INADDR_UNSPEC_GROUP = ...  # type: int\r
69 IPPORT_RESERVED = ...  # type: int\r
70 IPPORT_USERRESERVED = ...  # type: int\r
71 IPPROTO_AH = ...  # type: int\r
72 IPPROTO_DSTOPTS = ...  # type: int\r
73 IPPROTO_EGP = ...  # type: int\r
74 IPPROTO_ESP = ...  # type: int\r
75 IPPROTO_FRAGMENT = ...  # type: int\r
76 IPPROTO_GRE = ...  # type: int\r
77 IPPROTO_HOPOPTS = ...  # type: int\r
78 IPPROTO_ICMP = ...  # type: int\r
79 IPPROTO_ICMPV6 = ...  # type: int\r
80 IPPROTO_IDP = ...  # type: int\r
81 IPPROTO_IGMP = ...  # type: int\r
82 IPPROTO_IP = ...  # type: int\r
83 IPPROTO_IPIP = ...  # type: int\r
84 IPPROTO_IPV6 = ...  # type: int\r
85 IPPROTO_NONE = ...  # type: int\r
86 IPPROTO_PIM = ...  # type: int\r
87 IPPROTO_PUP = ...  # type: int\r
88 IPPROTO_RAW = ...  # type: int\r
89 IPPROTO_ROUTING = ...  # type: int\r
90 IPPROTO_RSVP = ...  # type: int\r
91 IPPROTO_TCP = ...  # type: int\r
92 IPPROTO_TP = ...  # type: int\r
93 IPPROTO_UDP = ...  # type: int\r
94 IPV6_CHECKSUM = ...  # type: int\r
95 IPV6_DSTOPTS = ...  # type: int\r
96 IPV6_HOPLIMIT = ...  # type: int\r
97 IPV6_HOPOPTS = ...  # type: int\r
98 IPV6_JOIN_GROUP = ...  # type: int\r
99 IPV6_LEAVE_GROUP = ...  # type: int\r
100 IPV6_MULTICAST_HOPS = ...  # type: int\r
101 IPV6_MULTICAST_IF = ...  # type: int\r
102 IPV6_MULTICAST_LOOP = ...  # type: int\r
103 IPV6_NEXTHOP = ...  # type: int\r
104 IPV6_PKTINFO = ...  # type: int\r
105 IPV6_RECVDSTOPTS = ...  # type: int\r
106 IPV6_RECVHOPLIMIT = ...  # type: int\r
107 IPV6_RECVHOPOPTS = ...  # type: int\r
108 IPV6_RECVPKTINFO = ...  # type: int\r
109 IPV6_RECVRTHDR = ...  # type: int\r
110 IPV6_RECVTCLASS = ...  # type: int\r
111 IPV6_RTHDR = ...  # type: int\r
112 IPV6_RTHDRDSTOPTS = ...  # type: int\r
113 IPV6_RTHDR_TYPE_0 = ...  # type: int\r
114 IPV6_TCLASS = ...  # type: int\r
115 IPV6_UNICAST_HOPS = ...  # type: int\r
116 IPV6_V6ONLY = ...  # type: int\r
117 IP_ADD_MEMBERSHIP = ...  # type: int\r
118 IP_DEFAULT_MULTICAST_LOOP = ...  # type: int\r
119 IP_DEFAULT_MULTICAST_TTL = ...  # type: int\r
120 IP_DROP_MEMBERSHIP = ...  # type: int\r
121 IP_HDRINCL = ...  # type: int\r
122 IP_MAX_MEMBERSHIPS = ...  # type: int\r
123 IP_MULTICAST_IF = ...  # type: int\r
124 IP_MULTICAST_LOOP = ...  # type: int\r
125 IP_MULTICAST_TTL = ...  # type: int\r
126 IP_OPTIONS = ...  # type: int\r
127 IP_RECVOPTS = ...  # type: int\r
128 IP_RECVRETOPTS = ...  # type: int\r
129 IP_RETOPTS = ...  # type: int\r
130 IP_TOS = ...  # type: int\r
131 IP_TTL = ...  # type: int\r
132 MSG_CTRUNC = ...  # type: int\r
133 MSG_DONTROUTE = ...  # type: int\r
134 MSG_DONTWAIT = ...  # type: int\r
135 MSG_EOR = ...  # type: int\r
136 MSG_OOB = ...  # type: int\r
137 MSG_PEEK = ...  # type: int\r
138 MSG_TRUNC = ...  # type: int\r
139 MSG_WAITALL = ...  # type: int\r
140 MethodType = ...  # type: type\r
141 NETLINK_DNRTMSG = ...  # type: int\r
142 NETLINK_FIREWALL = ...  # type: int\r
143 NETLINK_IP6_FW = ...  # type: int\r
144 NETLINK_NFLOG = ...  # type: int\r
145 NETLINK_ROUTE = ...  # type: int\r
146 NETLINK_USERSOCK = ...  # type: int\r
147 NETLINK_XFRM = ...  # type: int\r
148 NI_DGRAM = ...  # type: int\r
149 NI_MAXHOST = ...  # type: int\r
150 NI_MAXSERV = ...  # type: int\r
151 NI_NAMEREQD = ...  # type: int\r
152 NI_NOFQDN = ...  # type: int\r
153 NI_NUMERICHOST = ...  # type: int\r
154 NI_NUMERICSERV = ...  # type: int\r
155 PACKET_BROADCAST = ...  # type: int\r
156 PACKET_FASTROUTE = ...  # type: int\r
157 PACKET_HOST = ...  # type: int\r
158 PACKET_LOOPBACK = ...  # type: int\r
159 PACKET_MULTICAST = ...  # type: int\r
160 PACKET_OTHERHOST = ...  # type: int\r
161 PACKET_OUTGOING = ...  # type: int\r
162 PF_PACKET = ...  # type: int\r
163 SHUT_RD = ...  # type: int\r
164 SHUT_RDWR = ...  # type: int\r
165 SHUT_WR = ...  # type: int\r
166 SOCK_DGRAM = ...  # type: int\r
167 SOCK_RAW = ...  # type: int\r
168 SOCK_RDM = ...  # type: int\r
169 SOCK_SEQPACKET = ...  # type: int\r
170 SOCK_STREAM = ...  # type: int\r
171 SOL_HCI = ...  # type: int\r
172 SOL_IP = ...  # type: int\r
173 SOL_SOCKET = ...  # type: int\r
174 SOL_TCP = ...  # type: int\r
175 SOL_TIPC = ...  # type: int\r
176 SOL_UDP = ...  # type: int\r
177 SOMAXCONN = ...  # type: int\r
178 SO_ACCEPTCONN = ...  # type: int\r
179 SO_BROADCAST = ...  # type: int\r
180 SO_DEBUG = ...  # type: int\r
181 SO_DONTROUTE = ...  # type: int\r
182 SO_ERROR = ...  # type: int\r
183 SO_KEEPALIVE = ...  # type: int\r
184 SO_LINGER = ...  # type: int\r
185 SO_OOBINLINE = ...  # type: int\r
186 SO_RCVBUF = ...  # type: int\r
187 SO_RCVLOWAT = ...  # type: int\r
188 SO_RCVTIMEO = ...  # type: int\r
189 SO_REUSEADDR = ...  # type: int\r
190 SO_REUSEPORT = ...  # type: int\r
191 SO_SNDBUF = ...  # type: int\r
192 SO_SNDLOWAT = ...  # type: int\r
193 SO_SNDTIMEO = ...  # type: int\r
194 SO_TYPE = ...  # type: int\r
195 SSL_ERROR_EOF = ...  # type: int\r
196 SSL_ERROR_INVALID_ERROR_CODE = ...  # type: int\r
197 SSL_ERROR_SSL = ...  # type: int\r
198 SSL_ERROR_SYSCALL = ...  # type: int\r
199 SSL_ERROR_WANT_CONNECT = ...  # type: int\r
200 SSL_ERROR_WANT_READ = ...  # type: int\r
201 SSL_ERROR_WANT_WRITE = ...  # type: int\r
202 SSL_ERROR_WANT_X509_LOOKUP = ...  # type: int\r
203 SSL_ERROR_ZERO_RETURN = ...  # type: int\r
204 TCP_CORK = ...  # type: int\r
205 TCP_DEFER_ACCEPT = ...  # type: int\r
206 TCP_INFO = ...  # type: int\r
207 TCP_KEEPCNT = ...  # type: int\r
208 TCP_KEEPIDLE = ...  # type: int\r
209 TCP_KEEPINTVL = ...  # type: int\r
210 TCP_LINGER2 = ...  # type: int\r
211 TCP_MAXSEG = ...  # type: int\r
212 TCP_NODELAY = ...  # type: int\r
213 TCP_QUICKACK = ...  # type: int\r
214 TCP_SYNCNT = ...  # type: int\r
215 TCP_WINDOW_CLAMP = ...  # type: int\r
216 TIPC_ADDR_ID = ...  # type: int\r
217 TIPC_ADDR_NAME = ...  # type: int\r
218 TIPC_ADDR_NAMESEQ = ...  # type: int\r
219 TIPC_CFG_SRV = ...  # type: int\r
220 TIPC_CLUSTER_SCOPE = ...  # type: int\r
221 TIPC_CONN_TIMEOUT = ...  # type: int\r
222 TIPC_CRITICAL_IMPORTANCE = ...  # type: int\r
223 TIPC_DEST_DROPPABLE = ...  # type: int\r
224 TIPC_HIGH_IMPORTANCE = ...  # type: int\r
225 TIPC_IMPORTANCE = ...  # type: int\r
226 TIPC_LOW_IMPORTANCE = ...  # type: int\r
227 TIPC_MEDIUM_IMPORTANCE = ...  # type: int\r
228 TIPC_NODE_SCOPE = ...  # type: int\r
229 TIPC_PUBLISHED = ...  # type: int\r
230 TIPC_SRC_DROPPABLE = ...  # type: int\r
231 TIPC_SUBSCR_TIMEOUT = ...  # type: int\r
232 TIPC_SUB_CANCEL = ...  # type: int\r
233 TIPC_SUB_PORTS = ...  # type: int\r
234 TIPC_SUB_SERVICE = ...  # type: int\r
235 TIPC_TOP_SRV = ...  # type: int\r
236 TIPC_WAIT_FOREVER = ...  # type: int\r
237 TIPC_WITHDRAWN = ...  # type: int\r
238 TIPC_ZONE_SCOPE = ...  # type: int\r
239 \r
240 # PyCapsule\r
241 CAPI = ...  # type: Any\r
242 \r
243 has_ipv6 = ...  # type: bool\r
244 \r
245 class error(IOError): ...\r
246 class gaierror(error): ...\r
247 class timeout(error): ...\r
248 \r
249 class SocketType(object):\r
250     family = ...  # type: int\r
251     type = ...  # type: int\r
252     proto = ...  # type: int\r
253     timeout = ...  # type: float\r
254 \r
255     def __init__(self, family: int = ..., type: int = ..., proto: int = ...) -> None: ...\r
256     def accept(self) -> Tuple['SocketType', tuple]: ...\r
257     def bind(self, address: tuple) -> None: ...\r
258     def close(self) -> None: ...\r
259     def connect(self, address: tuple) -> None:\r
260         raise gaierror\r
261         raise timeout\r
262     def connect_ex(self, address: tuple) -> int: ...\r
263     def dup(self) -> "SocketType": ...\r
264     def fileno(self) -> int: ...\r
265     def getpeername(self) -> tuple: ...\r
266     def getsockname(self) -> tuple: ...\r
267     def getsockopt(self, level: int, option: int, buffersize: int = ...) -> str: ...\r
268     def gettimeout(self) -> float: ...\r
269     def listen(self, backlog: int) -> None:\r
270         raise error\r
271     def makefile(self, mode: str = ..., buffersize: int = ...) -> IO[Any]: ...\r
272     def recv(self, buffersize: int, flags: int = ...) -> str: ...\r
273     def recv_into(self, buffer: bytearray, nbytes: int = ..., flags: int = ...) -> int: ...\r
274     def recvfrom(self, buffersize: int, flags: int = ...) -> tuple:\r
275         raise error\r
276     def recvfrom_into(self, buffer: bytearray, nbytes: int = ...,\r
277                       flags: int = ...) -> int: ...\r
278     def send(self, data: str, flags: int =...) -> int: ...\r
279     def sendall(self, data: str, flags: int = ...) -> None: ...\r
280     @overload\r
281     def sendto(self, data: str, address: tuple) -> int: ...\r
282     @overload\r
283     def sendto(self, data: str, flags: int, address: tuple) -> int: ...\r
284     def setblocking(self, flag: bool) -> None: ...\r
285     def setsockopt(self, level: int, option: int, value: Union[int, str]) -> None: ...\r
286     def settimeout(self, value: Optional[float]) -> None: ...\r
287     def shutdown(self, flag: int) -> None: ...\r