KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > coldcore > coloradoftp > session > DataOpenerType


1 package com.coldcore.coloradoftp.session;
2
3 /**
4  * The type of the data opener which must be used for the upcoming data transfer.
5  * There are two types: data connection is initiated by a user (PASV) or data connection is initiated
6  * by the server (PORT). PASV and PORT commands must set this property to a correct value,
7  * so the data transfer commands know how to initialize a new data connections.
8  *
9  *
10  * ColoradoFTP - The Open Source FTP Server (http://cftp.coldcore.com)
11  */

12 public enum DataOpenerType {
13   PASV, //Connection will be initiated by user and already awaits in one of the data port listeners
14
PORT //Connection will be initiated by server, so data connection initiator must be configured
15
}
16
Popular Tags