public class DPCServer extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
DPCServer.Connection |
| Modifier and Type | Field and Description |
|---|---|
protected static String[] |
responses
String-Array holding response messages used to establish the pseudo-FTP
connection
|
static String |
VER |
| Constructor and Description |
|---|
DPCServer(InetAddress ip,
int port,
int backlog,
Map<InetAddress,List<UFTPTransferRequest>> jobMap,
String advertiseAddress,
PortManager pm)
create a new server listening on the given interface
|
| Modifier and Type | Method and Description |
|---|---|
DPCServer.Connection |
accept()
Waits for incoming client
|
void |
close()
close the server socket, disallowing any new connections.
|
static String[] |
getFeatures()
get the list of features supported by this server
|
String |
getHost() |
int |
getPort() |
int |
getTimeout() |
void |
setTimeout(int timeout) |
public static final String VER
protected static final String[] responses
public DPCServer(InetAddress ip, int port, int backlog, Map<InetAddress,List<UFTPTransferRequest>> jobMap, String advertiseAddress, PortManager pm) throws IOException
ip - server interface to bind to, if null, all
interfaces are usedport - listen portbacklog - maximum backlog of incoming connectionsauth - authorization checkeradvertiseAddress - Advertise this address as our own address in the control
connectionIOExceptionpublic DPCServer.Connection accept() throws IOException
IOException - on IO errors or if a connection is established from a client address
for which no UFTPTransferRequest existspublic void close()
throws IOException
IOException - as thrown from ServerSocket.close()public int getTimeout()
public void setTimeout(int timeout)
public int getPort()
public String getHost()
public static String[] getFeatures()
Copyright © 2010–2016 UNICORE. All rights reserved.