class StdioClient(basic.LineReceiver): (source)
Constructor: StdioClient(client, f)
Undocumented
Method | __init__ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Run rest using the user's shell (or /bin/sh if they do not have one). |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Do an upload request for a single local file or a globing expression. |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | cmd_ |
Undocumented |
Method | connection |
Called when a connection is made. |
Method | line |
Override this for when each line is received. |
Class Variable | delimiter |
Undocumented |
Class Variable | ps |
Undocumented |
Instance Variable | client |
Undocumented |
Instance Variable | current |
Undocumented |
Instance Variable | file |
Undocumented |
Instance Variable | ignore |
Undocumented |
Instance Variable | use |
Undocumented |
Method | _abbrev |
Undocumented |
Method | _abbrev |
Undocumented |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |
Method | _cb |
Perform an upload for the next file in the list of local files. |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |
Method | _cb |
Undocumented |
Method | _dispatch |
Undocumented |
Method | _eb |
Undocumented |
Method | _eb |
Undocumented |
Method | _eb |
Undocumented |
Method | _get |
Parse line received as command line input and return first filename together with the remaining line. |
Method | _get |
Undocumented |
Method | _new |
Undocumented |
Method | _print |
Undocumented |
Method | _print |
Update a console progress bar on this StdioClient 's transport, based on the difference between the start time of the operation and the current time according to the reactor, and appropriate to the size of the console window. |
Method | _put |
Perform an upload for a list of local files. |
Method | _put |
Do an upload request. |
Method | _put |
Perform an upload for a single file. |
Method | _remote |
Undocumented |
Method | _write |
Undocumented |
Inherited from LineReceiver
:
Method | clear |
Clear buffered data. |
Method | data |
Protocol.dataReceived. Translates bytes into lines, and calls lineReceived (or rawDataReceived, depending on mode.) |
Method | line |
Called when the maximum line length has been reached. Override if it needs to be dealt with in some special way. |
Method | raw |
Override this for when raw data is received. |
Method | send |
Sends a line to the other end of the connection. |
Method | set |
Sets the line-mode of this receiver. |
Method | set |
Sets the raw mode of this receiver. Further data received will be sent to rawDataReceived rather than lineReceived. |
Constant | MAX |
The maximum length of a line to allow (If a sent line is longer than this, the connection is dropped). Default is 16384. |
Instance Variable | line |
Undocumented |
Instance Variable | _buffer |
Undocumented |
Instance Variable | _busy |
Undocumented |
Inherited from Protocol
(via LineReceiver
):
Method | connection |
Called when the connection is shut down. |
Method | log |
Return a prefix matching the class name, to identify log messages related to this protocol instance. |
Class Variable | factory |
Undocumented |
Inherited from BaseProtocol
(via LineReceiver
, Protocol
):
Method | make |
Make a connection to a transport and a server. |
Instance Variable | connected |
Undocumented |
Instance Variable | transport |
Undocumented |
Inherited from _PauseableMixin
(via LineReceiver
, Protocol
, BaseProtocol
):
Method | pause |
Undocumented |
Method | resume |
Undocumented |
Method | stop |
Undocumented |
Instance Variable | paused |
Undocumented |
Do an upload request for a single local file or a globing expression.
Parameters | |
rest:str | Requested command line for the PUT command. |
Returns | |
defer.Deferred | A deferred which fires with None when transfer is done. |
Called when a connection is made.
This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.
Override this for when each line is received.
Parameters | |
line:bytes | The line which was received with the delimiter removed. |
Perform an upload for the next file in the list of local files.
Parameters | |
previousstr | Result form previous file form the list. |
files:list of str | List of local files. |
remotestr | Remote path for the request relative to current working directory. |
single:bool | A flag which signals if this is a transfer for a single file in which case we use the exact remote path |
Returns | |
A deferred which fires when transfer is done. |
Parse line received as command line input and return first filename together with the remaining line.
Parameters | |
line:str | Arguments received from command line input. |
Returns | |
tupple | Tupple with filename and rest. Return empty values when no path was not found. |
Update a console progress bar on this StdioClient
's transport, based on the difference between the start time of the operation and the current time according to the reactor, and appropriate to the size of the console window.
Parameters | |
f:FileWrapper | a wrapper around the file which is being written or read |
startfloat | The time at which the operation being tracked began. |
Do an upload request.
Parameters | |
local | Local stream from where data is read. |
remotestr | Remote path for the request relative to current working directory. |
Returns | |
A deferred which fires when transfer is done. |