TCP Port EventHandler
Overview
This EventHandler waits for incoming TCP connections on a specified port and
spawns a new thread to handle the incoming request. When the new thread has
started the original EventHandler goes back to listening mode. When the newly
created thread has completed its business it terminates and the TCP connection
is closed.
Example
Demo package containing ready to run configurations for the TCP Port EventHandler
here.
Configuration
Parameter |
Description |
class |
com.architech.switchboard.TCPSwitchboard |
tcp.port |
The TCP port on which to listen for incoming
connections |
Objects/Properties/Attributes
The EventHandler sets the following event properties:
Property |
Description |
event.originator |
The EventHandler object. |
event.inputstream |
TCP socket input stream |
event.outputstream |
TCP socket output stream |
tcp.remoteIP |
Remote IP address - dot notation |
tcp.remotePort |
Remote TCP port number |
tcp.remoteHost |
Remote hostname |
tcp.localIP |
Local IP address - dot notation |
tcp.localPort |
Local TCP port number |
tcp.localHost |
Local hostname |
tcp.socket |
TCP Socket object (java.net.Socket) |
Downloads
Included in base product since 4.0.3
See Also
EventHandler
Overview
|