mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-13 00:23:26 -07:00
generate javadocs for the Java SDK
This commit is contained in:
parent
0d4283a3fa
commit
56f8160af8
23 changed files with 624 additions and 19 deletions
|
@ -26,12 +26,24 @@
|
|||
*/
|
||||
package com.zerotierone.sdk;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.net.InetAddress;
|
||||
|
||||
|
||||
public interface PacketSender {
|
||||
/**
|
||||
* Function to send a ZeroTier packet out over the wire
|
||||
*
|
||||
* <p>The function must return zero on success and may return any error code
|
||||
* on failure. Note that success does not (of course) guarantee packet
|
||||
* delivery. It only means that the packet appears to have been sent.</p>
|
||||
*
|
||||
* @param addr {@link InetAddress} to send to
|
||||
* @param linkDesperation
|
||||
* @param packetData data to send
|
||||
* @return 0 on success, any error code on failure.
|
||||
*/
|
||||
public int onSendPacketRequested(
|
||||
String addr,
|
||||
int linkDesparation,
|
||||
InetAddress addr,
|
||||
int linkDesperation,
|
||||
byte[] packetData);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue