Atavism Version 2018.1AGIS API

atavism.server.network.rdp
Class RDPServerSocket

java.lang.Object
  extended by 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


Field Summary
protected static int defaultReceiveBufferSize
           
protected  int port
           
 
Constructor Summary
RDPServerSocket()
           
 
Method Summary
 void bind()
           
 void bind(int port)
          listens for new connections on this local port.
 void bind(java.lang.Integer port)
           
 void bind(java.lang.Integer port, int receiveBufferSize)
           
 java.nio.channels.DatagramChannel getDatagramChannel()
           
 int getPort()
          returns the port number for this socket.
 void registerAcceptCallback(ClientConnection.AcceptCallback cb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

protected int port

defaultReceiveBufferSize

protected static int defaultReceiveBufferSize
Constructor Detail

RDPServerSocket

public RDPServerSocket()
Method Detail

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()


Copyright © 2018 Dragonsan Studios Sp. z o.o.