blob: bd1a8af59f0a198391997c2f209c4a29c9a21d30 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package org.gnunet.util;
/**
* Callback object for transmitting messages.
*/
public interface MessageTransmitter {
/**
* Called when the client is ready to transmit messages, or on timeout/error.
*
* @param sink A message sink that receives messages to be transmitted by the client,
* or null on timeout/error.
*/
public void transmit(Connection.MessageSink sink);
/**
* Called when the transmit request could not be fullfilled.
*
* After transmit has been called, handleError will not be called anymore (until the next transmit request)
*/
void handleError();
}
|