MCPcopy Index your code
hub / github.com/python/cpython / cmd_eprt

Method cmd_eprt

Lib/test/test_ftplib.py:172–177  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

170 self.dtp = self.dtp_handler(conn, baseclass=self)
171
172 def cmd_eprt(self, arg):
173 af, ip, port = arg.split(arg[0])[1:-1]
174 port = int(port)
175 s = socket.create_connection((ip, port), timeout=TIMEOUT)
176 self.dtp = self.dtp_handler(s, baseclass=self)
177 self.push('200 active data connection established')
178
179 def cmd_epsv(self, arg):
180 with socket.create_server((self.socket.getsockname()[0], 0),

Callers

nothing calls this directly

Calls 3

pushMethod · 0.95
splitMethod · 0.45
create_connectionMethod · 0.45

Tested by

no test coverage detected