403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/twisted/internet/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/twisted/internet/unix.pyc
ó
0”Nc@sºdZddlZddlZddlZddlZddlmZmZmZm	Z	m
Z
ddlmZm
Z
mZeedƒs˜edƒ‚nddlmZmZmZmZmZmZmZddlmZdd	lmZmZmZmZd
ej fd„ƒYZ d„Z!d
e"fd„ƒYZ#de#ej$fd„ƒYZ$dej%fd„ƒYZ&dej'fd„ƒYZ(de#ej$fd„ƒYZ)de)fd„ƒYZ*dS(s˜
Various asynchronous TCP/IP classes.

End users shouldn't use this module directly - use the reactor APIs instead.

Maintainer: Itamar Shtull-Trauring
iÿÿÿÿN(tEINTRtEMSGSIZEtEAGAINtEWOULDBLOCKtECONNREFUSED(t
implementstimplementsOnlyt
implementedBytAF_UNIXs+UNIX sockets not supported on this platform(tbasettcptudpterrort
interfacestprotocoltaddress(tCannotListenError(tlockfiletlogtreflecttfailuretServercBs#eZd„Zd„Zd„ZRS(cCs,tjj||||df|||ƒdS(N(R
Rt__init__tNone(tselftsockRtclienttservert	sessionnotreactor((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyRscCstj|jjƒƒS(N(RtUNIXAddresstsockettgetsockname(R((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pytgetHost!scCstj|jƒS(N(RRthostname(R((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pytgetPeer$s(t__name__t
__module__RR!R#(((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyRs		cCs|d dkS(s›
    Determine whether the given unix socket path is in a filesystem namespace.

    While most PF_UNIX sockets are entries in the filesystem, Linux 2.2 and
    above support PF_UNIX sockets in an "abstract namespace" that does not
    correspond to any path. This function returns C{True} if the given socket
    path is stored in the filesystem and C{False} if the path is in this
    abstract namespace.
    it((tpath((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyt_inFilesystemNamespace)s
t	_UNIXPortcBseZd„ZRS(cCsFtjdkst|jƒr0|jjƒ}n	|j}tj|ƒS(sMReturns a UNIXAddress.

        This indicates the server's address.
        ii(ii(tsystversion_infoR(tportRR RR(RR'((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyR!7s	(R$R%R!(((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyR)6stPortcBsheZejZejZeZd	Z
ddd	dd„Zd„Zd„Z
d„Zd„Zd„ZRS(
i2i¶icCs5tjj||||d|ƒ||_||_dS(NR(R
R-RtmodetwantPID(RtfileNametfactorytbacklogR.RR/((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyRMs	cCsDtj|jjƒ}t|dƒr5d||jfSd|fSdS(NRs
<%s on %r>s<%s (not listening)>(RtqualR1t	__class__thasattrR,(RtfactoryName((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyt__repr__RscCs
tj|ƒS(N(RR(Rtname((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyt
_buildAddrYscCs‹tjd|j|jƒ|jfƒ|jrÀtj|jdƒ|_|jj	ƒsot
d|jdf‚qÀ|jjsÀy5t
jtj
|jƒjƒr¯tj|jƒnWq½q½XqÀn|jjƒy |jƒ}|j|jƒWn+tjk
r}t
d|j|f‚nmXt|jƒrCtj|j|jƒn|j|jƒt|_||_|jj|_d|_|j ƒdS(sÐ
        Create and bind my socket, and begin listening on it.

        This is called on unserialization, and must be called after creating a
        server to begin listening on the specified port.
        s%s starting on %rs.locksCannot acquire lockidN(!Rtmsgt
_getLogPrefixR1R,R/RtFilesystemLocktlockFiletlockRRtcleantstattS_ISSOCKtostst_modetremovetdoStarttcreateInternetSockettbindRRR(tchmodR.tlistenR2tTruet	connectedtfilenot
numberAcceptststartReading(Rtskttle((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pytstartListening\s4		

			cCs!tjdt|jƒfƒdS(s0
        Log message for closing socket
        s(UNIX Port %s Closed)N(RR:treprR,(R((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyt_logConnectionLostMsgˆscCsXt|jƒr"tj|jƒn|jdk	rA|jjƒntjj	||ƒdS(N(
R(R,RBtunlinkR=RtunlockR
R-tconnectionLost(Rtreason((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyRVs
N(R$R%RRt
addressFamilytSOCK_STREAMt
socketTypeRt	transportRR=RR7R9RQRSRV(((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyR-Fs					,	tClientcBsAeZdZejZejZddd„Z	d„Z
d„ZRS(sA client for Unix sockets.icCsx||_||_|_|rUtj|dƒrU|jddtj|ƒ|ƒn|j|j	|j
ƒd|ƒdS(Ns.lock(t	connectortrealAddresstaddrRtisLockedt_finishInitRRtBadFileErrort	doConnectRF(RtfilenameR]RtcheckPID((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyRs	"cCstj|jƒS(N(RRR_(R((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyR#¥scCs
tjdƒS(N(RRR(R((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyR!¨sN(R$R%t__doc__RRRXRYRZRRR#R!(((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyR\˜s			t	ConnectorcBs#eZd„Zd„Zd„ZRS(cCs/tjj||||ƒ||_||_dS(N(R	t
BaseConnectorRRRe(RRR1ttimeoutRRe((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyR­s	cCst|j||j|jƒS(N(R\RRRe(R((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyt_makeTransport²scCstj|jƒS(N(RR(R((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pytgetDestinationµs(R$R%RRjRk(((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyRg¬s		tDatagramPortcBsfeZdZeejƒejZddd	d„Z
d„Zd„Zd„Z
d	d„Zd„ZRS(
s*Datagram UNIX port, listening for packets.i i¶cCs/tjj|||d|d|ƒ||_dS(s.Initialize with address to listen on.
        t
maxPacketSizeRN(RR-RR.(RR_tprotoRmR.R((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyRÀs"cCsDtj|jjƒ}t|dƒr5d||jfSd|fSdS(NRs
<%s on %r>s<%s (not listening)>(RR3RR4R5R,(RtprotocolName((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyR7ÇscCsÙtjd|jjt|jƒfƒy,|jƒ}|jrQ|j|jƒnWn.tj	k
r‚}t	j
d|j|f‚nX|jr´t|jƒr´t
j|j|jƒnd|_||_|jj|_dS(Ns%s starting on %si(RR:RR4RRR,RFRGRRRRR(RBRHR.RKRL(RRORP((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyt_bindSocketÏs&			cCsŠy|jj||ƒSWnltjk
r…}|jd}|tkrU|j||ƒS|tkrptjd‚q†|tkrq†‚nXdS(sWrite a datagram.ismessage too longN(	RtsendtoRtargsRtwriteRtMessageLengthErrorR(RtdatagramRtsetno((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyRsÞs
cCsštjdt|jƒƒtjj||ƒt|dƒrL|jj	ƒnd|_
|jjƒ|`|`
t|dƒr–|jjdƒ|`ndS(sCleans up my socket.
        s(Port %s Closed)RitdN(RR:RRR,R	tBasePortRVR5RtdoStopRKRtcloseRLRxtcallbackR(RRW((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyRVðs	
cCs tj|jjƒd|_dS(Ns (UDP)(RR3RR4tlogstr(R((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyt	setLogStrsN(R$R%RfRR
tIUNIXDatagramTransportRRRXRRR7RpRsRVR~(((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyRl¹s
				tConnectedDatagramPortcBsieZdZeejeejƒŒddd	d	d„Z
d„Zd„Zd„Z
d„Zd„ZRS(
s+
    A connected datagram UNIX socket.
    i i¶cCsAt|tjƒst‚tj||||||ƒ||_dS(N(t
isinstanceRtConnectedDatagramProtocoltAssertionErrorRlRt
remoteaddr(RR_RnRmR.tbindAddressR((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyRscCsLy+|jƒ|jj|jƒ|jƒWn|jtjƒƒnXdS(N(RpRtconnectR„t_connectToProtocoltconnectionFailedRtFailure(R((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyRQs
cCs$|jƒ|jj|ƒ|`dS(s£
        Called when a connection fails. Stop listening on the socket.

        @type reason: L{Failure}
        @param reason: Why the connection failed.
        N(t
stopListeningRRˆ(RRW((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyRˆs
cCsÍd}xÀ||jkrÈy?|jj|jƒ\}}|t|ƒ7}|jj|ƒWq	tjk
r´}|jd}|t	t
tfkr’dS|tkr®|jj
ƒqÅ‚q	tjƒq	Xq	WdS(s=
        Called when my socket is ready for reading.
        iN(t
maxThroughputRtrecvfromRmtlenRtdatagramReceivedRRrRRRRtconnectionRefusedRtdeferr(RtreadtdataR_RvRw((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pytdoRead+s
cCs y|jj|ƒSWn…tjk
r›}|jd}|tkrO|j|ƒS|tkrjtjd‚qœ|tkr†|j	j
ƒqœ|tkr•qœ‚nXdS(s#
        Write a datagram.
        ismessage too longN(RtsendRRrRRsRRtRRRR(RR’RvRw((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyRsAs

cCstj|jƒS(N(RRR„(R((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyR#XsN(R$R%RfRR
tIUNIXDatagramConnectedTransportRR	RyRRRQRˆR“RsR#(((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyR€s						(+RfRBR*R@RterrnoRRRRRtzope.interfaceRRRR5tImportErrorttwisted.internetR	R
RRR
RRttwisted.internet.errorRttwisted.pythonRRRRRR(tobjectR)R-t
BaseClientR\RhRgRlR€(((s9/usr/lib/python2.7/dist-packages/twisted/internet/unix.pyt<module>s 0(4"	
R
M

Youez - 2016 - github.com/yon3zu
LinuXploit