public class ITCHServer extends ITCHSession
Constructor and Description |
---|
ITCHServer(SocketChannel channel,
int rxBufferCapacity,
ITCHServerListener listener)
Create a server.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(ITCH.LoginAccepted packet)
Send a Login Accepted packet (1.2.1).
|
void |
endSession()
Send an indication of the end of session (1.2.5).
|
void |
instrumentDirectory(ITCH.InstrumentDirectory packet)
Send an Instrument Directory packet (1.2.7).
|
void |
notifyError(ITCH.ErrorNotification packet)
Send an Error Notification packet (1.2.6).
|
void |
reject(ITCH.LoginRejected packet)
Send a Login Rejected packet (1.2.2).
|
void |
send(ITCH.SequencedData packet,
ByteBuffer payload)
Send a Sequenced Data packet (1.2.3).
|
close, getChannel, keepAlive, receive
public ITCHServer(SocketChannel channel, int rxBufferCapacity, ITCHServerListener listener)
channel
- the underlying socket channelrxBufferCapacity
- the receive buffer capacitylistener
- the inbound packet listenerpublic void accept(ITCH.LoginAccepted packet) throws IOException
packet
- the packetIOException
- if an I/O error occurspublic void reject(ITCH.LoginRejected packet) throws IOException
packet
- the packetIOException
- if an I/O error occurspublic void send(ITCH.SequencedData packet, ByteBuffer payload) throws IOException
packet
- the packetpayload
- the payloadIOException
- if an I/O error occurspublic void endSession() throws IOException
IOException
- if an I/O error occurspublic void notifyError(ITCH.ErrorNotification packet) throws IOException
packet
- the packetIOException
- if an I/O error occurspublic void instrumentDirectory(ITCH.InstrumentDirectory packet) throws IOException
packet
- the packetIOException
- if an I/O error occursCopyright © 2019. All rights reserved.