org.apache.ftpserver.command
Class PORT
java.lang.Object
org.apache.ftpserver.command.AbstractCommand
org.apache.ftpserver.command.PORT
- All Implemented Interfaces:
- Command
public class PORT
- extends AbstractCommand
PORT <SP> <CRLF>
The argument is a HOST-PORT specification for the data port
to be used in data connection. There are defaults for both
the user and server data ports, and under normal
circumstances this command and its reply are not needed. If
this command is used, the argument is the concatenation of a
32-bit internet host address and a 16-bit TCP port address.
This address information is broken into 8-bit fields and the
value of each field is transmitted as a decimal number (in
character string representation). The fields are separated
by commas. A port command would be:
PORT h1,h2,h3,h4,p1,p2
where h1 is the high order 8 bits of the internet host address.
Constructor Summary |
PORT()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PORT
public PORT()
execute
public void execute(FtpIoSession session,
FtpServerContext context,
FtpRequest request)
throws java.io.IOException
- Execute command.
- Parameters:
session
- TODOcontext
- TODO
- Throws:
java.io.IOException
Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.