makeport()
private
Constructs a TCPServer socket, and sends it
the PORT command
Returns the constructed TCPServer socket
Show source
def makeport
sock = TCPServer.open(@sock.addr[3], 0)
port = sock.addr[1]
host = sock.addr[3]
sendport(host, port)
return sock
end