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/serial/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/serial/loopback_connection.pyc
ó
*­„Jc@sXddlTddlZddlZddlZiejd6ejd6ejd6ejd6Zde	fd„ƒYZ
yddlZWn*ek
r®d	e
e
fd
„ƒYZnXd	e
ejfd„ƒYZedkrTddlZed
ƒZejjdeƒejjdƒejdƒejƒejjdejdƒƒejƒndS(iÿÿÿÿ(t*NtdebugtinfotwarningterrortLoopbackSerialcBsÅeZdZd&Zd„Zd„Zd„Zd„Zd„Zd„Z	dd„Z
d„Zd„Zd„Z
dd„Zed„Zed „Zed!„Zd"„Zd#„Zd$„Zd%„ZRS('s-Serial port implementation for plain sockets.i2iKini†i–iÈi,iXi°ii`	iÀi€%iKi–iáiÂcCsµd|_tjƒ|_tƒ|_t|_t|_	|j
dkrTtdƒ‚n|j|j
ƒ|jƒt|_|js|jtƒ|jtƒn|jƒ|jƒdS(sjOpen port with current settings. This may throw a SerialException
           if the port cannot be opened.s.Port must be configured before it can be used.N(tNonetloggert	threadingtLocktbuffer_lockt	bytearraytloop_buffertFalsetctstdsrt_porttSerialExceptiontfromURLtportt_reconfigurePorttTruet_isOpent_rtsctstsetRTStsetDTRt
flushInputtflushOutput(tself((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pytopen&s			
		

cCsot|jttfƒs9d|jko3dknrOtd|jƒ‚n|jrk|jjdƒndS(sgSet communication parameters on opened port. for the loop://
        protocol all settings are ignored!iii sinvalid baudrate: %rs_reconfigurePort()NI(t
isinstancet	_baudratetinttlongt
ValueErrorRR(R((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pyR?s9	cCs&|jr"t|_tjdƒndS(s
Close portg333333Ó?N(RR
ttimetsleep(R((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pytcloseHs		cCstdƒ‚dS(Ns2there is no sensible way to turn numbers into URLs(R(RR((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pytmakeDeviceNameOscCs|jƒjdƒr"|d}ny¶x¯|jdƒD]ž}d|krb|jddƒ\}}nd}|sqq5|dkrÀtjƒtjdƒ|_|jjt	|ƒ|jj
dƒq5td	|fƒ‚q5WWn#tk
rý}td
|ƒ‚nXdS(s(extract host and port from an URL stringsloop://it/t=itloggings
pySerial.loopsenabled loggingsunknown option: %rsAexpected a string in the form "[loop://][option[/option...]]": %sN(
tlowert
startswithtsplitRR)tbasicConfigt	getLoggerRtsetLevelt
LOGGER_LEVELSRR"R(Rturltoptiontvaluete((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pyRRs"

cCsK|jst‚n|jr>|jjdt|jƒfƒnt|jƒS(s>Return the number of characters currently in the input buffer.sinWaiting() -> %d(RtportNotOpenErrorRRtlenR(R((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pyt	inWaitingjs
			#icCsÎ|jst‚n|jdk	r7tjƒ|j}nd}tƒ}x{t|ƒ|krÃ|jjƒz!t	|j
| ƒ}|j
|4Wd|jjƒX||7}|rItjƒ|krIPqIqIWt|ƒS(sÀRead size bytes from the serial port. If a timeout is set it may
        return less characters as requested. With no timeout it will block
        until the requested number of bytes is read.N(
RR5t_timeoutRR#RR6R
tacquiretto_bytesRtreleasetbytes(Rtsizettimeouttdatatblock((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pytreadss 			

cCs¡|jst‚ndt|ƒ|j}|jdk	r`||jkr`tj|jƒt‚n|j	j
ƒz|jt|ƒ7_Wd|j	j
ƒXt|ƒS(sœOutput the given string over the serial port. Can block if the
        connection is blocked. May raise SerialException if the connection is
        closed.g$@N(RR5R6Rt
_writeTimeoutRR#R$twriteTimeoutErrorR
R9RR<R;(RR?ttime_used_to_send((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pytwrite‹s			
cCs[|jst‚n|jr.|jjdƒn|jjƒz|j2Wd|jjƒXdS(s9Clear input buffer, discarding all that is in the buffer.sflushInput()N(RR5RRR
R9RR;(R((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pyRžs			
cCs2|jst‚n|jr.|jjdƒndS(sbClear output buffer, aborting the current output and
        discarding all that is in the buffer.s
flushOutput()N(RR5RR(R((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pyR©s			gÐ?cCs|jst‚ndS(sPSend break condition. Timed, returns to idle state after given
        duration.N(RR5(Rtduration((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pyt	sendBreak°s	cCs9|jst‚n|jr5|jjd|fƒndS(sJSet break: Controls TXD. When active, to transmitting is
        possible.ssetBreak(%r)N(RR5RR(Rtlevel((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pytsetBreakµs			cCsB|jst‚n|jr5|jjd|fƒn||_dS(s)Set terminal status line: Request To SendssetRTS(%r) -> state of CTSN(RR5RRR(RRH((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pyR¼s
			cCsB|jst‚n|jr5|jjd|fƒn||_dS(s-Set terminal status line: Data Terminal ReadyssetDTR(%r) -> state of DSRN(RR5RRR(RRH((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pyRÃs
			cCs?|jst‚n|jr8|jjd|jfƒn|jS(s(Read terminal status line: Clear To SendsgetCTS() -> state of RTS (%r)(RR5RRR(R((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pytgetCTSÊs
			cCs?|jst‚n|jr8|jjd|jfƒn|jS(s)Read terminal status line: Data Set ReadysgetDSR() -> state of DTR (%r)(RR5RRR(R((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pytgetDSRÑs
			cCs2|jst‚n|jr.|jjdƒntS(s)Read terminal status line: Ring Indicatorsreturning dummy for getRI()(RR5RRR
(R((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pytgetRIØs
			cCs2|jst‚n|jr.|jjdƒntS(s)Read terminal status line: Carrier Detectsreturning dummy for getCD()(RR5RRR(R((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pytgetCDßs
			(i2iKini†i–iÈi,iXi°ii`	iÀi€%iKi–iáiÂ(t__name__t
__module__t__doc__t	BAUDRATESRRR%R&RR7RARERRRGRRIRRRJRKRLRM(((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pyR s*														tSerialcBseZRS((RNRO(((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pyRRñscBseZRS((RNRO(((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pyRRõst__main__ssocket://localhost:7000s%s
s	write...
shello
s	read: %s
i(t
serialutilRR#R)tDEBUGtINFOtWARNINGtERRORR0t
SerialBaseRtiotImportErrortFileLikeRRt	RawIOBaseRNtsystststdoutREtflushRAR%(((s>/usr/lib/python2.7/dist-packages/serial/loopback_connection.pyt<module>s.




Í




Youez - 2016 - github.com/yon3zu
LinuXploit