Lines Matching +full:command +full:- +full:and +full:- +full:control
5 # FTP client can be built, and you are welcome to extend it to suit
11 # user never needs to send a PORT command. Rather, the client opens a
12 # port right away and sends the appropriate PORT command to the server.
14 # the data (which is written to stdout in this version), and when the
15 # data is exhausted, a new port is opened and a corresponding PORT
16 # command sent. In order to avoid errors when reusing ports quickly
17 # (and because there is no s.getsockname() method in Python yet) we
30 FTP_DATA_PORT = FTP_PORT - 1
41 control(hostname)
44 # Control process (user interface and user protocol interpreter).
46 def control(hostname): function
48 # Create control connection
54 # Control loop
71 # Create a new data port and send a PORT command to the server for it.
88 # Send an appropriate port command.
101 # Process an ftp reply and return the 3-digit reply code (as a string).
102 # The reply should be a line of text starting with a 3-digit number.
103 # If the 4th char is '-', it is a multi-line reply and is
104 # terminate by a line starting with the same 3-digit number.
112 if line[3:4] == '-':
117 if line[:3] == code and line[3:4] != '-': break
133 # Get a command from the user.