Package net.i2p.sam
Interface SAMDatagramReceiver
- 
- All Known Implementing Classes:
- PrimarySession,- SAMv1Handler,- SAMv2Handler,- SAMv3DatagramSession,- SAMv3Handler
 
 interface SAMDatagramReceiverInterface for sending raw data to a SAM client
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidreceiveDatagramBytes(Destination sender, byte[] data, int proto, int fromPort, int toPort)Send a byte array to a SAM client.voidstopDatagramReceiving()Stop receiving data.
 
- 
- 
- 
Method Detail- 
receiveDatagramBytesvoid receiveDatagramBytes(Destination sender, byte[] data, int proto, int fromPort, int toPort) throws IOException Send a byte array to a SAM client.- Parameters:
- sender- Destination
- data- Byte array to be received
- proto- I2CP protocol
- fromPort- I2CP from port
- toPort- I2CP to port
- Throws:
- IOException
 
 - 
stopDatagramReceivingvoid stopDatagramReceiving() Stop receiving data.
 
- 
 
-