- All Known Implementing Classes:
MasterSession, SAMv1Handler, SAMv2Handler, SAMv3DatagramSession, SAMv3Handler
interface SAMDatagramReceiver
Interface for sending datagram data to a SAM client.
Method Summary
All MethodsModifier and TypeMethodDescriptionvoidreceiveDatagramBytes(Destination sender, byte[] data, int proto, int fromPort, int toPort) Send a byte array to a SAM client.voidStop receiving data.
Method Details
receiveDatagramBytes
void receiveDatagramBytes(Destination sender, byte[] data, int proto, int fromPort, int toPort) throws IOException Send a byte array to a SAM client.- Parameters:
sender- the destination the datagram arrived fromdata- Byte array to be receivedproto- I2CP protocolfromPort- I2CP from porttoPort- I2CP to port- Throws:
IOException- if the datagram cannot be written to the client socket
stopDatagramReceiving
void stopDatagramReceiving()Stop receiving data.