public class STUN extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
STUN.TransactionID |
| Constructor and Description |
|---|
STUN() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isStunPacket(ByteBuffer buf,
STUN.TransactionID id) |
static boolean |
isStunRequest(ByteBuffer buf) |
static boolean |
isStunResponse(ByteBuffer buf,
STUN.TransactionID id) |
static STUN.TransactionID |
parseRequest(ByteBuffer in) |
static InetSocketAddress |
parseResponse(ByteBuffer in,
Predicate<STUN.TransactionID> idHandler,
ByteUtil.MutRef<STUN.TransactionID> txIdOut,
ByteUtil.MutRef<String> error) |
static STUN.TransactionID |
writeRequest(ByteBuffer buffer) |
static void |
writeResponse(ByteBuffer buffer,
STUN.TransactionID txId,
InetSocketAddress src) |
public static boolean isStunPacket(ByteBuffer buf, STUN.TransactionID id)
public static boolean isStunResponse(ByteBuffer buf, STUN.TransactionID id)
public static boolean isStunRequest(ByteBuffer buf)
public static InetSocketAddress parseResponse(ByteBuffer in, Predicate<STUN.TransactionID> idHandler, ByteUtil.MutRef<STUN.TransactionID> txIdOut, ByteUtil.MutRef<String> error)
public static STUN.TransactionID parseRequest(ByteBuffer in)
public static STUN.TransactionID writeRequest(ByteBuffer buffer)
public static void writeResponse(ByteBuffer buffer, STUN.TransactionID txId, InetSocketAddress src)
Copyright © 2025. All rights reserved.