diff --git a/Extasys for Java/dist/javadoc/Extasys/ByteArrayBuilder.html b/Extasys for Java/dist/javadoc/Extasys/ByteArrayBuilder.html new file mode 100644 index 0000000..f385717 --- /dev/null +++ b/Extasys for Java/dist/javadoc/Extasys/ByteArrayBuilder.html @@ -0,0 +1,317 @@ + + + +
+ + +public class ByteArrayBuilder
+extends java.lang.Object
+Constructor and Description | +
---|
ByteArrayBuilder() |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+Append(byte[] data)
+Append data to ByteArrayBuilder
+ |
+
void |
+Delete(int indexFrom,
+ int indexTo) |
+
void |
+Dispose() |
+
int |
+IndexOf(byte[] subArray) |
+
byte[] |
+SubList(int fromIndex,
+ int toIndex) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void Append(byte[] data)+
data
- is the byte[] array to appendpublic int IndexOf(byte[] subArray)+
public void Delete(int indexFrom, + int indexTo)+
public byte[] SubList(int fromIndex, + int toIndex)+
public void Dispose()+
public class DataFrame
+extends java.lang.Object
+public class ExtasysCalendar
+extends java.lang.Object
+Modifier and Type | +Field and Description | +
---|---|
static java.util.Calendar |
+fCalendar |
+
Constructor and Description | +
---|
ExtasysCalendar() |
+
public class ManualResetEvent
+extends java.lang.Object
+Constructor and Description | +
---|
ManualResetEvent(boolean initialState) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+Reset() |
+
void |
+Set() |
+
void |
+WaitOne() |
+
void |
+WaitOne(long milliseconds) |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public class IncomingTCPClientPacket
+extends java.lang.Object
+implements java.lang.Runnable
+Modifier and Type | +Field and Description | +
---|---|
boolean |
+fCancel |
+
ManualResetEvent |
+fDone |
+
Constructor and Description | +
---|
IncomingTCPClientPacket(TCPConnector connector,
+ DataFrame data,
+ IncomingTCPClientPacket previousPacket)
+Constructs a new incoming packet received by a TCP connector.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+Cancel()
+Cancel this incoming packet.
+ |
+
DataFrame |
+getData()
+Returns the data of this packet.
+ |
+
IncomingTCPClientPacket |
+getPreviusPacket()
+Returns the previus incoming packet received by the client.
+ |
+
void |
+run() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ManualResetEvent fDone+
public boolean fCancel+
public IncomingTCPClientPacket(TCPConnector connector, + DataFrame data, + IncomingTCPClientPacket previousPacket)+
TCPConnector
- is the TCP Connector where this message belongs to.data
- is a DataFrame class.previousPacket
- is the previous incoming message of the TCP Connector.public void Cancel()+
public void run()+
run
in interface java.lang.Runnable
public DataFrame getData()+
public IncomingTCPClientPacket getPreviusPacket()+
public class MessageCollectorTCPClientPacket
+extends java.lang.Object
+implements java.lang.Runnable
+Modifier and Type | +Field and Description | +
---|---|
boolean |
+fCancel |
+
ManualResetEvent |
+fDone |
+
Constructor and Description | +
---|
MessageCollectorTCPClientPacket(TCPConnector connector,
+ byte[] data,
+ MessageCollectorTCPClientPacket previousPacket)
+Constructs a new (incoming) message collector packet.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+Cancel()
+Cancel this message collector packet.
+ |
+
byte[] |
+getData()
+Returns the data of this packet.
+ |
+
void |
+run() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ManualResetEvent fDone+
public boolean fCancel+
public MessageCollectorTCPClientPacket(TCPConnector connector, + byte[] data, + MessageCollectorTCPClientPacket previousPacket)+
connector
- is the packets TCP Connector.data
- is the byte[] received.previousPacket
- is the previous message collector packet of the TCP
+ Connector.public void Cancel()+
public void run()+
run
in interface java.lang.Runnable
public byte[] getData()+
public class OutgoingTCPClientPacket
+extends java.lang.Object
+implements java.lang.Runnable
+Modifier and Type | +Field and Description | +
---|---|
boolean |
+fCancel |
+
ManualResetEvent |
+fDone |
+
Constructor and Description | +
---|
OutgoingTCPClientPacket(TCPConnector connector,
+ byte[] bytes,
+ int offset,
+ int length,
+ OutgoingTCPClientPacket previousPacket)
+Constructs a new outgoing packet for an existing TCP Connector.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+Cancel()
+Cancel this outgoing packet.
+ |
+
byte[] |
+getBytes()
+Returns the byte array of this packet.
+ |
+
int |
+getLength()
+Returns the number of bytes to send from this packet.
+ |
+
int |
+getOffset()
+Returns the offset of this packet.
+ |
+
void |
+run() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ManualResetEvent fDone+
public boolean fCancel+
public OutgoingTCPClientPacket(TCPConnector connector, + byte[] bytes, + int offset, + int length, + OutgoingTCPClientPacket previousPacket) + throws ConnectorCannotSendPacketException+
TCPConnector
- is the TCPConnector where this message belongs to.bytes
- is the byte array to be sent.offset
- is the position in the data buffer at witch to begin sending.length
- is the number of the bytes to be send.previousPacket
- is the previous outgoing packet of the TCPConnector.ConnectorCannotSendPacketException
public void Cancel()+
public void run()+
run
in interface java.lang.Runnable
public byte[] getBytes()+
public int getOffset()+
public int getLength()+
Package | +Description | +
---|---|
Extasys.Network.TCP.Client.Connectors | ++ |
Extasys.Network.TCP.Client.Connectors.Packets | ++ |
Modifier and Type | +Field and Description | +
---|---|
IncomingTCPClientPacket |
+TCPConnector.fLastIncomingPacket |
+
Modifier and Type | +Method and Description | +
---|---|
IncomingTCPClientPacket |
+IncomingTCPClientPacket.getPreviusPacket()
+Returns the previus incoming packet received by the client.
+ |
+
Constructor and Description | +
---|
IncomingTCPClientPacket(TCPConnector connector,
+ DataFrame data,
+ IncomingTCPClientPacket previousPacket)
+Constructs a new incoming packet received by a TCP connector.
+ |
+
Package | +Description | +
---|---|
Extasys.Network.TCP.Client.Connectors | ++ |
Extasys.Network.TCP.Client.Connectors.Packets | ++ |
Modifier and Type | +Field and Description | +
---|---|
MessageCollectorTCPClientPacket |
+TCPConnector.fLastMessageCollectorPacket |
+
Constructor and Description | +
---|
MessageCollectorTCPClientPacket(TCPConnector connector,
+ byte[] data,
+ MessageCollectorTCPClientPacket previousPacket)
+Constructs a new (incoming) message collector packet.
+ |
+
Package | +Description | +
---|---|
Extasys.Network.TCP.Client.Connectors.Packets | ++ |
Extasys.Network.TCP.Client.Exceptions | ++ |
Constructor and Description | +
---|
OutgoingTCPClientPacket(TCPConnector connector,
+ byte[] bytes,
+ int offset,
+ int length,
+ OutgoingTCPClientPacket previousPacket)
+Constructs a new outgoing packet for an existing TCP Connector.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
OutgoingTCPClientPacket |
+ConnectorCannotSendPacketException.getOutgoingPacket()
+Returns the unsent packet.
+ |
+
Constructor and Description | +
---|
ConnectorCannotSendPacketException(TCPConnector connector,
+ OutgoingTCPClientPacket packet) |
+
Class | +Description | +
---|---|
IncomingTCPClientPacket | ++ |
MessageCollectorTCPClientPacket | ++ |
OutgoingTCPClientPacket | ++ |
Package | +Description | +
---|---|
Extasys.Network.TCP.Client.Connectors | ++ |
Extasys.Network.TCP.Client.Connectors.Packets | ++ |
Extasys.Network.TCP.Client.Exceptions | ++ |
Class and Description | +
---|
IncomingTCPClientPacket | +
MessageCollectorTCPClientPacket | +
Class and Description | +
---|
IncomingTCPClientPacket | +
MessageCollectorTCPClientPacket | +
OutgoingTCPClientPacket | +
Class and Description | +
---|
OutgoingTCPClientPacket | +
public class TCPConnector
+extends java.lang.Object
+Modifier and Type | +Field and Description | +
---|---|
long |
+fBytesIn |
+
long |
+fBytesOut |
+
java.net.Socket |
+fConnection |
+
java.io.InputStream |
+fInput |
+
protected boolean |
+fIsConnected |
+
IncomingTCPClientPacket |
+fLastIncomingPacket |
+
MessageCollectorTCPClientPacket |
+fLastMessageCollectorPacket |
+
TCPClientMessageCollector |
+fMessageCollector |
+
ExtasysTCPClient |
+fMyTCPClient |
+
java.io.OutputStream |
+fOutput |
+
Constructor and Description | +
---|
TCPConnector(ExtasysTCPClient myTCPClient,
+ java.lang.String name,
+ java.net.InetAddress serverIP,
+ int serverPort,
+ int readBufferSize)
+Constructs a new TCP Connector.
+ |
+
TCPConnector(ExtasysTCPClient myTCPClient,
+ java.lang.String name,
+ java.net.InetAddress serverIP,
+ int serverPort,
+ int readBufferSize,
+ char ETX)
+Constructs a new TCP Connector with message collector use (ETX).
+ |
+
TCPConnector(ExtasysTCPClient myTCPClient,
+ java.lang.String name,
+ java.net.InetAddress serverIP,
+ int serverPort,
+ int readBufferSize,
+ java.lang.String splitter)
+Constructs a new TCP Connector with message collector use (Splitter).
+ |
+
Modifier and Type | +Method and Description | +
---|---|
long |
+getBytesIn()
+Return the number of bytes received from this connector.
+ |
+
long |
+getBytesOut()
+Returns the number of bytes send from this connector.
+ |
+
java.lang.String |
+getMessageSplitter()
+Returns message collector's splitter in string format.
+ |
+
ExtasysTCPClient |
+getMyExtasysTCPClient()
+Returns the main Extasys TCP Client of the connector.
+ |
+
TCPClientMessageCollector |
+getMyMessageCollector()
+Returns the message collector of this connector.
+ |
+
java.lang.String |
+getName()
+Returns the name of this connector.
+ |
+
int |
+getReadBufferSize()
+Returns the read buffer size of the connection.
+ |
+
java.net.InetAddress |
+getServerIPAddress()
+Returns the remote server's ip address.
+ |
+
int |
+getServerPort()
+Returns the remote server TCP port.
+ |
+
boolean |
+isActive()
+Returns the active state of this connector.
+ |
+
boolean |
+isConnected()
+Returns True if this connector is connected to the host.
+ |
+
boolean |
+isMessageCollectorInUse()
+Returns the active state of the message collector.
+ |
+
void |
+SendData(byte[] bytes,
+ int offset,
+ int length)
+Send data to server.
+ |
+
void |
+SendData(java.lang.String data)
+Send string data to server.
+ |
+
void |
+Start()
+Start the connector (connect to the server).
+ |
+
void |
+Stop()
+Stop the connector (disconnect from the server).
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ExtasysTCPClient fMyTCPClient+
protected boolean fIsConnected+
public java.net.Socket fConnection+
public java.io.InputStream fInput+
public java.io.OutputStream fOutput+
public long fBytesIn+
public long fBytesOut+
public TCPClientMessageCollector fMessageCollector+
public IncomingTCPClientPacket fLastIncomingPacket+
public MessageCollectorTCPClientPacket fLastMessageCollectorPacket+
public TCPConnector(ExtasysTCPClient myTCPClient, + java.lang.String name, + java.net.InetAddress serverIP, + int serverPort, + int readBufferSize)+
myTCPClient
- is the TCP connector's main Extasys TCP Client.name
- is the connector's name.serverIP
- is the server's ip address the connector will use to
+ connect.serverPort
- is the server's tcp port the connector will use to
+ connect.readBufferSize
- is the read buffer size in bytes for this
+ connection.public TCPConnector(ExtasysTCPClient myTCPClient, + java.lang.String name, + java.net.InetAddress serverIP, + int serverPort, + int readBufferSize, + char ETX)+
myTCPClient
- is the TCP connector's main Extasys TCP Client.name
- is the connector's name.serverIP
- is the server's ip address the connector will connect to.serverPort
- is the server's tcp port the connector will connect to.readBufferSize
- is the read buffer size in bytes for this
+ connection.ETX
- is the End of Text character.public TCPConnector(ExtasysTCPClient myTCPClient, + java.lang.String name, + java.net.InetAddress serverIP, + int serverPort, + int readBufferSize, + java.lang.String splitter)+
myTCPClient
- is the TCP connector's main Extasys TCP Client.name
- is the connector's name.serverIP
- is the server's ip address the connector will connect to.serverPort
- is the server's tcp port the connector will connect to.readBufferSize
- is the read buffer size in bytes for this
+ connection.splitter
- is the message splitter.public void Start() + throws java.lang.Exception+
java.lang.Exception
public void Stop()+
public void SendData(java.lang.String data) + throws ConnectorDisconnectedException, + ConnectorCannotSendPacketException+
data
- is the string to send.ConnectorDisconnectedException
ConnectorCannotSendPacketException
public void SendData(byte[] bytes, + int offset, + int length) + throws ConnectorDisconnectedException, + ConnectorCannotSendPacketException+
bytes
- is the byte array to be send.offset
- is the position in the data buffer at witch to begin
+ sending.length
- is the number of the bytes to be send.ConnectorDisconnectedException
ConnectorCannotSendPacketException
public ExtasysTCPClient getMyExtasysTCPClient()+
public boolean isActive()+
public java.lang.String getName()+
public java.net.InetAddress getServerIPAddress()+
public int getServerPort()+
public int getReadBufferSize()+
public long getBytesIn()+
public long getBytesOut()+
public boolean isMessageCollectorInUse()+
public TCPClientMessageCollector getMyMessageCollector()+
public java.lang.String getMessageSplitter()+
public boolean isConnected()+
public class TCPClientMessageCollector
+extends java.lang.Object
+Constructor and Description | +
---|
TCPClientMessageCollector(TCPConnector connector,
+ char ETX) |
+
TCPClientMessageCollector(TCPConnector connector,
+ java.lang.String splitter) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+AppendData(byte[] bytes) |
+
void |
+Dispose() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public TCPClientMessageCollector(TCPConnector connector, + char ETX)+
public TCPClientMessageCollector(TCPConnector connector, + java.lang.String splitter)+
Package | +Description | +
---|---|
Extasys.Network.TCP.Client.Connectors | ++ |
Modifier and Type | +Field and Description | +
---|---|
TCPClientMessageCollector |
+TCPConnector.fMessageCollector |
+
Modifier and Type | +Method and Description | +
---|---|
TCPClientMessageCollector |
+TCPConnector.getMyMessageCollector()
+Returns the message collector of this connector.
+ |
+
Class | +Description | +
---|---|
TCPClientMessageCollector | ++ |
Package | +Description | +
---|---|
Extasys.Network.TCP.Client.Connectors | ++ |
Class and Description | +
---|
TCPClientMessageCollector | +
Package | +Description | +
---|---|
Extasys.Network.TCP.Client | ++ |
Extasys.Network.TCP.Client.Connectors.Packets | ++ |
Extasys.Network.TCP.Client.Connectors.Tools | ++ |
Extasys.Network.TCP.Client.Exceptions | ++ |
Modifier and Type | +Method and Description | +
---|---|
TCPConnector |
+ExtasysTCPClient.AddConnector(java.lang.String name,
+ java.net.InetAddress serverIP,
+ int serverPort,
+ int readBufferSize)
+Add a new connector to this client.
+ |
+
TCPConnector |
+ExtasysTCPClient.AddConnector(java.lang.String name,
+ java.net.InetAddress serverIP,
+ int serverPort,
+ int readBufferSize,
+ char ETX)
+Add a new connector with message collector.
+ |
+
TCPConnector |
+ExtasysTCPClient.AddConnector(java.lang.String name,
+ java.net.InetAddress serverIP,
+ int serverPort,
+ int readBufferSize,
+ java.lang.String splitter)
+Add a new connector with message collector.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+ExtasysTCPClient.OnConnect(TCPConnector connector)
+A connector of this client connected to a server.
+ |
+
void |
+ExtasysTCPClient.OnDataReceive(TCPConnector connector,
+ DataFrame data)
+A connector of this client receives data.
+ |
+
void |
+ExtasysTCPClient.OnDisconnect(TCPConnector connector)
+A connector of this client has been disconnected.
+ |
+
Constructor and Description | +
---|
IncomingTCPClientPacket(TCPConnector connector,
+ DataFrame data,
+ IncomingTCPClientPacket previousPacket)
+Constructs a new incoming packet received by a TCP connector.
+ |
+
MessageCollectorTCPClientPacket(TCPConnector connector,
+ byte[] data,
+ MessageCollectorTCPClientPacket previousPacket)
+Constructs a new (incoming) message collector packet.
+ |
+
OutgoingTCPClientPacket(TCPConnector connector,
+ byte[] bytes,
+ int offset,
+ int length,
+ OutgoingTCPClientPacket previousPacket)
+Constructs a new outgoing packet for an existing TCP Connector.
+ |
+
Constructor and Description | +
---|
TCPClientMessageCollector(TCPConnector connector,
+ char ETX) |
+
TCPClientMessageCollector(TCPConnector connector,
+ java.lang.String splitter) |
+
Modifier and Type | +Method and Description | +
---|---|
TCPConnector |
+ConnectorCannotSendPacketException.getConnectorInstance()
+Returns the connector was unable to send the packet.
+ |
+
TCPConnector |
+ConnectorDisconnectedException.getConnectorInstance()
+Returns the disconnected connector.
+ |
+
Constructor and Description | +
---|
ConnectorCannotSendPacketException(TCPConnector connector,
+ OutgoingTCPClientPacket packet) |
+
ConnectorDisconnectedException(TCPConnector connector) |
+
Class | +Description | +
---|---|
TCPConnector | ++ |
Package | +Description | +
---|---|
Extasys.Network.TCP.Client | ++ |
Extasys.Network.TCP.Client.Connectors.Packets | ++ |
Extasys.Network.TCP.Client.Connectors.Tools | ++ |
Extasys.Network.TCP.Client.Exceptions | ++ |
Class and Description | +
---|
TCPConnector | +
Class and Description | +
---|
TCPConnector | +
Class and Description | +
---|
TCPConnector | +
Class and Description | +
---|
TCPConnector | +
public class ConnectorCannotSendPacketException
+extends java.lang.Exception
+Constructor and Description | +
---|
ConnectorCannotSendPacketException(TCPConnector connector,
+ OutgoingTCPClientPacket packet) |
+
Modifier and Type | +Method and Description | +
---|---|
TCPConnector |
+getConnectorInstance()
+Returns the connector was unable to send the packet.
+ |
+
OutgoingTCPClientPacket |
+getOutgoingPacket()
+Returns the unsent packet.
+ |
+
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public ConnectorCannotSendPacketException(TCPConnector connector, + OutgoingTCPClientPacket packet)+
public TCPConnector getConnectorInstance()+
public OutgoingTCPClientPacket getOutgoingPacket()+
public class ConnectorDisconnectedException
+extends java.lang.Exception
+Constructor and Description | +
---|
ConnectorDisconnectedException(TCPConnector connector) |
+
Modifier and Type | +Method and Description | +
---|---|
TCPConnector |
+getConnectorInstance()
+Returns the disconnected connector.
+ |
+
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public ConnectorDisconnectedException(TCPConnector connector)+
public TCPConnector getConnectorInstance()+
Package | +Description | +
---|---|
Extasys.Network.TCP.Client | ++ |
Extasys.Network.TCP.Client.Connectors | ++ |
Extasys.Network.TCP.Client.Connectors.Packets | ++ |
Modifier and Type | +Method and Description | +
---|---|
void |
+ExtasysTCPClient.SendData(byte[] bytes,
+ int offset,
+ int length)
+Send data from all connector's to all hosts.
+ |
+
void |
+ExtasysTCPClient.SendData(java.lang.String data)
+Send data from all connector's to all hosts.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+TCPConnector.SendData(byte[] bytes,
+ int offset,
+ int length)
+Send data to server.
+ |
+
void |
+TCPConnector.SendData(java.lang.String data)
+Send string data to server.
+ |
+
Constructor and Description | +
---|
OutgoingTCPClientPacket(TCPConnector connector,
+ byte[] bytes,
+ int offset,
+ int length,
+ OutgoingTCPClientPacket previousPacket)
+Constructs a new outgoing packet for an existing TCP Connector.
+ |
+
Package | +Description | +
---|---|
Extasys.Network.TCP.Client | ++ |
Extasys.Network.TCP.Client.Connectors | ++ |
Modifier and Type | +Method and Description | +
---|---|
void |
+ExtasysTCPClient.SendData(byte[] bytes,
+ int offset,
+ int length)
+Send data from all connector's to all hosts.
+ |
+
void |
+ExtasysTCPClient.SendData(java.lang.String data)
+Send data from all connector's to all hosts.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+TCPConnector.SendData(byte[] bytes,
+ int offset,
+ int length)
+Send data to server.
+ |
+
void |
+TCPConnector.SendData(java.lang.String data)
+Send string data to server.
+ |
+
Exception | +Description | +
---|---|
ConnectorCannotSendPacketException | ++ |
ConnectorDisconnectedException | ++ |
Package | +Description | +
---|---|
Extasys.Network.TCP.Client | ++ |
Extasys.Network.TCP.Client.Connectors | ++ |
Extasys.Network.TCP.Client.Connectors.Packets | ++ |
Class and Description | +
---|
ConnectorCannotSendPacketException | +
ConnectorDisconnectedException | +
Class and Description | +
---|
ConnectorCannotSendPacketException | +
ConnectorDisconnectedException | +
Class and Description | +
---|
ConnectorCannotSendPacketException | +
public class ExtasysTCPClient
+extends java.lang.Object
+Modifier and Type | +Field and Description | +
---|---|
java.util.concurrent.ThreadPoolExecutor |
+fMyThreadPool |
+
Constructor and Description | +
---|
ExtasysTCPClient(java.lang.String name,
+ java.lang.String description,
+ int corePoolSize,
+ int maximumPoolSize)
+Constructs a new Extasys TCP Client.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
TCPConnector |
+AddConnector(java.lang.String name,
+ java.net.InetAddress serverIP,
+ int serverPort,
+ int readBufferSize)
+Add a new connector to this client.
+ |
+
TCPConnector |
+AddConnector(java.lang.String name,
+ java.net.InetAddress serverIP,
+ int serverPort,
+ int readBufferSize,
+ char ETX)
+Add a new connector with message collector.
+ |
+
TCPConnector |
+AddConnector(java.lang.String name,
+ java.net.InetAddress serverIP,
+ int serverPort,
+ int readBufferSize,
+ java.lang.String splitter)
+Add a new connector with message collector.
+ |
+
void |
+Dispose()
+Dispose the client.
+ |
+
long |
+getBytesIn()
+Returns the total number of bytes received from all the connectors of the
+ client.
+ |
+
long |
+getBytesOut()
+Returns the total number of bytes send from all the connectors of the
+ client.
+ |
+
java.util.ArrayList |
+getConnectors()
+Return ArrayList with the client's connectors.
+ |
+
java.lang.String |
+getDescription()
+Return the description of the client.
+ |
+
java.util.concurrent.ThreadPoolExecutor |
+getMyThreadPool()
+Return the client's Thread Pool.
+ |
+
java.lang.String |
+getName()
+Return the name of the client.
+ |
+
void |
+OnConnect(TCPConnector connector)
+A connector of this client connected to a server.
+ |
+
void |
+OnDataReceive(TCPConnector connector,
+ DataFrame data)
+A connector of this client receives data.
+ |
+
void |
+OnDisconnect(TCPConnector connector)
+A connector of this client has been disconnected.
+ |
+
void |
+RemoveConnector(java.lang.String name)
+Stop and remove a connector from this client.
+ |
+
void |
+SendData(byte[] bytes,
+ int offset,
+ int length)
+Send data from all connector's to all hosts.
+ |
+
void |
+SendData(java.lang.String data)
+Send data from all connector's to all hosts.
+ |
+
void |
+Start()
+Start or restart the client.
+ |
+
void |
+Stop()
+Stop the client.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public final java.util.concurrent.ThreadPoolExecutor fMyThreadPool+
public ExtasysTCPClient(java.lang.String name, + java.lang.String description, + int corePoolSize, + int maximumPoolSize)+
name
- is the name of the client.description
- is the description of the client.corePoolSize
- is the number of threads to keep in the pool, even if
+ they are idle.maximumPoolSize
- is the maximum number of threads to allow in the
+ pool.public TCPConnector AddConnector(java.lang.String name, + java.net.InetAddress serverIP, + int serverPort, + int readBufferSize)+
name
- is the connector's name.serverIP
- is the remote host's (server) IP address.serverPort
- is the remote host's (server) port.readBufferSize
- is the read buffer size for this connection in
+ bytes.public TCPConnector AddConnector(java.lang.String name, + java.net.InetAddress serverIP, + int serverPort, + int readBufferSize, + char ETX)+
name
- is the connector's name.serverIP
- is the remote host's (server) IP address.serverPort
- is the remote host's (server) port.readBufferSize
- is the read buffer size for this connection in
+ bytes.ETX
- is the End of Text character.public TCPConnector AddConnector(java.lang.String name, + java.net.InetAddress serverIP, + int serverPort, + int readBufferSize, + java.lang.String splitter)+
name
- is the connector's name.serverIP
- is the remote host's (server) IP address.serverPort
- is the remote host's (server) port.readBufferSize
- is the read buffer size for this connection in
+ bytes.splitter
- is the message splitter.public void RemoveConnector(java.lang.String name)+
name
- is the connector's name.public void Start() + throws java.lang.Exception+
java.lang.Exception
public void Stop()+
public void Dispose()+
public void SendData(java.lang.String data) + throws ConnectorDisconnectedException, + ConnectorCannotSendPacketException+
data
- is the string to be send.ConnectorDisconnectedException
ConnectorCannotSendPacketException
public void SendData(byte[] bytes, + int offset, + int length) + throws ConnectorDisconnectedException, + ConnectorCannotSendPacketException+
bytes
- is the byte array to be send.offset
- is the position in the data buffer at witch to begin
+ sending.length
- is the number of the bytes to be send.ConnectorDisconnectedException
ConnectorCannotSendPacketException
public void OnDataReceive(TCPConnector connector, + DataFrame data)+
connector
- is the client's connector.data
- is the received data.public void OnConnect(TCPConnector connector)+
connector
- public void OnDisconnect(TCPConnector connector)+
connector
- public java.lang.String getName()+
public java.lang.String getDescription()+
public java.util.ArrayList getConnectors()+
public java.util.concurrent.ThreadPoolExecutor getMyThreadPool()+
public long getBytesIn()+
public long getBytesOut()+
Package | +Description | +
---|---|
Extasys.Network.TCP.Client.Connectors | ++ |
Modifier and Type | +Field and Description | +
---|---|
ExtasysTCPClient |
+TCPConnector.fMyTCPClient |
+
Modifier and Type | +Method and Description | +
---|---|
ExtasysTCPClient |
+TCPConnector.getMyExtasysTCPClient()
+Returns the main Extasys TCP Client of the connector.
+ |
+
Constructor and Description | +
---|
TCPConnector(ExtasysTCPClient myTCPClient,
+ java.lang.String name,
+ java.net.InetAddress serverIP,
+ int serverPort,
+ int readBufferSize)
+Constructs a new TCP Connector.
+ |
+
TCPConnector(ExtasysTCPClient myTCPClient,
+ java.lang.String name,
+ java.net.InetAddress serverIP,
+ int serverPort,
+ int readBufferSize,
+ char ETX)
+Constructs a new TCP Connector with message collector use (ETX).
+ |
+
TCPConnector(ExtasysTCPClient myTCPClient,
+ java.lang.String name,
+ java.net.InetAddress serverIP,
+ int serverPort,
+ int readBufferSize,
+ java.lang.String splitter)
+Constructs a new TCP Connector with message collector use (Splitter).
+ |
+
Class | +Description | +
---|---|
ExtasysTCPClient | ++ |
Package | +Description | +
---|---|
Extasys.Network.TCP.Client.Connectors | ++ |
Class and Description | +
---|
ExtasysTCPClient | +
public class ExtasysTCPServer
+extends java.lang.Object
+Modifier and Type | +Field and Description | +
---|---|
java.util.concurrent.ThreadPoolExecutor |
+fMyThreadPool |
+
Constructor and Description | +
---|
ExtasysTCPServer(java.lang.String name,
+ java.lang.String description,
+ int corePoolSize,
+ int maximumPoolSize)
+Constructs an new Extasys TCP Server.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
TCPListener |
+AddListener(java.lang.String name,
+ java.net.InetAddress ipAddress,
+ int port,
+ int maxConnections,
+ int readBufferSize,
+ int connectionTimeOut,
+ int backLog)
+Add a new listener to this server.
+ |
+
TCPListener |
+AddListener(java.lang.String name,
+ java.net.InetAddress ipAddress,
+ int port,
+ int maxConnections,
+ int readBufferSize,
+ int connectionTimeOut,
+ int backLog,
+ char splitter)
+Add new listener with message collector (character splitter).
+ |
+
TCPListener |
+AddListener(java.lang.String name,
+ java.net.InetAddress ipAddress,
+ int port,
+ int maxConnections,
+ int readBufferSize,
+ int connectionTimeOut,
+ int backLog,
+ java.lang.String splitter)
+Add new listener with message collector (string splitter).
+ |
+
void |
+Dispose()
+Dispose the server.
+ |
+
long |
+getBytesIn()
+Returns the total bytes received from this server.
+ |
+
long |
+getBytesOut()
+Returns the total bytes send from this server.
+ |
+
int |
+getCurrentConnectionsNumber()
+Returns the current connections number of this server.
+ |
+
java.lang.String |
+getDescription()
+Server's description.
+ |
+
java.util.ArrayList |
+getListeners()
+Returns an ArrayList with this server's tcp listeners.
+ |
+
java.util.concurrent.ThreadPoolExecutor |
+getMyThreadPool()
+Returns my Thread Pool.
+ |
+
java.lang.String |
+getName()
+Server's name.
+ |
+
void |
+OnClientConnect(TCPClientConnection client)
+A client connects to this server.
+ |
+
void |
+OnClientDisconnect(TCPClientConnection client)
+A client disconnects from this server.
+ |
+
void |
+OnDataReceive(TCPClientConnection sender,
+ DataFrame data)
+Server is receiving data from a client connection.
+ |
+
void |
+RemoveListener(java.lang.String name)
+Stop and remove a listener.
+ |
+
void |
+ReplyToAll(byte[] bytes,
+ int offset,
+ int length)
+Send data to all connected clients.
+ |
+
void |
+ReplyToAll(java.lang.String data)
+Send data to all connected clients.
+ |
+
void |
+ReplyToAllExceptSender(byte[] bytes,
+ int offset,
+ int length,
+ TCPClientConnection sender)
+Send data to all connected clients excepts sender.
+ |
+
void |
+ReplyToAllExceptSender(java.lang.String data,
+ TCPClientConnection sender)
+Send data to all connected clients excepts sender.
+ |
+
void |
+ReplyToSender(byte[] bytes,
+ int offset,
+ int length,
+ TCPClientConnection sender)
+Send data to a client.
+ |
+
void |
+ReplyToSender(java.lang.String data,
+ TCPClientConnection sender)
+Send data to a client.
+ |
+
void |
+Start()
+Start or restart the server.
+ |
+
void |
+Stop()
+Stop the server.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public final java.util.concurrent.ThreadPoolExecutor fMyThreadPool+
public ExtasysTCPServer(java.lang.String name, + java.lang.String description, + int corePoolSize, + int maximumPoolSize)+
name
- is the name of the server.description
- is the description of the server.corePoolSize
- is the number of threads to keep in the pool, even if
+ they are idle.maximumPoolSize
- is the maximum number of threads to allow in the
+ pool.public TCPListener AddListener(java.lang.String name, + java.net.InetAddress ipAddress, + int port, + int maxConnections, + int readBufferSize, + int connectionTimeOut, + int backLog)+
name
- is the listener's name.ipAddress
- is the listener's IP address.port
- is the listener's tcp port.maxConnections
- is the listener's maximum allowed connections.readBufferSize
- is the read buffer size for each connections in
+ bytes.connectionTimeOut
- is the connections time-out in milliseconds. Set
+ to 0 for no time-out.backLog
- is the number of outstanding connection requests the
+ listener can have.public TCPListener AddListener(java.lang.String name, + java.net.InetAddress ipAddress, + int port, + int maxConnections, + int readBufferSize, + int connectionTimeOut, + int backLog, + char splitter)+
name
- is the listener's name.ipAddress
- is the listener's IP address.port
- is the listener's tcp port.maxConnections
- is the number of maximum allowed connections.readBufferSize
- is the read buffer size for each connection in
+ bytes.connectionTimeOut
- is the connections time-out in milliseconds. Set
+ to 0 for no time-out.backLog
- is the number of outstanding connection requests the
+ listener can have.splitter
- is the message splitter.public TCPListener AddListener(java.lang.String name, + java.net.InetAddress ipAddress, + int port, + int maxConnections, + int readBufferSize, + int connectionTimeOut, + int backLog, + java.lang.String splitter)+
name
- is the listener's name.ipAddress
- is the listener's IP address.port
- is the listener's tcp port.maxConnections
- is the number of maximum allowed connections.readBufferSize
- is the read buffer size for each connection in
+ bytes.connectionTimeOut
- is the connections time-out in milliseconds. Set
+ to 0 for no time-out.backLog
- is the number of outstanding connection requests the
+ listener can have.splitter
- is the message splitter.public void RemoveListener(java.lang.String name)+
name
- is the listener's name to remove.public void Start() + throws java.io.IOException, + java.lang.Exception+
java.io.IOException
java.lang.Exception
public void Stop()+
public void Dispose()+
public void OnDataReceive(TCPClientConnection sender, + DataFrame data)+
sender
- is the client sends the data to this server.data
- is the incoming DataFrame.public void OnClientConnect(TCPClientConnection client)+
client
- Client.public void OnClientDisconnect(TCPClientConnection client)+
client
- Client.public void ReplyToSender(java.lang.String data, + TCPClientConnection sender) + throws ClientIsDisconnectedException, + OutgoingPacketFailedException+
data
- is the string to send.sender
- is the client to send the data.ClientIsDisconnectedException
OutgoingPacketFailedException
public void ReplyToSender(byte[] bytes, + int offset, + int length, + TCPClientConnection sender) + throws ClientIsDisconnectedException, + OutgoingPacketFailedException+
bytes
- is the byte array to be send.offset
- is the position in the data buffer at witch to begin
+ sending.length
- is the number of the bytes to be send.sender
- is the client connection to receive the data.ClientIsDisconnectedException
OutgoingPacketFailedException
public void ReplyToAll(java.lang.String data)+
data
- is the string to be send.public void ReplyToAll(byte[] bytes, + int offset, + int length)+
bytes
- is the byte array to be send.offset
- is the position in the data buffer at witch to begin
+ sending.length
- is the number of the bytes to be send.public void ReplyToAllExceptSender(java.lang.String data, + TCPClientConnection sender)+
data
- is the string to be send.sender
- is the TCP client exception.public void ReplyToAllExceptSender(byte[] bytes, + int offset, + int length, + TCPClientConnection sender)+
bytes
- is the byte array to be send.offset
- is the position in the data buffer at witch to begin
+ sending.length
- is the number of the bytes to be send.sender
- is the TCP client exception.public java.lang.String getName()+
public java.lang.String getDescription()+
public java.util.ArrayList getListeners()+
public int getCurrentConnectionsNumber()+
public java.util.concurrent.ThreadPoolExecutor getMyThreadPool()+
public long getBytesIn()+
public long getBytesOut()+
public class ClientIsDisconnectedException
+extends java.lang.Exception
+Constructor and Description | +
---|
ClientIsDisconnectedException(TCPClientConnection client) |
+
Modifier and Type | +Method and Description | +
---|---|
TCPClientConnection |
+getClient()
+Returns the disconnected client.
+ |
+
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public ClientIsDisconnectedException(TCPClientConnection client)+
public TCPClientConnection getClient()+
public class OutgoingPacketFailedException
+extends java.lang.Exception
+Constructor and Description | +
---|
OutgoingPacketFailedException(OutgoingTCPClientConnectionPacket packet) |
+
Modifier and Type | +Method and Description | +
---|---|
OutgoingTCPClientConnectionPacket |
+getPacket()
+Returns the failed packet.
+ |
+
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public OutgoingPacketFailedException(OutgoingTCPClientConnectionPacket packet)+
public OutgoingTCPClientConnectionPacket getPacket()+
Package | +Description | +
---|---|
Extasys.Network.TCP.Server | ++ |
Extasys.Network.TCP.Server.Listener | ++ |
Modifier and Type | +Method and Description | +
---|---|
void |
+ExtasysTCPServer.ReplyToSender(byte[] bytes,
+ int offset,
+ int length,
+ TCPClientConnection sender)
+Send data to a client.
+ |
+
void |
+ExtasysTCPServer.ReplyToSender(java.lang.String data,
+ TCPClientConnection sender)
+Send data to a client.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+TCPClientConnection.SendData(byte[] bytes,
+ int offset,
+ int length)
+Send data to client.
+ |
+
void |
+TCPClientConnection.SendData(java.lang.String data)
+Send data to client.
+ |
+
Package | +Description | +
---|---|
Extasys.Network.TCP.Server | ++ |
Extasys.Network.TCP.Server.Listener | ++ |
Extasys.Network.TCP.Server.Listener.Packets | ++ |
Modifier and Type | +Method and Description | +
---|---|
void |
+ExtasysTCPServer.ReplyToSender(byte[] bytes,
+ int offset,
+ int length,
+ TCPClientConnection sender)
+Send data to a client.
+ |
+
void |
+ExtasysTCPServer.ReplyToSender(java.lang.String data,
+ TCPClientConnection sender)
+Send data to a client.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+TCPClientConnection.SendData(byte[] bytes,
+ int offset,
+ int length)
+Send data to client.
+ |
+
void |
+TCPClientConnection.SendData(java.lang.String data)
+Send data to client.
+ |
+
Constructor and Description | +
---|
OutgoingTCPClientConnectionPacket(TCPClientConnection client,
+ byte[] bytes,
+ int offset,
+ int length,
+ OutgoingTCPClientConnectionPacket previousPacket)
+Constructs a new outgoing packet for an existing TCP client connection.
+ |
+
Exception | +Description | +
---|---|
ClientIsDisconnectedException | ++ |
OutgoingPacketFailedException | ++ |
Package | +Description | +
---|---|
Extasys.Network.TCP.Server | ++ |
Extasys.Network.TCP.Server.Listener | ++ |
Extasys.Network.TCP.Server.Listener.Packets | ++ |
Class and Description | +
---|
ClientIsDisconnectedException | +
OutgoingPacketFailedException | +
Class and Description | +
---|
ClientIsDisconnectedException | +
OutgoingPacketFailedException | +
Class and Description | +
---|
OutgoingPacketFailedException | +
public class IncomingTCPClientConnectionPacket
+extends java.lang.Object
+implements java.lang.Runnable
+Modifier and Type | +Field and Description | +
---|---|
boolean |
+fCancel |
+
ManualResetEvent |
+fDone |
+
Constructor and Description | +
---|
IncomingTCPClientConnectionPacket(TCPClientConnection client,
+ DataFrame data,
+ IncomingTCPClientConnectionPacket previousPacket)
+Constructs a new incoming packet for an existing TCP client connection.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+Cancel()
+Cancel this incoming packet.
+ |
+
DataFrame |
+getData()
+Returns the data of this packet.
+ |
+
void |
+run() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ManualResetEvent fDone+
public boolean fCancel+
public IncomingTCPClientConnectionPacket(TCPClientConnection client, + DataFrame data, + IncomingTCPClientConnectionPacket previousPacket)+
client
- is the client where this message belongs to.data
- is a DataFrame class.previousPacket
- is the previous incoming message of the client.public void Cancel()+
public void run()+
run
in interface java.lang.Runnable
public DataFrame getData()+
public class MessageCollectorTCPClientConnectionPacket
+extends java.lang.Object
+implements java.lang.Runnable
+Modifier and Type | +Field and Description | +
---|---|
boolean |
+fCancel |
+
ManualResetEvent |
+fDone |
+
Constructor and Description | +
---|
MessageCollectorTCPClientConnectionPacket(TCPClientConnection client,
+ byte[] data,
+ MessageCollectorTCPClientConnectionPacket previousPacket)
+Constructs a new (incoming) message collector packet.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+Cancel()
+Cancel this message collector packet.
+ |
+
byte[] |
+getData()
+Returns the data of this packet.
+ |
+
void |
+run() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ManualResetEvent fDone+
public boolean fCancel+
public MessageCollectorTCPClientConnectionPacket(TCPClientConnection client, + byte[] data, + MessageCollectorTCPClientConnectionPacket previousPacket)+
client
- is the packets TCPClientConnection.data
- is the string received.previousPacket
- is the previous message collector packet of the TCPClientConnection.public void Cancel()+
public void run()+
run
in interface java.lang.Runnable
public byte[] getData()+
public class OutgoingTCPClientConnectionPacket
+extends java.lang.Object
+implements java.lang.Runnable
+Modifier and Type | +Field and Description | +
---|---|
boolean |
+fCancel |
+
ManualResetEvent |
+fDone |
+
Constructor and Description | +
---|
OutgoingTCPClientConnectionPacket(TCPClientConnection client,
+ byte[] bytes,
+ int offset,
+ int length,
+ OutgoingTCPClientConnectionPacket previousPacket)
+Constructs a new outgoing packet for an existing TCP client connection.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+Cancel()
+Cancel this outgoing packet.
+ |
+
byte[] |
+getBytes()
+Returns the byte array of this packet.
+ |
+
int |
+getLength()
+Returns the number of bytes to send from this packet.
+ |
+
int |
+getOffset()
+Returns the offset of this packet.
+ |
+
void |
+run() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ManualResetEvent fDone+
public boolean fCancel+
public OutgoingTCPClientConnectionPacket(TCPClientConnection client, + byte[] bytes, + int offset, + int length, + OutgoingTCPClientConnectionPacket previousPacket) + throws OutgoingPacketFailedException+
client
- is the client where this message belongs to.bytes
- is the byte array to be sent.offset
- is the position in the data buffer at witch to begin
+ sending.length
- is the number of the bytes to be send.previousPacket
- is the previous outgoing packet of the client.OutgoingPacketFailedException
public void Cancel()+
public void run()+
run
in interface java.lang.Runnable
public byte[] getBytes()+
public int getOffset()+
public int getLength()+
Package | +Description | +
---|---|
Extasys.Network.TCP.Server.Listener | ++ |
Extasys.Network.TCP.Server.Listener.Packets | ++ |
Modifier and Type | +Field and Description | +
---|---|
IncomingTCPClientConnectionPacket |
+TCPClientConnection.fLastIncomingPacket |
+
Constructor and Description | +
---|
IncomingTCPClientConnectionPacket(TCPClientConnection client,
+ DataFrame data,
+ IncomingTCPClientConnectionPacket previousPacket)
+Constructs a new incoming packet for an existing TCP client connection.
+ |
+
Package | +Description | +
---|---|
Extasys.Network.TCP.Server.Listener | ++ |
Extasys.Network.TCP.Server.Listener.Packets | ++ |
Modifier and Type | +Field and Description | +
---|---|
MessageCollectorTCPClientConnectionPacket |
+TCPClientConnection.fLastMessageCollectorPacket |
+
Constructor and Description | +
---|
MessageCollectorTCPClientConnectionPacket(TCPClientConnection client,
+ byte[] data,
+ MessageCollectorTCPClientConnectionPacket previousPacket)
+Constructs a new (incoming) message collector packet.
+ |
+
Package | +Description | +
---|---|
Extasys.Network.TCP.Server.Listener | ++ |
Extasys.Network.TCP.Server.Listener.Exceptions | ++ |
Extasys.Network.TCP.Server.Listener.Packets | ++ |
Modifier and Type | +Field and Description | +
---|---|
OutgoingTCPClientConnectionPacket |
+TCPClientConnection.fLastOugoingPacket |
+
Modifier and Type | +Method and Description | +
---|---|
OutgoingTCPClientConnectionPacket |
+OutgoingPacketFailedException.getPacket()
+Returns the failed packet.
+ |
+
Constructor and Description | +
---|
OutgoingPacketFailedException(OutgoingTCPClientConnectionPacket packet) |
+
Constructor and Description | +
---|
OutgoingTCPClientConnectionPacket(TCPClientConnection client,
+ byte[] bytes,
+ int offset,
+ int length,
+ OutgoingTCPClientConnectionPacket previousPacket)
+Constructs a new outgoing packet for an existing TCP client connection.
+ |
+
Class | +Description | +
---|---|
IncomingTCPClientConnectionPacket | ++ |
MessageCollectorTCPClientConnectionPacket | ++ |
OutgoingTCPClientConnectionPacket | ++ |
Package | +Description | +
---|---|
Extasys.Network.TCP.Server.Listener | ++ |
Extasys.Network.TCP.Server.Listener.Exceptions | ++ |
Extasys.Network.TCP.Server.Listener.Packets | ++ |
Class and Description | +
---|
IncomingTCPClientConnectionPacket | +
MessageCollectorTCPClientConnectionPacket | +
OutgoingTCPClientConnectionPacket | +
Class and Description | +
---|
OutgoingTCPClientConnectionPacket | +
Class and Description | +
---|
IncomingTCPClientConnectionPacket | +
MessageCollectorTCPClientConnectionPacket | +
OutgoingTCPClientConnectionPacket | +
public class TCPClientConnection
+extends java.lang.Object
+Modifier and Type | +Field and Description | +
---|---|
protected boolean |
+fActive |
+
long |
+fBytesIn |
+
long |
+fBytesOut |
+
java.net.Socket |
+fConnection |
+
java.io.InputStream |
+fInput |
+
protected boolean |
+fIsConnected |
+
IncomingTCPClientConnectionPacket |
+fLastIncomingPacket |
+
MessageCollectorTCPClientConnectionPacket |
+fLastMessageCollectorPacket |
+
OutgoingTCPClientConnectionPacket |
+fLastOugoingPacket |
+
ExtasysTCPServer |
+fMyExtasysServer |
+
TCPClientConnectionMessageCollector |
+fMyMessageCollector |
+
java.io.OutputStream |
+fOutput |
+
protected boolean |
+fUseMessageCollector |
+
Constructor and Description | +
---|
TCPClientConnection(java.net.Socket socket,
+ TCPListener myTCPListener,
+ boolean useMessageCollector,
+ java.lang.String ETX) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+DisconnectMe()
+Disconnect this client.
+ |
+
long |
+getBytesIn()
+Return number of bytes received from this client.
+ |
+
long |
+getBytesOut()
+Return number of bytes sent from this client.
+ |
+
java.util.Date |
+getConnectionStartUpDateTime()
+Return connection start up Date-Time.
+ |
+
java.lang.String |
+getIPAddress()
+Return client's IP Address.
+ |
+
ExtasysTCPServer |
+getMyExtasysTCPServer()
+Returns the reference of the Extasys TCP Server of this client.
+ |
+
TCPClientConnectionMessageCollector |
+getMyMessageCollector()
+Returns the message collector of this client.
+ |
+
TCPListener |
+getMyTCPListener()
+Returns the reference of the TCP Listener of this client.
+ |
+
java.lang.String |
+getName()
+Return the client's name.
+ |
+
java.lang.Object |
+getTag()
+Return client's tag.
+ |
+
boolean |
+isActive() |
+
void |
+SendData(byte[] bytes,
+ int offset,
+ int length)
+Send data to client.
+ |
+
void |
+SendData(java.lang.String data)
+Send data to client.
+ |
+
void |
+setName(java.lang.String name)
+Set the client's name.
+ |
+
void |
+setTag(java.lang.Object tag)
+Set client's tag.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public java.net.Socket fConnection+
protected boolean fActive+
protected boolean fIsConnected+
public ExtasysTCPServer fMyExtasysServer+
public java.io.InputStream fInput+
public java.io.OutputStream fOutput+
public long fBytesIn+
public long fBytesOut+
public TCPClientConnectionMessageCollector fMyMessageCollector+
protected boolean fUseMessageCollector+
public IncomingTCPClientConnectionPacket fLastIncomingPacket+
public OutgoingTCPClientConnectionPacket fLastOugoingPacket+
public MessageCollectorTCPClientConnectionPacket fLastMessageCollectorPacket+
public TCPClientConnection(java.net.Socket socket, + TCPListener myTCPListener, + boolean useMessageCollector, + java.lang.String ETX)+
public void SendData(java.lang.String data) + throws ClientIsDisconnectedException, + OutgoingPacketFailedException+
data
- is the string to send.ClientIsDisconnectedException
OutgoingPacketFailedException
public void SendData(byte[] bytes, + int offset, + int length) + throws ClientIsDisconnectedException, + OutgoingPacketFailedException+
bytes
- is the byte array to be send.offset
- is the position in the data buffer at witch to begin
+ sending.length
- is the number of the bytes to be send.ClientIsDisconnectedException
OutgoingPacketFailedException
public void DisconnectMe()+
public TCPListener getMyTCPListener()+
public ExtasysTCPServer getMyExtasysTCPServer()+
public java.lang.String getIPAddress()+
public java.lang.String getName()+
public void setName(java.lang.String name)+
name
- is the client's name.public java.util.Date getConnectionStartUpDateTime()+
public void setTag(java.lang.Object tag)+
tag.
- public java.lang.Object getTag()+
public long getBytesIn()+
public long getBytesOut()+
public boolean isActive()+
public TCPClientConnectionMessageCollector getMyMessageCollector()+
public class TCPListener
+extends java.lang.Object
+Modifier and Type | +Field and Description | +
---|---|
long |
+fBytesIn |
+
long |
+fBytesOut |
+
Constructor and Description | +
---|
TCPListener(java.lang.String name,
+ java.net.InetAddress ipAddress,
+ int port,
+ int maxConnections,
+ int readBufferSize,
+ int connectionTimeOut,
+ int backLog)
+Constructs a new TCP listener.
+ |
+
TCPListener(java.lang.String name,
+ java.net.InetAddress ipAddress,
+ int port,
+ int maxConnections,
+ int readBufferSize,
+ int connectionTimeOut,
+ int backLog,
+ char splitter)
+Constructs a new TCP listener.
+ |
+
TCPListener(java.lang.String name,
+ java.net.InetAddress ipAddress,
+ int port,
+ int maxConnections,
+ int readBufferSize,
+ int connectionTimeOut,
+ int backLog,
+ java.lang.String splitter)
+Constructs a new TCP listener.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+AddClient(TCPClientConnection client)
+Add client to connected clients list.
+ |
+
long |
+getBytesIn()
+Returns the number of bytes received from this TCPListener.
+ |
+
long |
+getBytesOut()
+Returns the number of bytes sent from this TCPListener.
+ |
+
java.util.Hashtable |
+getConnectedClients()
+Returns a Hashtable with the connected clients of this listener.
+ |
+
int |
+getConnectionTimeOut()
+Returns the connections time-out in milliseconds of this listener.
+ |
+
java.net.InetAddress |
+getIPAddress()
+Returns listener's IP address.
+ |
+
int |
+getMaxConnections()
+Returns allowed maximum connections.
+ |
+
java.lang.String |
+getMessageSplitter()
+Returns message collector's splitter in string format.
+ |
+
ExtasysTCPServer |
+getMyExtasysTCPServer()
+Returns a reference of this listener's main Extasys TCP server.
+ |
+
java.lang.String |
+getName()
+Return's this listener's name.
+ |
+
int |
+getPort()
+Returns listener's port.
+ |
+
int |
+getReadBufferSize()
+Returns read buffer size in bytes for each client connection of this
+ TCPListener.
+ |
+
java.net.ServerSocket |
+getServerSocket()
+Returns TCP listener's ServerSocket.
+ |
+
boolean |
+isActive()
+Returns the active state of this TCPListener.
+ |
+
boolean |
+isMessageCollectorInUse()
+Returns the active state of this listener's message collector.
+ |
+
void |
+RemoveClient(java.lang.String ipAddress)
+Remove client from connected clients list.
+ |
+
void |
+ReplyToAll(byte[] bytes,
+ int offset,
+ int length)
+Send data to all connected clients.
+ |
+
void |
+ReplyToAll(java.lang.String data)
+Send data to all connected clients.
+ |
+
void |
+ReplyToAllExceptSender(byte[] bytes,
+ int offset,
+ int length,
+ TCPClientConnection sender)
+Send data to all connected clients excepts sender.
+ |
+
void |
+ReplyToAllExceptSender(java.lang.String data,
+ TCPClientConnection sender)
+Send data to all connected clients excepts sender.
+ |
+
void |
+setConnectionTimeOut(int value)
+Set the connections time-out in milliseconds of this listener.
+ |
+
void |
+setMaxConnections(int value)
+Set the maximum allowed connections of this listener.
+ |
+
void |
+setMyExtasysTCPServer(ExtasysTCPServer server)
+Set my Extasys TCP server.
+ |
+
void |
+setReadBufferSize(int value)
+Set read buffer size in bytes for each client connection of this
+ TCPListener.
+ |
+
void |
+Start()
+Start or restart the TCPListener.
+ |
+
void |
+Stop()
+Stop the TCP listener.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public long fBytesIn+
public long fBytesOut+
public TCPListener(java.lang.String name, + java.net.InetAddress ipAddress, + int port, + int maxConnections, + int readBufferSize, + int connectionTimeOut, + int backLog)+
name
- is the listener's name.ipAddress
- is the listener's IP Address.port
- is the listener's port.maxConnections
- is the listener's maximum connections limit.readBufferSize
- is the listener's each connection read buffer size
+ in bytes.connectionTimeOut
- is the listener's connections time-out time in
+ milliseconds.backLog
- is the number of outstanding connection requests this
+ listener can have.public TCPListener(java.lang.String name, + java.net.InetAddress ipAddress, + int port, + int maxConnections, + int readBufferSize, + int connectionTimeOut, + int backLog, + char splitter)+
name
- is the listener's name.ipAddress
- is the listener's IP Address.port
- is the listener's port.maxConnections
- is the listener's maximum allowed connections..readBufferSize
- is the listener's each connection read buffer size
+ in bytes.connectionTimeOut
- is the listener's connections time-out in
+ milliseconds. Set to 0 for no time-outbackLog
- is the number of outstanding connection requests this
+ listener can have.splitter
- is the message splitter.public TCPListener(java.lang.String name, + java.net.InetAddress ipAddress, + int port, + int maxConnections, + int readBufferSize, + int connectionTimeOut, + int backLog, + java.lang.String splitter)+
name
- is the listener's name.ipAddress
- is the listener's IP Address.port
- is the listener's port.maxConnections
- is the listener's maximum allowed connections..readBufferSize
- is the listener's each connection read buffer size
+ in bytes.connectionTimeOut
- is the listener's connections time-out in
+ milliseconds. Set to 0 for no time-outbackLog
- is the number of outstanding connection requests this
+ listener can have.splitter
- is the message splitter.public void Start() + throws java.io.IOException, + java.lang.Exception+
java.io.IOException
java.lang.Exception
public void Stop()+
public void AddClient(TCPClientConnection client)+
client
- is the client object to add.public void RemoveClient(java.lang.String ipAddress)+
ipAddress
- is the client's IP address.public void ReplyToAll(java.lang.String data)+
data
- is the string to be send.public void ReplyToAll(byte[] bytes, + int offset, + int length)+
bytes
- is the byte array to be send.offset
- is the position in the data buffer at witch to begin
+ sending.length
- is the number of the bytes to be send.public void ReplyToAllExceptSender(java.lang.String data, + TCPClientConnection sender)+
data
- is the string to be send.sender
- is the TCP client exception.public void ReplyToAllExceptSender(byte[] bytes, + int offset, + int length, + TCPClientConnection sender)+
bytes
- is the byte array to be send.offset
- is the position in the data buffer at witch to begin
+ sending.length
- is the number of the bytes to be send.sender
- is the TCP client exception.public java.net.ServerSocket getServerSocket()+
public void setMyExtasysTCPServer(ExtasysTCPServer server)+
server
- is the ExtasysTCPServer main reference at witch this
+ TCPListener belongs.public ExtasysTCPServer getMyExtasysTCPServer()+
public boolean isActive()+
public java.lang.String getName()+
public java.net.InetAddress getIPAddress()+
public int getPort()+
public java.util.Hashtable getConnectedClients()+
public int getMaxConnections()+
public void setMaxConnections(int value)+
value
- is the maximum allowed connections of this listener.public int getReadBufferSize()+
public void setReadBufferSize(int value)+
value
- is the read buffer size in bytes.public int getConnectionTimeOut()+
public void setConnectionTimeOut(int value)+
value
- is the connections time-out in milliseconds of this
+ listener.public long getBytesIn()+
public long getBytesOut()+
public boolean isMessageCollectorInUse()+
public java.lang.String getMessageSplitter()+
public class TCPListenerThread
+extends java.lang.Object
+implements java.lang.Runnable
+Constructor and Description | +
---|
TCPListenerThread(java.net.ServerSocket socket,
+ TCPListener myListener) |
+
public TCPListenerThread(java.net.ServerSocket socket, + TCPListener myListener)+
public class TCPClientConnectionMessageCollector
+extends java.lang.Object
+Constructor and Description | +
---|
TCPClientConnectionMessageCollector(TCPClientConnection myClient,
+ char splitter) |
+
TCPClientConnectionMessageCollector(TCPClientConnection myClient,
+ java.lang.String splitter) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+AppendData(byte[] bytes) |
+
void |
+Dispose() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public TCPClientConnectionMessageCollector(TCPClientConnection myClient, + char splitter)+
public TCPClientConnectionMessageCollector(TCPClientConnection myClient, + java.lang.String splitter)+
Package | +Description | +
---|---|
Extasys.Network.TCP.Server.Listener | ++ |
Modifier and Type | +Field and Description | +
---|---|
TCPClientConnectionMessageCollector |
+TCPClientConnection.fMyMessageCollector |
+
Modifier and Type | +Method and Description | +
---|---|
TCPClientConnectionMessageCollector |
+TCPClientConnection.getMyMessageCollector()
+Returns the message collector of this client.
+ |
+
Class | +Description | +
---|---|
TCPClientConnectionMessageCollector | ++ |
Package | +Description | +
---|---|
Extasys.Network.TCP.Server.Listener | ++ |
Class and Description | +
---|
TCPClientConnectionMessageCollector | +
Package | +Description | +
---|---|
Extasys.Network.TCP.Server | ++ |
Extasys.Network.TCP.Server.Listener | ++ |
Extasys.Network.TCP.Server.Listener.Exceptions | ++ |
Extasys.Network.TCP.Server.Listener.Packets | ++ |
Extasys.Network.TCP.Server.Listener.Tools | ++ |
Modifier and Type | +Method and Description | +
---|---|
void |
+ExtasysTCPServer.OnClientConnect(TCPClientConnection client)
+A client connects to this server.
+ |
+
void |
+ExtasysTCPServer.OnClientDisconnect(TCPClientConnection client)
+A client disconnects from this server.
+ |
+
void |
+ExtasysTCPServer.OnDataReceive(TCPClientConnection sender,
+ DataFrame data)
+Server is receiving data from a client connection.
+ |
+
void |
+ExtasysTCPServer.ReplyToAllExceptSender(byte[] bytes,
+ int offset,
+ int length,
+ TCPClientConnection sender)
+Send data to all connected clients excepts sender.
+ |
+
void |
+ExtasysTCPServer.ReplyToAllExceptSender(java.lang.String data,
+ TCPClientConnection sender)
+Send data to all connected clients excepts sender.
+ |
+
void |
+ExtasysTCPServer.ReplyToSender(byte[] bytes,
+ int offset,
+ int length,
+ TCPClientConnection sender)
+Send data to a client.
+ |
+
void |
+ExtasysTCPServer.ReplyToSender(java.lang.String data,
+ TCPClientConnection sender)
+Send data to a client.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+TCPListener.AddClient(TCPClientConnection client)
+Add client to connected clients list.
+ |
+
void |
+TCPListener.ReplyToAllExceptSender(byte[] bytes,
+ int offset,
+ int length,
+ TCPClientConnection sender)
+Send data to all connected clients excepts sender.
+ |
+
void |
+TCPListener.ReplyToAllExceptSender(java.lang.String data,
+ TCPClientConnection sender)
+Send data to all connected clients excepts sender.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
TCPClientConnection |
+ClientIsDisconnectedException.getClient()
+Returns the disconnected client.
+ |
+
Constructor and Description | +
---|
ClientIsDisconnectedException(TCPClientConnection client) |
+
Constructor and Description | +
---|
IncomingTCPClientConnectionPacket(TCPClientConnection client,
+ DataFrame data,
+ IncomingTCPClientConnectionPacket previousPacket)
+Constructs a new incoming packet for an existing TCP client connection.
+ |
+
MessageCollectorTCPClientConnectionPacket(TCPClientConnection client,
+ byte[] data,
+ MessageCollectorTCPClientConnectionPacket previousPacket)
+Constructs a new (incoming) message collector packet.
+ |
+
OutgoingTCPClientConnectionPacket(TCPClientConnection client,
+ byte[] bytes,
+ int offset,
+ int length,
+ OutgoingTCPClientConnectionPacket previousPacket)
+Constructs a new outgoing packet for an existing TCP client connection.
+ |
+
Constructor and Description | +
---|
TCPClientConnectionMessageCollector(TCPClientConnection myClient,
+ char splitter) |
+
TCPClientConnectionMessageCollector(TCPClientConnection myClient,
+ java.lang.String splitter) |
+
Package | +Description | +
---|---|
Extasys.Network.TCP.Server | ++ |
Extasys.Network.TCP.Server.Listener | ++ |
Modifier and Type | +Method and Description | +
---|---|
TCPListener |
+ExtasysTCPServer.AddListener(java.lang.String name,
+ java.net.InetAddress ipAddress,
+ int port,
+ int maxConnections,
+ int readBufferSize,
+ int connectionTimeOut,
+ int backLog)
+Add a new listener to this server.
+ |
+
TCPListener |
+ExtasysTCPServer.AddListener(java.lang.String name,
+ java.net.InetAddress ipAddress,
+ int port,
+ int maxConnections,
+ int readBufferSize,
+ int connectionTimeOut,
+ int backLog,
+ char splitter)
+Add new listener with message collector (character splitter).
+ |
+
TCPListener |
+ExtasysTCPServer.AddListener(java.lang.String name,
+ java.net.InetAddress ipAddress,
+ int port,
+ int maxConnections,
+ int readBufferSize,
+ int connectionTimeOut,
+ int backLog,
+ java.lang.String splitter)
+Add new listener with message collector (string splitter).
+ |
+
Modifier and Type | +Method and Description | +
---|---|
TCPListener |
+TCPClientConnection.getMyTCPListener()
+Returns the reference of the TCP Listener of this client.
+ |
+
Constructor and Description | +
---|
TCPClientConnection(java.net.Socket socket,
+ TCPListener myTCPListener,
+ boolean useMessageCollector,
+ java.lang.String ETX) |
+
TCPListenerThread(java.net.ServerSocket socket,
+ TCPListener myListener) |
+
Class | +Description | +
---|---|
TCPClientConnection | ++ |
TCPListener | ++ |
TCPListenerThread | ++ |
Package | +Description | +
---|---|
Extasys.Network.TCP.Server | ++ |
Extasys.Network.TCP.Server.Listener | ++ |
Extasys.Network.TCP.Server.Listener.Exceptions | ++ |
Extasys.Network.TCP.Server.Listener.Packets | ++ |
Extasys.Network.TCP.Server.Listener.Tools | ++ |
Class and Description | +
---|
TCPClientConnection | +
TCPListener | +
Class and Description | +
---|
TCPClientConnection | +
TCPListener | +
Class and Description | +
---|
TCPClientConnection | +
Class and Description | +
---|
TCPClientConnection | +
Class and Description | +
---|
TCPClientConnection | +
Package | +Description | +
---|---|
Extasys.Network.TCP.Server.Listener | ++ |
Modifier and Type | +Field and Description | +
---|---|
ExtasysTCPServer |
+TCPClientConnection.fMyExtasysServer |
+
Modifier and Type | +Method and Description | +
---|---|
ExtasysTCPServer |
+TCPClientConnection.getMyExtasysTCPServer()
+Returns the reference of the Extasys TCP Server of this client.
+ |
+
ExtasysTCPServer |
+TCPListener.getMyExtasysTCPServer()
+Returns a reference of this listener's main Extasys TCP server.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+TCPListener.setMyExtasysTCPServer(ExtasysTCPServer server)
+Set my Extasys TCP server.
+ |
+
Class | +Description | +
---|---|
ExtasysTCPServer | ++ |
Package | +Description | +
---|---|
Extasys.Network.TCP.Server.Listener | ++ |
Class and Description | +
---|
ExtasysTCPServer | +
public class IncomingUDPClientPacket
+extends java.lang.Object
+implements java.lang.Runnable
+Modifier and Type | +Field and Description | +
---|---|
boolean |
+fCancel |
+
ManualResetEvent |
+fDone |
+
Constructor and Description | +
---|
IncomingUDPClientPacket(UDPConnector connector,
+ java.net.DatagramPacket data,
+ IncomingUDPClientPacket previousPacket)
+Constructs a new incoming packet received by a UDP connector.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+Cancel()
+Cancel this incoming packet.
+ |
+
java.net.DatagramPacket |
+getData()
+Returns the DatagramPacket of this incoming UDP packet.
+ |
+
IncomingUDPClientPacket |
+getPreviusPacket()
+Returns the previus incoming packet received by the client.
+ |
+
void |
+run() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ManualResetEvent fDone+
public boolean fCancel+
public IncomingUDPClientPacket(UDPConnector connector, + java.net.DatagramPacket data, + IncomingUDPClientPacket previousPacket)+
UDPConnector
- is the UDP Connector where this message belongs to.data
- is a DatagramPacket.previousPacket
- is the previous incoming message of the UDP Connector.public void Cancel()+
public void run()+
run
in interface java.lang.Runnable
public java.net.DatagramPacket getData()+
public IncomingUDPClientPacket getPreviusPacket()+
public class OutgoingUDPClientPacket
+extends java.lang.Object
+implements java.lang.Runnable
+Modifier and Type | +Field and Description | +
---|---|
boolean |
+fCancel |
+
ManualResetEvent |
+fDone |
+
Constructor and Description | +
---|
OutgoingUDPClientPacket(UDPConnector connector,
+ java.net.DatagramPacket data,
+ OutgoingUDPClientPacket previousPacket)
+Constructs a new outgoing packet for an existing UDP Connector.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+Cancel()
+Cancel this outgoing packet.
+ |
+
java.net.DatagramPacket |
+getData()
+Returns the DatagramPacket of this outgoing UDP packet.
+ |
+
OutgoingUDPClientPacket |
+getPreviusPacket()
+Returns the previus outgoing packet of the client.
+ |
+
void |
+run() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ManualResetEvent fDone+
public boolean fCancel+
public OutgoingUDPClientPacket(UDPConnector connector, + java.net.DatagramPacket data, + OutgoingUDPClientPacket previousPacket)+
UDPConnector
- is the UDPConnector where this message belongs to.data
- is the outgoing DatagramPacket.previousPacket
- is the previous outgoing packet of the UDPConnector.public void Cancel()+
public void run()+
run
in interface java.lang.Runnable
public java.net.DatagramPacket getData()+
public OutgoingUDPClientPacket getPreviusPacket()+
Package | +Description | +
---|---|
Extasys.Network.UDP.Client.Connectors | ++ |
Extasys.Network.UDP.Client.Connectors.Packets | ++ |
Modifier and Type | +Field and Description | +
---|---|
IncomingUDPClientPacket |
+UDPConnector.fLastIncomingPacket |
+
Modifier and Type | +Method and Description | +
---|---|
IncomingUDPClientPacket |
+IncomingUDPClientPacket.getPreviusPacket()
+Returns the previus incoming packet received by the client.
+ |
+
Constructor and Description | +
---|
IncomingUDPClientPacket(UDPConnector connector,
+ java.net.DatagramPacket data,
+ IncomingUDPClientPacket previousPacket)
+Constructs a new incoming packet received by a UDP connector.
+ |
+
Package | +Description | +
---|---|
Extasys.Network.UDP.Client.Connectors | ++ |
Extasys.Network.UDP.Client.Connectors.Packets | ++ |
Modifier and Type | +Field and Description | +
---|---|
OutgoingUDPClientPacket |
+UDPConnector.fLastOutgoingPacket |
+
Modifier and Type | +Method and Description | +
---|---|
OutgoingUDPClientPacket |
+OutgoingUDPClientPacket.getPreviusPacket()
+Returns the previus outgoing packet of the client.
+ |
+
Constructor and Description | +
---|
OutgoingUDPClientPacket(UDPConnector connector,
+ java.net.DatagramPacket data,
+ OutgoingUDPClientPacket previousPacket)
+Constructs a new outgoing packet for an existing UDP Connector.
+ |
+
Class | +Description | +
---|---|
IncomingUDPClientPacket | ++ |
OutgoingUDPClientPacket | ++ |
Package | +Description | +
---|---|
Extasys.Network.UDP.Client.Connectors | ++ |
Extasys.Network.UDP.Client.Connectors.Packets | ++ |
Class and Description | +
---|
IncomingUDPClientPacket | +
OutgoingUDPClientPacket | +
Class and Description | +
---|
IncomingUDPClientPacket | +
OutgoingUDPClientPacket | +
public class UDPConnector
+extends java.lang.Object
+Modifier and Type | +Field and Description | +
---|---|
long |
+fBytesIn |
+
long |
+fBytesOut |
+
IncomingUDPClientPacket |
+fLastIncomingPacket |
+
OutgoingUDPClientPacket |
+fLastOutgoingPacket |
+
java.net.DatagramSocket |
+fSocket |
+
Constructor and Description | +
---|
UDPConnector(ExtasysUDPClient myClient,
+ java.lang.String name,
+ int readBufferSize,
+ int readTimeOut,
+ java.net.InetAddress serverIP,
+ int serverPort)
+Constructs a new UDP Connector.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
long |
+getBytesIn()
+Return the number of bytes received from this connector.
+ |
+
long |
+getBytesOut()
+Return the number of bytes send from this connector.
+ |
+
ExtasysUDPClient |
+getMyExtasysUDPClient()
+Returns the main Extasys UDP Client of the connector.
+ |
+
java.lang.String |
+getName()
+Returns the name of this connector.
+ |
+
int |
+getReadBufferSize()
+Returns the read buffer size of the connection.
+ |
+
int |
+getReadTimeOut()
+Returns the maximum time in milliseconds in wich a datagram packet can be
+ received.
+ |
+
boolean |
+isActive() |
+
void |
+SendData(byte[] bytes,
+ int offset,
+ int length)
+Send data to host.
+ |
+
void |
+SendData(java.lang.String data)
+Send data to all host.
+ |
+
void |
+Start()
+Start the udp connector.
+ |
+
void |
+Stop()
+Stop the udp connector.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public java.net.DatagramSocket fSocket+
public long fBytesIn+
public long fBytesOut+
public IncomingUDPClientPacket fLastIncomingPacket+
public OutgoingUDPClientPacket fLastOutgoingPacket+
public UDPConnector(ExtasysUDPClient myClient, + java.lang.String name, + int readBufferSize, + int readTimeOut, + java.net.InetAddress serverIP, + int serverPort)+
myClient
- is the connectors main Extasys UDP Client.name
- is the name of the connector.readBufferSize
- is the maximum number of bytes the socket can read
+ at a time.readTimeOut
- is the maximum time in milliseconds in wich a datagram
+ packet can be received. Set to 0 for no time-out.serverIP
- is the server's ip address the connector will use to send
+ data.serverPort
- is the server's udp port.public void Start() + throws java.net.SocketException, + java.lang.Exception+
java.net.SocketException
java.lang.Exception
public void Stop()+
public void SendData(java.lang.String data) + throws java.io.IOException+
data
- is the string to be send.java.io.IOException
public void SendData(byte[] bytes, + int offset, + int length) + throws java.io.IOException+
bytes
- is the byte array to be send.offset
- is the position in the data buffer at witch to begin
+ sending.length
- is the number of the bytes to be send.java.io.IOException
public boolean isActive()+
public ExtasysUDPClient getMyExtasysUDPClient()+
public java.lang.String getName()+
public int getReadBufferSize()+
public int getReadTimeOut()+
public long getBytesIn()+
public long getBytesOut()+
Package | +Description | +
---|---|
Extasys.Network.UDP.Client | ++ |
Extasys.Network.UDP.Client.Connectors.Packets | ++ |
Modifier and Type | +Method and Description | +
---|---|
UDPConnector |
+ExtasysUDPClient.AddConnector(java.lang.String name,
+ int readBufferSize,
+ int readTimeOut,
+ java.net.InetAddress serverIP,
+ int serverPort)
+Add a new connector to this client.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+ExtasysUDPClient.OnDataReceive(UDPConnector connector,
+ java.net.DatagramPacket packet) |
+
Constructor and Description | +
---|
IncomingUDPClientPacket(UDPConnector connector,
+ java.net.DatagramPacket data,
+ IncomingUDPClientPacket previousPacket)
+Constructs a new incoming packet received by a UDP connector.
+ |
+
OutgoingUDPClientPacket(UDPConnector connector,
+ java.net.DatagramPacket data,
+ OutgoingUDPClientPacket previousPacket)
+Constructs a new outgoing packet for an existing UDP Connector.
+ |
+
Class | +Description | +
---|---|
UDPConnector | ++ |
Package | +Description | +
---|---|
Extasys.Network.UDP.Client | ++ |
Extasys.Network.UDP.Client.Connectors.Packets | ++ |
Class and Description | +
---|
UDPConnector | +
Class and Description | +
---|
UDPConnector | +
public class ExtasysUDPClient
+extends java.lang.Object
+Constructor and Description | +
---|
ExtasysUDPClient(java.lang.String name,
+ java.lang.String description,
+ int corePoolSize,
+ int maximumPoolSize)
+Constructs a new Extasys UDP Client.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
UDPConnector |
+AddConnector(java.lang.String name,
+ int readBufferSize,
+ int readTimeOut,
+ java.net.InetAddress serverIP,
+ int serverPort)
+Add a new connector to this client.
+ |
+
void |
+Dispose()
+Dispose the client.
+ |
+
long |
+getBytesIn()
+Returns the total bytes received.
+ |
+
long |
+getBytesOut()
+Returns the total bytes send.
+ |
+
java.util.ArrayList |
+getConnectors()
+Return ArrayList with the client's connectors.
+ |
+
java.lang.String |
+getDescription()
+Return the description of the client.
+ |
+
java.util.concurrent.ThreadPoolExecutor |
+getMyThreadPool()
+Return the client's Thread Pool.
+ |
+
java.lang.String |
+getName()
+Return the name of the client.
+ |
+
void |
+OnDataReceive(UDPConnector connector,
+ java.net.DatagramPacket packet) |
+
void |
+RemoveConnector(java.lang.String name)
+Stop and remove a connector.
+ |
+
void |
+SendData(byte[] bytes,
+ int offset,
+ int length)
+Send data from all connector's to all hosts.
+ |
+
void |
+SendData(java.lang.String data)
+Send data from all connector's to all hosts.
+ |
+
void |
+Start()
+Start or restart the client.
+ |
+
void |
+Stop()
+Stop the client.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ExtasysUDPClient(java.lang.String name, + java.lang.String description, + int corePoolSize, + int maximumPoolSize)+
name
- is the name of the client.description
- is the description of the client.corePoolSize
- is the number of threads to keep in the pool, even if
+ they are idle.maximumPoolSize
- is the maximum number of threads to allow in the
+ pool.public UDPConnector AddConnector(java.lang.String name, + int readBufferSize, + int readTimeOut, + java.net.InetAddress serverIP, + int serverPort)+
name
- is the name of the connector.readBufferSize
- is the maximum number of bytes the connector can
+ read at a time.readTimeOut
- is the maximum time in milliseconds the connector can
+ use to read incoming data.serverIP
- is the server's ip address the connector will use to send
+ data.serverPort
- is the server's udp port.public void RemoveConnector(java.lang.String name)+
name
- is the name of the connector.public void SendData(java.lang.String data) + throws java.io.IOException+
data
- is the string to be send.java.io.IOException
public void SendData(byte[] bytes, + int offset, + int length) + throws java.io.IOException+
bytes
- is the byte array to be send.offset
- is the position in the data buffer at witch to begin
+ sending.length
- is the number of the bytes to be send.java.io.IOException
public void Start() + throws java.net.SocketException, + java.lang.Exception+
java.net.SocketException
java.lang.Exception
public void Stop()+
public void Dispose()+
public void OnDataReceive(UDPConnector connector, + java.net.DatagramPacket packet)+
public java.lang.String getName()+
public java.lang.String getDescription()+
public java.util.ArrayList getConnectors()+
public java.util.concurrent.ThreadPoolExecutor getMyThreadPool()+
public long getBytesIn()+
public long getBytesOut()+
Package | +Description | +
---|---|
Extasys.Network.UDP.Client.Connectors | ++ |
Modifier and Type | +Method and Description | +
---|---|
ExtasysUDPClient |
+UDPConnector.getMyExtasysUDPClient()
+Returns the main Extasys UDP Client of the connector.
+ |
+
Constructor and Description | +
---|
UDPConnector(ExtasysUDPClient myClient,
+ java.lang.String name,
+ int readBufferSize,
+ int readTimeOut,
+ java.net.InetAddress serverIP,
+ int serverPort)
+Constructs a new UDP Connector.
+ |
+
Class | +Description | +
---|---|
ExtasysUDPClient | ++ |
Package | +Description | +
---|---|
Extasys.Network.UDP.Client.Connectors | ++ |
Class and Description | +
---|
ExtasysUDPClient | +
public class ExtasysUDPServer
+extends java.lang.Object
+Modifier and Type | +Field and Description | +
---|---|
java.util.concurrent.ThreadPoolExecutor |
+fMyThreadPool |
+
Constructor and Description | +
---|
ExtasysUDPServer(java.lang.String name,
+ java.lang.String description,
+ int corePoolSize,
+ int maximumPoolSize)
+Constructs a new Extasys UDP Server.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
UDPListener |
+AddListener(java.lang.String name,
+ java.net.InetAddress ipAddress,
+ int port,
+ int readBufferSize,
+ int readDataTimeOut)
+Add a new listener to this server.
+ |
+
void |
+Dispose()
+Dispose the server.
+ |
+
long |
+getBytesIn()
+Returns the total bytes received from this server.
+ |
+
long |
+getBytesOut()
+Returns the total bytes send from this server.
+ |
+
java.lang.String |
+getDescription()
+Returns the description of this server.
+ |
+
java.util.ArrayList |
+getListeners()
+Returns an ArrayList with this server's tcp listeners.
+ |
+
java.lang.String |
+getName()
+Returns the name of this server.
+ |
+
void |
+OnDataReceive(UDPListener listener,
+ java.net.DatagramPacket packet) |
+
void |
+RemoveListener(java.lang.String name)
+Stops and removes a UDP listener from this server.
+ |
+
void |
+SendData(java.net.DatagramPacket packet)
+Send data.
+ |
+
void |
+Start()
+Start or restart the server.
+ |
+
void |
+Stop()
+Stop the server.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public final java.util.concurrent.ThreadPoolExecutor fMyThreadPool+
public ExtasysUDPServer(java.lang.String name, + java.lang.String description, + int corePoolSize, + int maximumPoolSize)+
name
- is the name of the server.description
- is the description of the server.corePoolSize
- is the number of threads to keep in the pool, even if
+ they are idle.maximumPoolSize
- is the maximum number of threads to allow in the
+ pool.public UDPListener AddListener(java.lang.String name, + java.net.InetAddress ipAddress, + int port, + int readBufferSize, + int readDataTimeOut)+
name
- is the listener's name.ipAddress
- is the listener's IP address.port
- is the listener's udp port.readBufferSize
- is the maximum size of bytes the listener can use
+ to read incoming bytes at a time.readDataTimeOut
- is the maximum time in milliseconds a client can
+ use to send data to the listener.public void RemoveListener(java.lang.String name)+
name
- is the name of the UDP listener.public void SendData(java.net.DatagramPacket packet)+
packet
- is the DatagramPacket to send.public void Start() + throws java.net.SocketException+
java.net.SocketException
public void Stop()+
public void Dispose()+
public void OnDataReceive(UDPListener listener, + java.net.DatagramPacket packet)+
public java.lang.String getName()+
public java.lang.String getDescription()+
public java.util.ArrayList getListeners()+
public long getBytesIn()+
public long getBytesOut()+
public class IncomingUDPServerPacket
+extends java.lang.Object
+implements java.lang.Runnable
+Constructor and Description | +
---|
IncomingUDPServerPacket(UDPListener listener,
+ java.net.DatagramPacket packet,
+ IncomingUDPServerPacket previousPacket)
+Constructs a new incoming UDP packet.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+Cancel()
+Cancel this incoming packet.
+ |
+
java.net.DatagramPacket |
+getData()
+Returns the DatagramPacket of this incoming UDP packet.
+ |
+
IncomingUDPServerPacket |
+getPreviusPacket()
+Returns the previus incoming packet received by the server.
+ |
+
void |
+run() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public IncomingUDPServerPacket(UDPListener listener, + java.net.DatagramPacket packet, + IncomingUDPServerPacket previousPacket)+
listener
- is the listener caught the message.packet
- is a Datagram packet.previousPacket
- is the previous incoming message of the listener.public void Cancel()+
public void run()+
run
in interface java.lang.Runnable
public java.net.DatagramPacket getData()+
public IncomingUDPServerPacket getPreviusPacket()+
public class OutgoingUDPServerPacket
+extends java.lang.Object
+implements java.lang.Runnable
+Constructor and Description | +
---|
OutgoingUDPServerPacket(UDPListener listener,
+ java.net.DatagramPacket packet,
+ OutgoingUDPServerPacket previousPacket) |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+Cancel() |
+
java.net.DatagramPacket |
+getData()
+Returns the DatagramPacket of this outgoing UDP packet.
+ |
+
OutgoingUDPServerPacket |
+getPreviusPacket()
+Returns the previus outgoing packet of the server.
+ |
+
void |
+run() |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public OutgoingUDPServerPacket(UDPListener listener, + java.net.DatagramPacket packet, + OutgoingUDPServerPacket previousPacket)+
public void Cancel()+
public void run()+
run
in interface java.lang.Runnable
public java.net.DatagramPacket getData()+
public OutgoingUDPServerPacket getPreviusPacket()+
Package | +Description | +
---|---|
Extasys.Network.UDP.Server.Listener | ++ |
Extasys.Network.UDP.Server.Listener.Packets | ++ |
Modifier and Type | +Field and Description | +
---|---|
IncomingUDPServerPacket |
+UDPListener.fLastIncomingPacket |
+
Modifier and Type | +Method and Description | +
---|---|
IncomingUDPServerPacket |
+IncomingUDPServerPacket.getPreviusPacket()
+Returns the previus incoming packet received by the server.
+ |
+
Constructor and Description | +
---|
IncomingUDPServerPacket(UDPListener listener,
+ java.net.DatagramPacket packet,
+ IncomingUDPServerPacket previousPacket)
+Constructs a new incoming UDP packet.
+ |
+
Package | +Description | +
---|---|
Extasys.Network.UDP.Server.Listener | ++ |
Extasys.Network.UDP.Server.Listener.Packets | ++ |
Modifier and Type | +Field and Description | +
---|---|
OutgoingUDPServerPacket |
+UDPListener.fLastOutgoingPacket |
+
Modifier and Type | +Method and Description | +
---|---|
OutgoingUDPServerPacket |
+OutgoingUDPServerPacket.getPreviusPacket()
+Returns the previus outgoing packet of the server.
+ |
+
Constructor and Description | +
---|
OutgoingUDPServerPacket(UDPListener listener,
+ java.net.DatagramPacket packet,
+ OutgoingUDPServerPacket previousPacket) |
+
Class | +Description | +
---|---|
IncomingUDPServerPacket | ++ |
OutgoingUDPServerPacket | ++ |
Package | +Description | +
---|---|
Extasys.Network.UDP.Server.Listener | ++ |
Extasys.Network.UDP.Server.Listener.Packets | ++ |
Class and Description | +
---|
IncomingUDPServerPacket | +
OutgoingUDPServerPacket | +
Class and Description | +
---|
IncomingUDPServerPacket | +
OutgoingUDPServerPacket | +
public class UDPListener
+extends java.lang.Object
+Modifier and Type | +Field and Description | +
---|---|
long |
+fBytesIn |
+
long |
+fBytesOut |
+
IncomingUDPServerPacket |
+fLastIncomingPacket |
+
OutgoingUDPServerPacket |
+fLastOutgoingPacket |
+
java.net.DatagramSocket |
+fSocket |
+
Constructor and Description | +
---|
UDPListener(ExtasysUDPServer myUDPServer,
+ java.lang.String name,
+ java.net.InetAddress ipAddress,
+ int port,
+ int readBufferSize,
+ int readDataTimeOut)
+Constructs a new UDP Listener.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
long |
+getBytesIn()
+Return the number of bytes received from this listener.
+ |
+
long |
+getBytesOut()
+Return the number of bytes send from this listener.
+ |
+
java.net.InetAddress |
+getIPAddress()
+Returns the IP address of this UDP Listener.
+ |
+
ExtasysUDPServer |
+getMyExtasysUDPServer()
+Returns the main Extasys UDP Server of this UDP listener.
+ |
+
java.lang.String |
+getName()
+Returns the name of this UDP Listener.
+ |
+
int |
+getPort()
+Returns the UDP port of this listener.
+ |
+
int |
+getReadBufferSize()
+Returns the read buffer size of this listener.
+ |
+
boolean |
+isActive()
+Returns the active state of this listener.
+ |
+
void |
+SendData(java.net.DatagramPacket packet)
+Send data to udp client.
+ |
+
void |
+Start()
+Start or restart the UDP listener.
+ |
+
void |
+Stop()
+Stop the UDP listener.
+ |
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public java.net.DatagramSocket fSocket+
public long fBytesIn+
public long fBytesOut+
public IncomingUDPServerPacket fLastIncomingPacket+
public OutgoingUDPServerPacket fLastOutgoingPacket+
public UDPListener(ExtasysUDPServer myUDPServer, + java.lang.String name, + java.net.InetAddress ipAddress, + int port, + int readBufferSize, + int readDataTimeOut)+
myUDPServer
- is the udp listener's main UDP server.name
- is the name of the listener.ipAddress
- is the listener's IP address.port
- is the listener's UDP port.readBufferSize
- is the read buffer size of the listener.readDataTimeOut
- is the maximum time in milliseconds in wich a
+ datagram packet can be received. Set to 0 for no time-out.public void Start() + throws java.net.SocketException+
java.net.SocketException
public void Stop()+
public void SendData(java.net.DatagramPacket packet)+
packet
- is the datagram packet to be send.public ExtasysUDPServer getMyExtasysUDPServer()+
public java.lang.String getName()+
public java.net.InetAddress getIPAddress()+
public int getPort()+
public int getReadBufferSize()+
public long getBytesIn()+
public long getBytesOut()+
public boolean isActive()+
Package | +Description | +
---|---|
Extasys.Network.UDP.Server | ++ |
Extasys.Network.UDP.Server.Listener.Packets | ++ |
Modifier and Type | +Method and Description | +
---|---|
UDPListener |
+ExtasysUDPServer.AddListener(java.lang.String name,
+ java.net.InetAddress ipAddress,
+ int port,
+ int readBufferSize,
+ int readDataTimeOut)
+Add a new listener to this server.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+ExtasysUDPServer.OnDataReceive(UDPListener listener,
+ java.net.DatagramPacket packet) |
+
Constructor and Description | +
---|
IncomingUDPServerPacket(UDPListener listener,
+ java.net.DatagramPacket packet,
+ IncomingUDPServerPacket previousPacket)
+Constructs a new incoming UDP packet.
+ |
+
OutgoingUDPServerPacket(UDPListener listener,
+ java.net.DatagramPacket packet,
+ OutgoingUDPServerPacket previousPacket) |
+
Class | +Description | +
---|---|
UDPListener | ++ |
Package | +Description | +
---|---|
Extasys.Network.UDP.Server | ++ |
Extasys.Network.UDP.Server.Listener.Packets | ++ |
Class and Description | +
---|
UDPListener | +
Class and Description | +
---|
UDPListener | +
Package | +Description | +
---|---|
Extasys.Network.UDP.Server.Listener | ++ |
Modifier and Type | +Method and Description | +
---|---|
ExtasysUDPServer |
+UDPListener.getMyExtasysUDPServer()
+Returns the main Extasys UDP Server of this UDP listener.
+ |
+
Constructor and Description | +
---|
UDPListener(ExtasysUDPServer myUDPServer,
+ java.lang.String name,
+ java.net.InetAddress ipAddress,
+ int port,
+ int readBufferSize,
+ int readDataTimeOut)
+Constructs a new UDP Listener.
+ |
+
Class | +Description | +
---|---|
ExtasysUDPServer | ++ |
Package | +Description | +
---|---|
Extasys.Network.UDP.Server.Listener | ++ |
Class and Description | +
---|
ExtasysUDPServer | +
Package | +Description | +
---|---|
Extasys.Network.TCP.Client | ++ |
Extasys.Network.TCP.Client.Connectors.Packets | ++ |
Extasys.Network.TCP.Server | ++ |
Extasys.Network.TCP.Server.Listener.Packets | ++ |
Modifier and Type | +Method and Description | +
---|---|
void |
+ExtasysTCPClient.OnDataReceive(TCPConnector connector,
+ DataFrame data)
+A connector of this client receives data.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
DataFrame |
+IncomingTCPClientPacket.getData()
+Returns the data of this packet.
+ |
+
Constructor and Description | +
---|
IncomingTCPClientPacket(TCPConnector connector,
+ DataFrame data,
+ IncomingTCPClientPacket previousPacket)
+Constructs a new incoming packet received by a TCP connector.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
void |
+ExtasysTCPServer.OnDataReceive(TCPClientConnection sender,
+ DataFrame data)
+Server is receiving data from a client connection.
+ |
+
Modifier and Type | +Method and Description | +
---|---|
DataFrame |
+IncomingTCPClientConnectionPacket.getData()
+Returns the data of this packet.
+ |
+
Constructor and Description | +
---|
IncomingTCPClientConnectionPacket(TCPClientConnection client,
+ DataFrame data,
+ IncomingTCPClientConnectionPacket previousPacket)
+Constructs a new incoming packet for an existing TCP client connection.
+ |
+
Package | +Description | +
---|---|
Extasys.Network.TCP.Client.Connectors.Packets | ++ |
Extasys.Network.TCP.Server.Listener.Packets | ++ |
Extasys.Network.UDP.Client.Connectors.Packets | ++ |
Modifier and Type | +Field and Description | +
---|---|
ManualResetEvent |
+IncomingTCPClientPacket.fDone |
+
ManualResetEvent |
+MessageCollectorTCPClientPacket.fDone |
+
ManualResetEvent |
+OutgoingTCPClientPacket.fDone |
+
Modifier and Type | +Field and Description | +
---|---|
ManualResetEvent |
+IncomingTCPClientConnectionPacket.fDone |
+
ManualResetEvent |
+MessageCollectorTCPClientConnectionPacket.fDone |
+
ManualResetEvent |
+OutgoingTCPClientConnectionPacket.fDone |
+
Modifier and Type | +Field and Description | +
---|---|
ManualResetEvent |
+IncomingUDPClientPacket.fDone |
+
ManualResetEvent |
+OutgoingUDPClientPacket.fDone |
+
Class | +Description | +
---|---|
ByteArrayBuilder | ++ |
DataFrame | ++ |
ExtasysCalendar | ++ |
ManualResetEvent | ++ |
Package | +Description | +
---|---|
Extasys.Network.TCP.Client | ++ |
Extasys.Network.TCP.Client.Connectors.Packets | ++ |
Extasys.Network.TCP.Server | ++ |
Extasys.Network.TCP.Server.Listener.Packets | ++ |
Extasys.Network.UDP.Client.Connectors.Packets | ++ |
Class and Description | +
---|
DataFrame | +
Class and Description | +
---|
DataFrame | +
ManualResetEvent | +
Class and Description | +
---|
DataFrame | +
Class and Description | +
---|
DataFrame | +
ManualResetEvent | +
Class and Description | +
---|
ManualResetEvent | +
The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object
. The interfaces do not inherit from java.lang.Object
.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
++ + diff --git a/Extasys for Java/dist/javadoc/overview-summary.html b/Extasys for Java/dist/javadoc/overview-summary.html new file mode 100644 index 0000000..10ae1d7 --- /dev/null +++ b/Extasys for Java/dist/javadoc/overview-summary.html @@ -0,0 +1,191 @@ + + + + + + +
Package | +Description | +
---|---|
Extasys | ++ |
Extasys.Network.TCP.Client | ++ |
Extasys.Network.TCP.Client.Connectors | ++ |
Extasys.Network.TCP.Client.Connectors.Packets | ++ |
Extasys.Network.TCP.Client.Connectors.Tools | ++ |
Extasys.Network.TCP.Client.Exceptions | ++ |
Extasys.Network.TCP.Server | ++ |
Extasys.Network.TCP.Server.Listener | ++ |
Extasys.Network.TCP.Server.Listener.Exceptions | ++ |
Extasys.Network.TCP.Server.Listener.Packets | ++ |
Extasys.Network.TCP.Server.Listener.Tools | ++ |
Extasys.Network.UDP.Client | ++ |
Extasys.Network.UDP.Client.Connectors | ++ |
Extasys.Network.UDP.Client.Connectors.Packets | ++ |
Extasys.Network.UDP.Server | ++ |
Extasys.Network.UDP.Server.Listener | ++ |
Extasys.Network.UDP.Server.Listener.Packets | ++ |
TCPConnector fConnector+
OutgoingTCPClientPacket fPacket+
TCPConnector fConnector+
TCPClientConnection fClient+
OutgoingTCPClientConnectionPacket fPacket+