Interface ServerChannel
- All Superinterfaces:
ISOChannel, ISOSource
- All Known Implementing Classes:
AmexChannel, ASCIIChannel, BASE24Channel, BASE24TCPChannel, BaseChannel, BCDChannel, CMFChannel, CSChannel, FSDChannel, GICCChannel, GZIPChannel, HEXChannel, LogChannel, NACChannel, NCCChannel, PADChannel, PostChannel, RawChannel, RBPChannel, TelnetXMLChannel, VAPChannel, X25Channel, XMLChannel
Tag this channel as a server one (from a Socket point of view)
Please note that ISOChannel implementations may choose to
implement ClientChannel as well as ServerChannel, being a
client does not mean it can not be a server too.
- See Also:
-
Field Summary
Fields inherited from interface ISOChannel
CONNECT, RX, SIZEOF_CNT, TXModifier and TypeFieldDescriptionstatic final intCounter index for connection events.static final intCounter index for received messages.static final intNumber of counters maintained by this channel.static final intCounter index for transmitted messages. -
Method Summary
Modifier and TypeMethodDescriptionvoidAccepts an inbound connection from the given server socket.Methods inherited from interface ISOChannel
clone, connect, disconnect, getName, getPackager, isConnected, receive, reconnect, send, send, setName, setPackager, setUsableModifier and TypeMethodDescriptionclone()Returns a clone of this channel.voidconnect()Connects ISOChannelvoiddisconnects ISOChannelgetName()Returns this channel's registered name.Returns the packager used to pack/unpack ISO messages on this channel.booleanIndicates whether this source is currently connected and able to send messages.receive()Receives an ISOMsgvoidReconnect channelvoidsend(byte[] b) sends a byte[] over the TCP/IP sessionvoidsends an ISOMsg over the TCP/IP sessionvoidassociates this ISOChannel with a name on NameRegistrarvoidAssociate a packager with this channelvoidsetUsable(boolean b) Marks this channel as usable or not; a non-usable channel will not accept messages.
-
Method Details
-
accept
Accepts an inbound connection from the given server socket.- Parameters:
s- the server socket to accept on- Throws:
IOException- on I/O failure
-