config root man

Current Path : /usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/socket.pyc

³ò
h”Rc@sŒdZddkZddkTeZy ddkZddkTeZWnej
onXddkZddkZyddk	l
Z
Wn#ej
oddk
l
Z
nXyddklZWnej
o
dZnXdgZ
e
ieieƒƒeoe
ieieƒƒneZeoeZddd„Zneiiƒid	ƒo­hZd
ed<ded
<ded<ded<ded<ded<ded<ded<ded<ded<ded<d ed!<d"ed#<d$ed%<d&ed'<e
id(ƒnd)d*„ZdGZeid9joedHZndIZdAefdB„ƒYZdCefdD„ƒYZeZZ dEefdF„ƒYZ!dS(Js”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 [*]
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() -- mape 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)
ssl() -- secure socket layer support (only available if configured)
socket.getdefaulttimeout() -- get the default timeout value
socket.setdefaulttimeout() -- set the default timeout value

 [*] 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

Integer constants:

AF_INET, AF_UNIX -- socket domains (first argument to socket() call)
SOCK_STREAM, SOCK_DGRAM, SOCK_RAW -- socket types (second argument)

Many other constants may be defined; these may be used in calls to
the setsockopt() and getsockopt() methods.
iÿÿÿÿN(t*(tStringIO(tEBADFi	tgetfqdncCs-t|dƒo
|i}nt|||ƒS(Nt_sock(thasattrRt_realssl(tsocktkeyfiletcertfile((s"/usr/local/lib/python2.5/socket.pytsslLs
twinsThe operation was interrupted.i'sA bad file handle was passed.i'sPermission denied.i's!A fault occurred on the network??i's#An invalid operation was attempted.i&'s The socket operation would blocki3's,A blocking operation is already in progress.i4'sThe network address is in use.i@'sThe connection has been reset.iF'sThe network has been shut down.iJ'sThe operation timed out.iL'sConnection refused.iM'sThe name is too long.iO'sThe host is down.iP'sThe host is unreachable.iQ'terrorTabtcCsš|iƒ}|p
|djo
tƒ}nyt|ƒ\}}}Wntj
on;X|id|ƒx&|D]}d|joPqtqtW|}|S(sGet fully qualified domain name from name.

    An empty argument is interpreted as meaning the local host.

    First the hostname returned by gethostbyaddr() is checked, then
    possibly existing aliases. In case no FQDN is available, hostname
    from gethostname() is returned.
    s0.0.0.0it.(tstriptgethostnamet
gethostbyaddrterrortinsert(tnamethostnametaliasestipaddrs((s"/usr/local/lib/python2.5/socket.pyRgs	

	tbindtconnectt
connect_extfilenotlistentgetpeernametgetsocknamet
getsockoptt
setsockopttsendalltsetblockingt
settimeoutt
gettimeouttshutdowntriscost
sleeptaskwtrecvtrecvfromt	recv_intot
recvfrom_intotsendtsendtot
_closedsocketcBs7eZgZd„ZeZZZZZZ	eZ
RS(cGsttdƒ‚dS(NsBad file descriptor(RR(targs((s"/usr/local/lib/python2.5/socket.pyt_dummy‘s(t__name__t
__module__t	__slots__R0R,R(R*R-R)R+t__getattr__(((s"/usr/local/lib/python2.5/socket.pyR.s	t
_socketobjectcBsøeZeiZddgeeƒZeeddd„Z
d„Zeiie_d„Zeiie_d„Z
ddd	„Zed
„ddƒZed
„ddƒZed„ddƒZdZx&eD]ZeeeeefdUqÎW[[RS(Rt__weakref__icCsZ|djot|||ƒ}n||_x'tD]}t||t||ƒƒq3WdS(N(tNonet_realsocketRt_delegate_methodstsetattrtgetattr(tselftfamilyttypetprotoRtmethod((s"/usr/local/lib/python2.5/socket.pyt__init__s
	cCs=tƒ|_|ii}xtD]}t|||ƒqWdS(N(R.RR0R9R:(R<tdummyR@((s"/usr/local/lib/python2.5/socket.pytclose¤s
cCs(|iiƒ\}}td|ƒ|fS(NR(RtacceptR5(R<Rtaddr((s"/usr/local/lib/python2.5/socket.pyRD«scCstd|iƒS(sadup() -> socket object

        Return a new socket object connected to the same system resource.R(R5R(R<((s"/usr/local/lib/python2.5/socket.pytdup°striÿÿÿÿcCst|i||ƒS(s¾makefile([mode[, bufsize]]) -> file object

        Return a regular file object corresponding to the socket.  The mode
        and bufsize arguments are as for the built-in open() function.(t_fileobjectR(R<tmodetbufsize((s"/usr/local/lib/python2.5/socket.pytmakefile¶scCs
|iiS((RR=(R<((s"/usr/local/lib/python2.5/socket.pyt<lambda>½stdocsthe socket familycCs
|iiS((RR>(R<((s"/usr/local/lib/python2.5/socket.pyRL¾ssthe socket typecCs
|iiS((RR?(R<((s"/usr/local/lib/python2.5/socket.pyRL¿ssthe socket protocolsVdef %s(self, *args): return self._sock.%s(*args)

%s.__doc__ = _realsocket.%s.__doc__
N(R1R2R8t__doc__tlistR9R3tAF_INETtSOCK_STREAMR7RARCRDRFRKtpropertyR=R>R?t_st_socketmethodst_m(((s"/usr/local/lib/python2.5/socket.pyR5—s"				RHc	BsÝeZdZdZdZddddddd	d
dg	Zdd
ed„Zd„Ze	eddƒZ
d„Zd„Zd„Z
d„Zd„Zd„Zd„Zd
d„Zd
d„Zdd„Zd„Zd„ZRS(s-Faux file object attached to a socket object.i s<socket>RIRJt	softspaceRt	_rbufsizet	_wbufsizet_rbuft_wbuft_closetrbiÿÿÿÿcCs©||_||_|djo
|i}n||_t|_|djo
d|_n'|djo|i|_n
||_||_tƒ|_	g|_
||_dS(Nii(RRItdefault_bufsizeRJtFalseRVRWRXRRYRZR[(R<RRIRJRC((s"/usr/local/lib/python2.5/socket.pyRAÔs		

		


			cCs
|idjS(N(RR7(R<((s"/usr/local/lib/python2.5/socket.pyt
_getclosedísRMsTrue if the file is closedcCsHz|io|iƒnWd|io|iiƒnd|_XdS(N(RtflushR[RCR7(R<((s"/usr/local/lib/python2.5/socket.pyRCñs

cCsy|iƒWnnXdS(N(RC(R<((s"/usr/local/lib/python2.5/socket.pyt__del__úscCs=|io/di|iƒ}g|_|ii|ƒndS(NR
(RZtjoinRR!(R<tbuffer((s"/usr/local/lib/python2.5/socket.pyR`s
	cCs
|iiƒS(N(RR(R<((s"/usr/local/lib/python2.5/socket.pyRscCs€t|ƒ}|pdSn|ii|ƒ|idjp3|idjo
d|jp|iƒ|ijo|iƒndS(Niis
(tstrRZtappendRXt
_get_wbuf_lenR`(R<tdata((s"/usr/local/lib/python2.5/socket.pytwrite
scCsZ|iitdtt|ƒƒƒ|idjp|iƒ|ijo|iƒndS(Ni(	RZtextendtfilterR7tmapRdRXRfR`(R<RO((s"/usr/local/lib/python2.5/socket.pyt
writeliness"cCs.d}x!|iD]}|t|ƒ7}qW|S(Ni(RZtlen(R<tbuf_lentx((s"/usr/local/lib/python2.5/socket.pyRfs

c	CsÅt|i|iƒ}|i}|iddƒ|djoTtƒ|_x7to/|ii|ƒ}|pPn|i	|ƒqJW|i
ƒSn3|iƒ}||joF|idƒ|i|ƒ}tƒ|_|ii	|iƒƒ|Sntƒ|_xºto²||}|ii|ƒ}|pPnt
|ƒ}||jo|o|Sn||jo|i	|ƒ~Pn||jptd||f‚|i	|ƒ||7}~qýW|i
ƒSdS(Niisrecv(%d) returned %d bytes(tmaxRWR]RYtseekRtTrueRR(RhtgetvaluettelltreadRmtAssertionError(	R<tsizetrbufsizetbufRgRntrvtlefttn((s"/usr/local/lib/python2.5/socket.pyRu"sL	





!

cCsÂ|i}|iddƒ|iƒdjop|idƒ|i|ƒ}|idƒpt|ƒ|jo*tƒ|_|ii|iƒƒ|Sn~n|djo\|i	djo…|idƒ|iƒg}tƒ|_d}|ii}x7|djo)|dƒ}|pPn|i
|ƒqöWdi|ƒSn|iddƒtƒ|_xšto’|ii|i	ƒ}|pPn|idƒ}|djoD|d7}|it|d|ƒƒ|iit||ƒƒ~Pn|i|ƒq]W|iƒSnº|iddƒ|iƒ}||joF|idƒ|i|ƒ}	tƒ|_|ii|iƒƒ|	Sntƒ|_x1to)|ii|i	ƒ}|pPn||}
|idd|
ƒ}|djoT|d7}|iit||ƒƒ|o|it|d|ƒƒPq+|| Snt|ƒ}||jo|o|Sn||
jo7|it|d|
ƒƒ|iit||
ƒƒPn|i|ƒ||7}qƒW|iƒSdS(Niis
iR
(RYRqRttreadlinetendswithRmRRhRuRWR7RR(ReRbRrtfindRcRs(R<RwRytblinetbuffersRgR(tnlRnRzR{R|((s"/usr/local/lib/python2.5/socket.pyR}^s’	
#











icCsmd}g}xZtoR|iƒ}|pPn|i|ƒ|t|ƒ7}|o||joPqqW|S(Ni(RrR}ReRm(R<tsizehintttotalROtline((s"/usr/local/lib/python2.5/socket.pyt	readlines´s

cCs|S(N((R<((s"/usr/local/lib/python2.5/socket.pyt__iter__ÃscCs!|iƒ}|p
t‚n|S(N(R}t
StopIteration(R<R…((s"/usr/local/lib/python2.5/socket.pytnextÆs
(R1R2RNR]RR3R^RAR_RRtclosedRCRaR`RRhRlRfRuR}R†R‡R‰(((s"/usr/local/lib/python2.5/socket.pyRHÉs*									
		<V	(RRRsfilenoRRRRR ssendallR"R#R$R%(R'(srecvsrecvfroms	recv_intos
recvfrom_intossendssendto("RNt_socketR^t	_have_sslt_sslRrtImportErrortostsyst	cStringIORterrnoRt__all__Rit_get_exports_listtsocketR8R
RR7tplatformtlowert
startswithRReRRTR9tobjectR.R5t
SocketTypeRH(((s"/usr/local/lib/python2.5/socket.pys<module>+sr


	














0


Man Man