public class UFTPServer extends Object implements Runnable
ServerThread
is started, which waits for incoming client requests.
At the same time, the server listens on a command-socket, waiting for
UFTPBaseRequest
requests. Client requests are linked to jobs,
i.e. only clients announced via a Job are accepted. Modifier and Type | Class and Description |
---|---|
class |
UFTPServer.JobConnectionWorker |
Modifier and Type | Field and Description |
---|---|
static int |
BACKLOG
Backlog for the server sockets
|
static int |
CMDSOCKERR |
static int |
LISTENSOCKERR |
static int |
SYNERR
Error codes
|
static int |
THREADERR |
Constructor and Description |
---|
UFTPServer(InetAddress host,
int jobPort,
InetAddress host2,
int srvPort2) |
UFTPServer(InetAddress cmdip,
int cmdport,
InetAddress srvip,
int srvport,
String advertiseAddress,
PortManager portManager,
boolean checkClientIP) |
Modifier and Type | Method and Description |
---|---|
static org.apache.commons.cli.Options |
createOptions() |
String |
getServerInfo() |
int |
getTimeout() |
String |
getUserInfo(String username) |
static String |
getVersion() |
static void |
main(String[] args)
starts a server reading params from commandline args
|
static void |
printHeader() |
static void |
printUsage(org.apache.commons.cli.Options options) |
void |
run() |
void |
setCheckClientIP(boolean checkIP) |
void |
setTimeout(int timeout) |
void |
stop()
stops the server.
|
public static final int SYNERR
public static final int LISTENSOCKERR
public static final int THREADERR
public static final int CMDSOCKERR
public static final int BACKLOG
public UFTPServer(InetAddress cmdip, int cmdport, InetAddress srvip, int srvport, String advertiseAddress, PortManager portManager, boolean checkClientIP) throws IOException
IOException
public UFTPServer(InetAddress host, int jobPort, InetAddress host2, int srvPort2) throws IOException
host
- jobPort
- host2
- srvPort2
- IOException
public int getTimeout()
public void setTimeout(int timeout)
public void setCheckClientIP(boolean checkIP)
public void stop()
public static void main(String[] args)
public static org.apache.commons.cli.Options createOptions()
public static String getVersion()
public static void printHeader()
public static void printUsage(org.apache.commons.cli.Options options)
public String getServerInfo()
Copyright © 2010–2018 UNICORE. All rights reserved.