public interface OutgoingPacketMangler
IncomingPacketFilter
,
FNPPacketMangler
Modifier and Type | Method and Description |
---|---|
boolean |
allowConnection(PeerNode node,
FreenetInetAddress addr)
Is there any reason not to allow this connection? E.g.
|
boolean |
alwaysAllowLocalAddresses()
Always allow local addresses?
|
byte[] |
getCompressedNoderef()
Get our compressed noderef
|
AddressTracker.Status |
getConnectivityStatus()
Port forwarding status.
|
Peer[] |
getPrimaryIPAddress()
Get our addresses, as peers.
|
SocketHandler |
getSocketHandler()
The SocketHandler we are connected to.
|
boolean |
isDisconnected(PeerContext context)
Is a peer disconnected?
|
void |
sendHandshake(PeerNode pn,
boolean notRegistered)
Send a handshake, if possible, to the node.
|
void |
setPortForwardingBroken()
If the lower level code detects the port forwarding is broken, it will call this method.
|
int[] |
supportedNegTypes(boolean forPublic)
List of supported negotiation types in preference order (best last)
|
void sendHandshake(PeerNode pn, boolean notRegistered)
pn
- boolean isDisconnected(PeerContext context)
int[] supportedNegTypes(boolean forPublic)
SocketHandler getSocketHandler()
Peer[] getPrimaryIPAddress()
byte[] getCompressedNoderef()
boolean alwaysAllowLocalAddresses()
AddressTracker.Status getConnectivityStatus()
boolean allowConnection(PeerNode node, FreenetInetAddress addr)
void setPortForwardingBroken()