mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 13:07:55 +00:00
update PacketSender interface
This commit is contained in:
parent
e8cdff3eaf
commit
0b9e5928d3
@ -37,11 +37,13 @@ public interface PacketSender {
|
|||||||
* on failure. Note that success does not (of course) guarantee packet
|
* on failure. Note that success does not (of course) guarantee packet
|
||||||
* delivery. It only means that the packet appears to have been sent.</p>
|
* delivery. It only means that the packet appears to have been sent.</p>
|
||||||
*
|
*
|
||||||
* @param addr {@link InetSocketAddress} to send to
|
* @param localAddr {@link InetSocketAddress} to send from. Set to null if not specified.
|
||||||
|
* @param remoteAddr {@link InetSocketAddress} to send to
|
||||||
* @param packetData data to send
|
* @param packetData data to send
|
||||||
* @return 0 on success, any error code on failure.
|
* @return 0 on success, any error code on failure.
|
||||||
*/
|
*/
|
||||||
public int onSendPacketRequested(
|
public int onSendPacketRequested(
|
||||||
InetSocketAddress addr,
|
InetSocketAddress localAddr,
|
||||||
|
InetSocketAddress remoteAddr,
|
||||||
byte[] packetData);
|
byte[] packetData);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user