atavism.server.network.rdp
Class RDPServerSocket
java.lang.Object
atavism.server.network.rdp.RDPServerSocket
public class RDPServerSocket
- extends java.lang.Object
the RDPServerSocket class represents a socket listening for incoming
rdp connections on a given port
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
port
protected int port
defaultReceiveBufferSize
protected static int defaultReceiveBufferSize
RDPServerSocket
public RDPServerSocket()
bind
public void bind()
throws java.net.BindException,
java.io.IOException
- Throws:
java.net.BindException
java.io.IOException
bind
public void bind(int port)
throws java.net.BindException,
java.io.IOException
- listens for new connections on this local port.
throws bindexception if the port is unavailable.
- Throws:
java.net.BindException
java.io.IOException
bind
public void bind(java.lang.Integer port)
throws java.net.BindException,
java.io.IOException
- Throws:
java.net.BindException
java.io.IOException
bind
public void bind(java.lang.Integer port,
int receiveBufferSize)
throws java.net.BindException,
java.io.IOException
- Throws:
java.net.BindException
java.io.IOException
registerAcceptCallback
public void registerAcceptCallback(ClientConnection.AcceptCallback cb)
getPort
public int getPort()
- returns the port number for this socket.
returns -1 if the port is not set
getDatagramChannel
public java.nio.channels.DatagramChannel getDatagramChannel()