java.lang.Object
net.i2p.sam.SAMv3DatagramServer.MessageDispatcher
- All Implemented Interfaces:
Runnable
- Enclosing class:
SAMv3DatagramServer
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ByteArrayInputStreamStream reading the received message lines.private static final intLongest message line accepted.Constructor Summary
ConstructorsConstructorDescriptionMessageDispatcher(byte[] buf) Holds one received datagram for parsing and dispatch.Method Summary
Field Details
is
Stream reading the received message lines.MAX_LINE_LENGTH
private static final int MAX_LINE_LENGTHLongest message line accepted.- See Also:
Constructor Details
MessageDispatcher
public MessageDispatcher(byte[] buf) Holds one received datagram for parsing and dispatch.- Parameters:
buf- the bytes of the received datagram
Method Details
run
warn
Logs a warning to the router log.- Parameters:
s- the message to log
warn