Files
952-11/env/python/dll/Python312/Lib/__pycache__/socket.cpython-312.pyc
T

309 lines
41 KiB
Plaintext
Raw Normal View History

2024-08-19 17:05:14 +08:00
Ë
*åfë•ãóü—dZddlZddl­ddlZddlZddlZddlZddlmZmZ ddl Z e e dd«Z e e dd«Z
e e d d«Zgd
¢Zej!ej"e««ej$d ed „«ej$d
ed„«ej$ded„«ej$ded„«dZdZd„Zej.j1«j3d«�rîiZded<ded<ded<ded<ded <d!ed"<d#ed$<d%ed&<d'ed(<d)ed*<d+ed,<d-ed.<d/ed0<d1ed2<d3ed4<d5ed6<d7ed8<d9ed:<d;ed<<d=ed><d?ed@<dAedB<dCedD<dEedF<dGedH<dIedJ<dKedL<dMedN<dOedP<dQedR<dSedT<dUedV<dWedX<dYedZ<d[ed\<d]ed^<d_ed`<daedb<dcedd<deedf<dgedh<diedj<dkedl<dmedn<doedp<dqedr<dsedt<duedv<dwedx<dyedz<d{ed|<d}ed~<ded€<d�ed‚<dƒed„<d…ed†<d‡edˆ<d‰edŠ<d‹edŒ<d�edŽ<d�ed�<d�ed‘<d’ed“<d”ed•<d–ed—<d˜ed™<dšed›<dœed�<džedŸ<d ed¡<d¢ed£<d¤ed¥<d¦ed§<d¨ed©<dªed«<d¬ed­<d®ed¯<d°ed±<d²ed³<d´edµ<d¶ed·<d¸ed¹<dºed»<dºed¼<d½ed¾<d¿edÀ<dÁedÂ<dÃedÄ<dÅedÆ<dÇedÈ<dÉedÊ<dËedÌ<dÍedÎ<dÏedÐ<dÑedÒ<ej7dÓ«GdÔ„dÕe«ZGdÖ„d×ej<«ZdðdØ„Ze ej<dÙ«rddl!Z!dñdÚ„Z"ej7dÛ«e ej<dÜ«rddl!Z!dðdÝ„Z#ej7dÞ«e ej<dß«rdà„Z$ej7dá«e edâ«rde%dfdã„Z&ne'e%dfdä„Z&ej7dâ«dåe&_e
ehZ(Gdæ„dçejR«Z*dòdè„Z+e,«Z-e-dfdédêœdë„Z.dì„Z/e'ddédédíœdî„Z0dódï„Z1y#e
$rdZ Y�ŒÑwxYw)ôaåThis module provides socket operations and some related functions.
On Unix, it supports IP (Internet Protocol) and Unix domain sockets.
On other systems, it only supports IP. Functions specific for a
socket are available as methods of the socket object.
Functions:
socket() -- create a new socket object
socketpair() -- create a pair of new socket objects [*]
fromfd() -- create a socket object from an open file descriptor [*]
send_fds() -- Send file descriptor to the socket.
recv_fds() -- Receive file descriptors from the socket.
fromshare() -- create a socket object from data received from socket.share() [*]
gethostname() -- return the current hostname
gethostbyname() -- map a hostname to its IP number
gethostbyaddr() -- map an IP number or hostname to DNS info
getservbyname() -- map a service name and a protocol name to a port number
getprotobyname() -- map a protocol name (e.g. 'tcp') to a number
ntohs(), ntohl() -- convert 16, 32 bit int from network to host byte order
htons(), htonl() -- convert 16, 32 bit int from host to network byte order
inet_aton() -- convert IP addr string (123.45.67.89) to 32-bit packed format
inet_ntoa() -- convert 32-bit packed format IP to string (123.45.67.89)
socket.getdefaulttimeout() -- get the default timeout value
socket.setdefaulttimeout() -- set the default timeout value
create_connection() -- connects to an address, with an optional timeout and
optional source address.
create_server() -- create a TCP socket and bind it to a specified address.
[*] not available on all platforms!
Special objects:
SocketType -- type object for socket objects
error -- exception raised for I/O errors
has_ipv6 -- boolean value indicating if IPv6 is supported
IntEnum constants:
AF_INET, AF_UNIX -- socket domains (first argument to socket() call)
SOCK_STREAM, SOCK_DGRAM, SOCK_RAW -- socket types (second argument)
Integer constants:
Many other constants may be defined; these may be used in calls to
the setsockopt() and getsockopt() methods.
éN)Ú*)ÚIntEnumÚIntFlagÚEBADFé ÚEAGAINé Ú EWOULDBLOCK)ÚfromfdÚgetfqdnÚcreate_connectionÚ
create_serverÚhas_dualstack_ipv6Ú
AddressFamilyÚ
SocketKindrcóH—|j«xr|jd«S)NÚAF_©ÚisupperÚ
startswith©ÚCs úBC:\Users\RCi\AppData\Local\Programs\Python\Python312\Lib\socket.pyú<lambda>rOó€�!—)‘)“+Ò5 !§,¡,¨uÓ"5€órcóH—|j«xr|jd«S)NÚSOCK_rrs rrrTs€�!—)‘)“+Ò7 !§,¡,¨wÓ"7€rÚMsgFlagcóH—|j«xr|jd«S)NÚMSG_rrs rrrYs€�!—)‘)“+Ò6 !§,¡,¨vÓ"6€rÚ AddressInfocóH—|j«xr|jd«S)NÚAI_rrs rrr^rrz 127.0.0.1z::1có6— ||«S#t$r|cYSwxYw)z{Convert a numeric family value to an IntEnum member.
If it's not a known member, return the numeric value itself.
)Ú
ValueError)ÚvalueÚ
enum_klasss rÚ_intenum_converterr)ds&€ð
Ù˜%Ó Ð øÜ òØŠ ðús ‚
Š —Úwinz)Specified event object handle is invalid.ézInsufficient memory available.éz#One or more parameters are invalid.éWzOverlapped operation aborted.iãz2Overlapped I/O event object not in signaled state.iäz)Overlapped operation will complete later.iåzThe operation was interrupted.i'zA bad file handle was passed.i'zPermission denied.i'z!A fault occurred on the network??i'z#An invalid operation was attempted.i&'zToo many open files.i('z!The socket operation would block.i3'z,A blocking operation is already in progress.i4'zOperation already in progress.i5'zSocket operation on nonsocket.i6'zDestination address required.i7'zMessage too long.i8'zProtocol wrong type for socket.i9'zBad protocol option.i:'zProtocol not supported.i;'zSocket type not supported.i<'zOperation not supported.i='zProtocol family not supported.i>'z0Address family not supported by protocol family.i?'zThe network address is in use.i@'z Cannot assign requested address.iA'zNetwork is down.iB'zNetwork is unreachable.iC'z$Network dropped connection on reset.iD'z!Software caused connection abort.iE'zThe connection has been reset.iF'zNo buffer space available.iG'zSocket is already connected.iH'zSocket is not connected.iI'zThe network has been shut down.iJ'zToo many references.iK'zThe operation timed out.iL'zConnection refused.iM'zCannot translate name.iN'zThe name is too long.iO'zThe host is down.iP'zThe host is unreachable.iQ'zDirectory not empty.iR'zToo many processes.iS'zUser quota exceeded.iT'zDisk quota exceeded.iU'zStale file handle reference.iV'zItem is remote.iW'z!Network subsystem is unavailable.ik'z!Winsock.dll version out of range.il'z(Successful WSAStartup not yet performed.im'zGraceful shutdown in progress.iu'z*No more results from WSALookupServiceNext.iv'zCall has been canceled.iw'z Procedure call table is invalid.ix'zService provider is invalid.iy'z&Service provider failed to initialize.iz'zSystem call failure.i{'zService not found.i|'zClass type not found.i}'i~'zCall was canceled.i'zDatabase query was refused.i€'zHost not found.iù*z Nonauthoritative host not found.iú*zThis is a nonrecoverable error.iû*z*Valid name, no data record requested type.iü*zQoS receivers.iý*z QoS senders.iþ*zNo QoS senders.iÿ*zQoS no receivers.i+zQoS request confirmed.i+zQoS admission error.i+zQoS policy failure.i+zQoS bad style.i+zQoS bad object.i+zQoS traffic control error.i+zQoS generic error.i+zQoS service type error.i+zQoS flowspec error.i +zInvalid QoS provider buffer.i
+zInvalid QoS filter style.i +i +zIncorrect QoS filter count.i
+zInvalid QoS object length.i+zIncorrect QoS flow count.i+zUnrecognized QoS object.i+zInvalid QoS policy object.i+zInvalid QoS flow descriptor.i+z'Invalid QoS provider-specific flowspec.i+z)Invalid QoS provider-specific filterspec.i+z&Invalid QoS shape discard mode object.i+z Invalid QoS shaping rate object.i+z!Reserved policy QoS element type.i+ÚerrorTabcó —eZdZy)Ú_GiveupOnSendfileN)Ú__name__Ú
__module__Ú __qualname__©rrr0r0Ôs…rr0cóH‡—eZdZdZgd¢Zd d„Zd„Zd„Zd„Zd„Z d „Z
d
„Z d!dddd œd „Z e
ed
«rd"d„Znd"d„Zd"d„Zd„Zd"d„Zd„Zej*fd„Zd„Zˆfd„Zeˆfd„«Zeˆfd„«Zej8dk(rd„Zd„Znd„Zd„Zde_de_ˆxZS)#Úsocketz:A subclass of _socket.socket adding the makefile() method.)Ú __weakref__Ú_io_refsÚ_closedNcó¤—|€|dk(rt}|dk(rt}|dk(rd}tjj |||||«d|_d|_y)NéÿÿÿÿrF)ÚAF_INETÚ SOCK_STREAMÚ_socketr6Ú__init__r8r9)ÚselfÚfamilyÚtypeÚprotoÚfilenos rr?zsocket.__init__ÝsU€ð
ˆ>ؘŠ|Ü �Ø�rŠzÜ"�ؘŠ{Ø�Ü�‰×Ñ  f¨d°E¸6ÔB؈Œ
؈� rcó—|S©Nr4©r@s rÚ __enter__zsocket.__enter__ís€Øˆ rcó>—|js|j«yyrF)r9Úclose)r@Úargss rÚ__exit__zsocket.__exit__ðs€Ø�|Š|Ø �J‰J�LðrcóÚ—t|dd«}d|jj|jj|rdnd|j «|j
|j |jfz}|sH |j«}|r|dt|«zz
} |j«}|r|dt|«zz
}|dz
}|S#ttf$rYŒ<wxYw#ttf$rYŒ-wxYw) zVWrap __repr__() to reveal the real class name and socket
address(es).
r9Fz,<%s.%s%s fd=%i, family=%s, type=%s, proto=%iz [closed]Úz
, laddr=%sz
, raddr=%sú>)
ÚgetattrÚ __class__r2r3rDrArBrCÚ getsocknameÚstrÚerrorÚAttributeErrorÚ getpeername)r@ÚclosedÚsÚladdrÚraddrs rÚ__repr__zsocket.__repr__ôsø€ô˜˜y¨%Ó0ˆØ :Ø�~‰~×(Ñ(Ø�~‰~×*Ñ*Ù$‰{¨"Ø�{‰{‹}Ø�{‰{Ø�y‰yØ�z‰zð
ñ
ˆñð
Ø×(Ñ(Ó*�ÙØ˜¬¨E«
Ñ2Ñ2�Að
Ø×(Ñ(Ó*�ÙØ˜¬¨E«
Ñ2Ñ2�Að
ˆS‰ˆØˆøôœ>Ð*ò
Ùð
ûô œ>Ð*ò
Ùð
ús$Á5#CÂ#CÃCÃCÃC*Ã)C*cóH—td|jj›d�«‚)Nzcannot pickle z object)Ú TypeErrorrQr1rGs rÚ __getstate__zsocket.__getstate__s!€Ü˜.¨¯©×)@Ñ)@Ð(CÀ7ÐKÓLÐLrcóÜ—t|j««}|j|j|j|j
|¬«}|j
|j««|S)z«dup() -> socket object
Duplicate the socket. Return a new socket object connected to the same
system resource. The new socket is non-inheritable.
©rD)ÚduprDrQrArBrCÚ
settimeoutÚ
gettimeout)r@ÚfdÚsocks rraz
socket.dupsN€ô �—‘“Ó
ˆØ�~‰~˜dŸk™k¨4¯9©9°d·j±jȈ~ÓLˆØ �‰˜Ÿ™Ó)Ô*؈ rcóà—|j«\}}t|j|j|j|¬«}t «€!|j
«r|jd«||fS)zúaccept() -> (socket object, address info)
Wait for an incoming connection. Return a new socket
representing the connection, and the address of the client.
For IP sockets, the address info is a pair (hostaddr, port).
r`T)Ú_acceptr6rArBrCÚgetdefaulttimeoutrcÚ setblocking)r@rdÚaddrres rÚacceptz
socket.accept s[€ð—<‘<“>‰ˆˆDÜ�d—k‘k 4§9¡9¨d¯j©jÀÔDˆô Ó Ð &¨4¯?©?Ô+<Ø × Ñ ˜TÔ "Ø�TˆzÐr)ÚencodingÚerrorsÚnewlinecó<—t|«hd£kstd|›d�«‚d|v}d|vxs| }|s|sJ‚d|v}d} |r| dz
} |r| dz
} t|| «}
|xjdz
c_|€d }|d
krtj
}|d
k(r|s td «‚|
S|r|rt j |
|
|«} n3|rt j|
|«} n|sJ‚t j|
|«} |r| St j|«}t j| |||«} || _ | S) zÍmakefile(...) -> an I/O stream connected to the socket
The arguments are as for io.open() after the filename, except the only
supported mode values are 'r' (default), 'w' and 'b'.
>ÚbÚrÚwz
invalid mode z (only r, w, b allowed)rrrqrprNér;rz!unbuffered streams must be binary) Úsetr&ÚSocketIOr8ÚioÚDEFAULT_BUFFER_SIZEÚBufferedRWPairÚBufferedReaderÚBufferedWriterÚ
text_encodingÚ
TextIOWrapperÚmode)
r@r}Ú bufferingrlrmrnÚwritingÚreadingÚbinaryÚrawmodeÚrawÚbufferÚtexts
rÚmakefilezsocket.makefile0s;€ô�4‹yšOÒ+ÝÊÐOÓPÐ Pؘ�+ˆØ˜�+Ò, W ˆÙ™'Ð!Ð!ؘ�ˆØˆÙ Ø �s‰NˆGÙ Ø �s‰NˆGÜ�t˜WÓ%ˆØ �
Š
˜Ñ�
Ø Ð ØˆIØ �qŠ=Ü×.Ñ.ˆIØ ˜Š>ÙÜ Ð!DÓEÐE؈JÙ ‘wÜ×&Ñ& s¨C°Ó;‰FÙ
Ü×&Ñ& s¨IÓ6‰FáˆN�7Ü×&Ñ& s¨IÓ6ˆF٠؈MÜ×#Ñ# HÓ-ˆÜ×Ñ ¨°&¸'ÓBˆØˆŒ ؈ rÚsendfilecó0—|j|||«|j«} |j«} t
j|«j}|syt|xs|d«}|j«} | dk(r td«‚ttd«rtj«}
ntj «}
|
j#|tj$«d} |
j&} t j(}
| r| | «s t+d«‚|rt|| z
|«}|dkrn |
||||«}|dk(rn ||z
}| |z
} ŒI| | dkDrt|d«r|j/|«SSS#ttjf$r}t |«‚d}~wwxYw#t$r}t |«‚d}~wwxYw#t,$r | s| «YŒÌt$r}| dk(r t |«‚|d‚d}~wwxYw#| dkDrt|d«r|j/|«wwwxYw)Nri@ú&non-blocking sockets are not supportedÚ PollSelectorz timed outÚseek)Ú_check_sendfile_paramsrDrUrvÚUnsupportedOperationr0ÚosÚfstatÚst_sizeÚOSErrorÚminrcr&ÚhasattrÚ selectorsrŠÚSelectSelectorÚregisterÚ EVENT_WRITEÚselectr‡Ú TimeoutErrorÚBlockingIOErrorr‹)r@ÚfileÚoffsetÚcountÚsocknorDÚerrÚfsizeÚ blocksizeÚtimeoutÚselectorÚ
total_sentÚselector_selectÚ os_sendfileÚsents rÚ_sendfile_use_sendfilezsocket._sendfile_use_sendfile]s€Ø × 'Ñ '¨¨f°eÔ <Ø—[‘[“]ˆFð
-ØŸ™›�ð
-ÜŸ™ Ó(×0Ñ0�ñØä˜EšN U¨GÓ4ˆIØ—o‘oÓ'ˆGؘ!Š|Ü Ð!IÓJÐJô”y .Ô1Ü$×1Ñ1Ó3‘ä$×3Ñ3Ó5�Ø × Ñ ˜f¤i×&;Ñ&;Ô <àˆJà&Ÿo™oˆOÜŸ+™+ˆKð
&ØÙ¡°wÔ'?Ü*¨;Ó7Ð7ÙÜ$'¨°
Ñ(:¸IÓ$F˜ Ø$¨š>Ø!ð+Ù*¨6°6¸6À9ÓM˜ð   1š9Ø!Ø $™˜Ø" dÑ*˜
ð7ð8"à ’>¤g¨d°FÔ&;Ø—I‘I˜fÕ%ð'<�>øôs#¤B×$;Ñ$;Ð<ò
-Ü'¨Ó,Ð,ûð
-ûôò
-Ü'¨Ó,Ð,ûð
-ûô@+ò!Ù&ñ,Ô-Ù Ü"ò,Ø%¨š?ô
#4°CÓ"8Ð8Ø! tÐ+ûð,ûð ’>¤g¨d°FÔ&;Ø—I‘I˜fÕ%ð'<�>úsj¥E0FÄ-G/Ä. F8Ä9G/Å0FÆ FÆFÆ F5Æ% F0Æ0F5Æ8G,Ç
G/Ç G,ÇG'Ç'G,Ç,G/Ç/&Hcó—td«‚)Nz,os.sendfile() not available on this platform)r0©r@r›rœr�s rr¨zsocket._sendfile_use_sendfiležs€Ü#Ø>ó@ð
@rcóL—|j|||«|j«dk(r td«‚|r|j|«|r t |d«nd}d}|j
}|j } |rt ||z
|«}|dkrn:t||««}|sn& ||«} || z
}| t|«kr|| d}nnŒ$ŒQ||dkDr"t|d«r|j||z«SSS#t$rYŒZwxYw#|dkDr"t|d«r|j||z«wwwxYw)Nrr‰i r‹) rŒrcr&r‹r’ÚreadÚsendÚ
memoryviewÚlenršr“)
r@r›rœr�r¡r¤Ú file_readÚ sock_sendÚdatar§s
rÚ_sendfile_use_sendzsocket._sendfile_use_send¢sM€Ø ×#Ñ# D¨&°%Ô8Ø �?‰?Ó  Ò !ÜÐEÓFÐ FÙ Ø �I‰I�fÔ Ù(-”C˜˜tÔ$°4ˆ ؈
à—I‘Iˆ Ø—I‘Iˆ ð /ØÙÜ # E¨JÑ$6¸ Ó B�IØ  A’~ØÜ!¡)¨IÓ"6Ó7�ÙØØð "Ù(¨›˜ð# dÑ*˜
ؤ# d£)Ò+Ø#'¨¨ ;™Dà!ððð&à˜AŠ~¤'¨$°Ô"7Ø— ‘ ˜& :Ñ-Õ.ð#8ˆ~øô+ò!Ù ð!ûð˜AŠ~¤'¨$°Ô"7Ø— ‘ ˜& :Ñ-Õ.ð#8ˆ~ús0Á0-C:ÂC+Â&C:Ã+ C7Ã4C:Ã6C7Ã7C:Ã:)D#có —dt|dd«vr td«‚|jtzs td«‚|�Jt |t
«st
dj|««‚|dkrtdj|««‚yy)Nrpr}z$file should be opened in binary modez+only SOCK_STREAM type sockets are supportedz+count must be a positive integer (got {!r})r)rPr&rBr=Ú
isinstanceÚintr]Úformatrªs rrŒzsocket._check_sendfile_paramsÆs’€Ø ”g˜d F¨CÓ0Ñ 0ÜÐCÓDÐ DØ�y‰yœ;Ò&ÜÐJÓKÐ KØ Ð Ü˜e¤SÔ)ÜØA×HÑHÈÓOóQðQà˜ŠzÜ ØA×HÑHÈÓOóQðQðð rcón— |j|||«S#t$r|j|||«cYSwxYw)a_sendfile(file[, offset[, count]]) -> sent
Send a file until EOF is reached by using high-performance
os.sendfile() and return the total number of bytes which
were sent.
*file* must be a regular file object opened in binary mode.
If os.sendfile() is not available (e.g. Windows) or file is
not a regular file socket.send() will be used instead.
*offset* tells from where to start reading the file.
If specified, *count* is the total number of bytes to transmit
as opposed to sending the file until EOF is reached.
File position is updated on return or also in case of error in
which case file.tell() can be used to figure out the number of
bytes which were sent.
The socket must be of SOCK_STREAM type.
Non-blocking sockets are not supported.
)r¨r0r³rªs rr‡zsocket.sendfileÓsC€ð$ @Ø×.Ñ.¨t°V¸UÓCÐ CøÜ ò @Ø×*Ñ*¨4°¸Ó?Ò ?ð @ús ‚•4³4có†—|jdkDr|xjdzc_|jr|j«yy)Nrrs)r8r9rJrGs rÚ_decref_socketioszsocket._decref_socketiosês1€Ø �=‰=˜1Ò Ø �MŠM˜QÑ �MØ �<Š<Ø �J‰J�Lð rcó&—|j|«yrF)rJ)r@Ú_sss rÚ _real_closezsocket._real_closeðs
€à � ‰ �$�rcóR—d|_|jdkr|j«yy)NTr)r9r8r½rGs rrJz socket.closeôs&€àˆŒ Ø �=‰=˜AÒ Ø × Ñ Õ ð rcó.•—d|_t‰|� «S)a detach() -> file descriptor
Close the socket object without closing the underlying file descriptor.
The object cannot be used after this call, but the file descriptor
can be reused for other purposes. The file descriptor is returned.
T)r9ÚsuperÚdetach©r@rQs €rrÁz
socket.detachúsø€ðˆŒ ܉w‰~ÓÐrcó4•—tt‰|�t«S)z@Read-only access to the address family for this socket.
)r)rÀrArrÂs €rrAz
socket.familysø€ô"¤%¡'¡.´-Ó@Ð@rcó4•—tt‰|�t«S)z-Read-only access to the socket type.
)r)rÀrBrrÂs €rrBz socket.type
sø€ô"¤%¡'¡,´
Ó;Ð;rÚntcóH—tj|j««SrF)rŽÚget_handle_inheritablerDrGs rÚget_inheritablezsocket.get_inheritables€Ü×,Ñ,¨T¯[©[«]Ó;Ð ;rcóL—tj|j«|«yrF)rŽÚset_handle_inheritablerD©r@Ú inheritables rÚset_inheritablezsocket.set_inheritables€Ü × %Ñ % d§k¡k£m°[Õ ArcóH—tj|j««SrF)rŽrÈrDrGs rrÈzsocket.get_inheritables€Ü×%Ñ% d§k¡k£mÓ4Ð 4rcóL—tj|j«|«yrF)rŽrÍrDrËs rrÍzsocket.set_inheritables€Ü × Ñ ˜tŸ{™{›}¨kÕ :rz&Get the inheritable flag of the socketz&Set the inheritable flag of the socket)r;r;r;N)rqN©rN) r1r2r3Ú__doc__Ú __slots__r?rHrLr[r^rarkr†r“rŽr¨r³rŒr‡rºr>r6r½rJrÁÚpropertyrArBÚnamerÈrÍÚ
__classcell__©rQs@rr6r6×sçø„áDâ6€Ióò òòò<Mò òð )Ø t°Tô)ñVˆr�:Ôô? &óB @ó"/òH Qó@ò.ð &Ÿn™nóòô  ðóAóðAð
ó<óð<ð

‡w�w�$‚ò <ó Bò 5ò ;àF€OÔØF€O×Ðrr6có4—t|«}t||||«S)z¾ fromfd(fd, family, type[, proto]) -> socket object
Create a socket object from a duplicate of the given file
descriptor. The remaining arguments are the same as for socket().
)rar6)rdrArBrCÚnfds rr r s€ô ˆb‹'€CÜ �&˜$  sÓ +Ð+rÚsendmsgc óŽ—|j|tjtjt jd|«fg«S)zŒ send_fds(sock, buffers, fds[, flags[, address]]) -> integer
Send the list of file descriptors fds over an AF_UNIX socket.
Úi)rÙr>Ú
SOL_SOCKETÚ
SCM_RIGHTSÚarray)reÚbuffersÚfdsÚflagsÚaddresss rÚsend_fdsrã)s?€ð
�|‰|˜G¤w×'9Ñ'9Ü × Ñ ¤§ ¡ ¨C°Ó 5ð'7ð&8ó9ð 9rrãÚrecvmsgc óŠ—tjd«}|j|tj||jz««\}}}}|D]d\}} }
|tj
k(sŒ| tj k(sŒ/|j|
dt|
«t|
«|jzz
«Œf|t|«||fS)zë recv_fds(sock, bufsize, maxfds[, flags]) -> (data, list of file
descriptors, msg_flags, address)
Receive up to maxfds file descriptors returning the message
data and a list containing the descriptors.
rÛN)
rÞrär>ÚCMSG_LENÚitemsizerÜrÝÚ frombytesr¯Úlist) reÚbufsizeÚmaxfdsráràÚmsgÚancdatarjÚ
cmsg_levelÚ cmsg_typeÚ cmsg_datas rÚrecv_fdsrñ5s¾€ô�k‰k˜#ÓˆØ$(§L¡L°Ü × Ñ ˜V c§l¡lÑ2Ó 3ó%5Ñ!ˆˆW�e˜Tà07ò KÑ ,ˆJ˜  9Øœg×0Ñ0Ó0°YÄ'×BTÑBTÓ5TØ—
‘
˜ið)IܘI›¬#¨i«.¸3¿<¹<Ñ*GÑHðJõKð Kð
”D˜“I˜u dÐ*Ð*rrñÚsharecó—tddd|«S)z‡ fromshare(info) -> socket object
Create a socket object from the bytes object returned by
socket.share(pid).
r)r6)Úinfos rÚ fromsharerõIs€ô �a˜˜A˜tÓ$Ð$rrõÚ
socketpaircóê—|€ t}tj|||«\}}t ||||j
««}t ||||j
««}||fS#t$r t}YŒgwxYw)aasocketpair([family[, type[, proto]]]) -> (socket object, socket object)
Create a pair of socket objects from the sockets returned by the platform
socketpair() function.
The arguments are the same as for socket() except the default family is
AF_UNIX if defined on the platform; otherwise, the default is AF_INET.
)ÚAF_UNIXÚ NameErrorr<r>rör6rÁ)rArBrCÚarps rröröTsx€ð ˆ>ð
!Ü �ô×!Ñ! &¨$°Ó6‰ˆˆ1Ü �6˜4 ¨¯©«
Ó 3ˆÜ �6˜4 ¨¯©«
Ó 3ˆØ�!ˆtˆ øô ò
!Ü ’ð
!ús„A Á A2Á1A2có†—|tk(rt}n|tk(rt}n t d«‚|t
k7r t d«‚|dk7r t d«‚t
|||«} |j|df«|j«|j«dd\}}t
|||«} |jd« |j||f«|jd«|j«\}} |j«||fS#ttf$rYŒJwxYw#|j«‚xYw#|j«wxYw)Nz?Only AF_INET and AF_INET6 socket address families are supportedz)Only SOCK_STREAM socket type is supportedrzOnly protocol zero is supportedéFT)r<Ú
_LOCALHOSTÚAF_INET6Ú
_LOCALHOST_V6r&r=r6ÚbindÚlistenrRriÚconnectršÚInterruptedErrorrkrJ)
rArBrCÚhostÚlsockrjÚportÚcsockÚssockÚ_s
rröröis<€Ø ”WÒ Ü‰DØ
”xÒ
Ü ‰Däð-ó.ð
.à ”;Ò ÜÐHÓIÐ IØ �AŠ:ÜÐ>Ó?Ð ?ô�v˜t UÓ+ˆð Ø �J‰J˜˜a�yÔ !Ø �L‰LŒNà×*Ñ*Ó,¨R¨aÐ0‰JˆD�$ܘ6 4¨Ó/ˆEð
Ø×!Ñ! %Ô(ðØ—M‘M 4¨ ,Ô/ð×!Ñ! $Ô'Ø Ÿ<™<›>‘�‘qð
�K‰KŒMØ�uˆ~Ðøô(Ô)9Ð:òÙðûð
Ø— ‘ ”
Øûà �K‰K�MúsCÁAD.Â%DÂ7DÃ
$DÄDÄDÄDÄDÄD+Ä+D.Ä.Ea8socketpair([family[, type[, proto]]]) -> (socket object, socket object)
Create a pair of socket objects from the sockets returned by the platform
socketpair() function.
The arguments are the same as for socket() except the default family is AF_UNIX
if defined on the platform; otherwise, the default is AF_INET.
cól‡—eZdZdZd„Zd„Zd„Zd„Zd„Zˆfd„Z d„Z
e d „«Z e d
„«Z
d „ZˆxZS) ruz¬Raw I/O implementation for stream sockets.
This class supports the makefile() method on sockets. It provides
the raw I/O interface on top of a socket object.
cóÆ—|dvrtd|z«‚tjj|«||_d|vr|dz
}||_d|v|_d|v|_d|_y)N)rqrrÚrwÚrbÚwbÚrwbzinvalid mode: %rrprqrrF) r&rvÚ RawIOBaser?Ú_sockÚ_modeÚ_readingÚ_writingÚ_timeout_occurred)r@rer}s rr?zSocketIO.__init__©sj€Ø Ð:Ñ :ÜÐ/°$Ñ6Ó7Ð 7Ü
� ‰ ×јdÔ#؈Œ
Ø �d‰?Ø �C‰KˆD؈Œ
ؘt˜ ˆŒ
ؘt˜ ˆŒ
Ø!&ˆÕrcó—|j«|j«|jr td«‚ |jj |«S#t $r d|_‚t$r}|jtvrYd}~y‚d}~wwxYw)a3Read up to len(b) bytes into the writable buffer *b* and return
the number of bytes read. If the socket is non-blocking and no bytes
are available, None is returned.
If *b* is non-empty, a 0 return value indicates that the connection
was shutdown at the other end.
z!cannot read from timed out objectTN)
Ú _checkClosedÚ_checkReadablerr‘rÚ recv_intor¢rTÚerrnoÚ_blocking_errnos©r@rpÚes rÚreadintozSocketIO.readintoµs„€ð
×ÑÔØ ×ÑÔØ × !Ò !ÜÐ=Ó>Ð >Øð
Ø—z‘z×+Ñ+¨AÓ.Ð.øÜò
Ø)-�Ô&ØÜò
Ø—7‘7Ô.Ñ.ÜØûð
úsºAÁB Á.BÂBÂB cóÌ—|j«|j« |jj|«S#t$r}|j
t vrYd}~y‚d}~wwxYw)aWrite the given bytes or bytearray object *b* to the socket
and return the number of bytes written. This can be less than
len(b) if not all data could be written. If the socket is
non-blocking and no bytes could be written None is returned.
N)rÚ_checkWritablerr­rTrrrs rÚwritezSocketIO.writeÌsW€ð
×ÑÔØ ×ÑÔð Ø—:‘:—?‘? 1Ó%Ð %øÜò à�w‰wÔ*Ñ*ÜØ ûð  ús¢=½ A#ÁAÁAÁA#cóH—|jr td«‚|jS)z2True if the SocketIO is open for reading.
úI/O operation on closed socket.)rWr&rrGs rÚreadablezSocketIO.readableÜó!€ð �;Š;ÜÐ>Ó?Ð ?Ø�}‰}ÐrcóH—|jr td«‚|jS)z2True if the SocketIO is open for writing.
r#)rWr&rrGs rÚwritablezSocketIO.writableãr%rcóN•—|jr td«‚t‰|�
«S)z2True if the SocketIO is open for seeking.
r#)rWr&rÀÚseekablerÂs €rr)zSocketIO.seekableês&ø€ð �;Š;ÜÐ>Ó?Ð ?܉wÑÓ!Ð!rcóV—|j«|jj«S)z=Return the file descriptor of the underlying socket.
)rrrDrGs rrDzSocketIO.filenoñs#€ð
×ÑÔØ�z‰z× Ñ Ó"Ð"rcó<—|js|j«Sy)Nr;)rWrDrGs rrÔz
SocketIO.name÷s€à�{Š{Ø—;‘;“=Ð àrcó—|jSrF)rrGs rr}z
SocketIO.modeþs €à�z‰zÐrcóž—|jrytjj|«|jj «d|_y)z‡Close the SocketIO object. This doesn't close the underlying
socket, except if all references to it have disappeared.
N)rWrvrrJrrºrGs rrJzSocketIO.closes7€ð �;Š;Ø Ü
� ‰ ×ј4Ô Ø �
‰