public class DatagramService extends MessageDecoder
DatagramMeteringBuffer
.
Multiple copies of this can exist.
Modifier and Type | Class and Description |
---|---|
protected static class |
DatagramService.DatagramServiceReceiveMemo |
protected static class |
DatagramService.DatagramServiceTransmitMemo
Memo class to hold information about request while
it's being processed.
|
protected static class |
DatagramService.ReplyMemo |
Connection.ConnectionListener
Modifier and Type | Field and Description |
---|---|
(package private) static int |
DEFAULT_ERROR_CODE |
(package private) Connection |
downstream |
(package private) NodeID |
here |
(package private) DatagramService.DatagramServiceReceiveMemo |
rcvMemo |
(package private) DatagramService.DatagramServiceTransmitMemo |
xmtMemo |
Constructor and Description |
---|
DatagramService(NodeID here,
Connection downstream) |
Modifier and Type | Method and Description |
---|---|
void |
handleDatagram(DatagramMessage msg,
Connection sender)
Handle "Datagram" message from layout
|
void |
handleDatagramAcknowledged(DatagramAcknowledgedMessage msg,
Connection sender)
Handle positive datagram reply message from layout
|
void |
handleDatagramRejected(DatagramRejectedMessage msg,
Connection sender)
Handle negative datagram reply message from layout
|
void |
registerForReceive(DatagramService.DatagramServiceReceiveMemo memo)
Accept request to notify for a particular
type of datagram
|
void |
sendData(DatagramService.DatagramServiceTransmitMemo memo)
Send data to layout
|
void |
sendData(NodeID dest,
int[] data)
Send data to layout
|
defaultHandler, handleConsumerIdentified, handleIdentifyConsumers, handleIdentifyEvents, handleIdentifyProducers, handleInitializationComplete, handleLearnEvent, handleOptionalIntRejected, handleProducerConsumerEventReport, handleProducerIdentified, handleProtocolIdentificationReply, handleProtocolIdentificationRequest, handleSimpleNodeIdentInfoReply, handleSimpleNodeIdentInfoRequest, handleStreamDataComplete, handleStreamDataProceed, handleStreamDataSend, handleStreamInitReply, handleStreamInitRequest, handleVerifiedNodeIDNumber, handleVerifyNodeIDNumber, put
registerStartNotification
static final int DEFAULT_ERROR_CODE
NodeID here
Connection downstream
DatagramService.DatagramServiceReceiveMemo rcvMemo
DatagramService.DatagramServiceTransmitMemo xmtMemo
public DatagramService(NodeID here, Connection downstream)
downstream
- Connection in the direction of the layoutpublic void sendData(DatagramService.DatagramServiceTransmitMemo memo)
public void sendData(NodeID dest, int[] data)
public void handleDatagram(DatagramMessage msg, Connection sender)
handleDatagram
in class MessageDecoder
public void handleDatagramRejected(DatagramRejectedMessage msg, Connection sender)
handleDatagramRejected
in class MessageDecoder
public void handleDatagramAcknowledged(DatagramAcknowledgedMessage msg, Connection sender)
handleDatagramAcknowledged
in class MessageDecoder
public void registerForReceive(DatagramService.DatagramServiceReceiveMemo memo)
Information on copyright, trademarks and licenses is linked here.
Site hosted by: