java.lang.Object
Freenet.Core
- public class Core
- extends java.lang.Object
This is a Wrapper object that contains the components of a Node in the
Adaptive Network. It uses a Network object to communicate with other
Nodes in the Network.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
freenetVersion
public static final java.lang.String freenetVersion
- See Also:
- Constant Field Values
protocolVersion
public static final java.lang.String protocolVersion
- See Also:
- Constant Field Values
buildNumber
public static final java.lang.String buildNumber
- See Also:
- Constant Field Values
serverRevision
public static java.lang.String serverRevision
params
public static Params params
debug
public static boolean debug
timePerHop
public static int timePerHop
connectTimeout
public static int connectTimeout
handshakeTimeout
public static int handshakeTimeout
handshakeLife
public static int handshakeLife
tunneling
public static boolean tunneling
timer
public static Freenet.support.Ticker timer
myAddress
public ListeningAddress myAddress
mh
public MessageHandler mh
hh
public HandshakeHandler hh
listener
public Listener listener
listen
public boolean listen
Core
public Core(ListeningAddress myAddress,
MessageHandler mh,
HandshakeHandler hh)
acceptConnections
public void acceptConnections()
makeConnection
public ConnectionHandler makeConnection(Address peer)
throws ConnectFailedException
- Makes a connection from this Node to another
connect
public ConnectionHandler connect(Address peer)
throws ConnectFailedException
- This is the raw connection maker, it will not handshake
or check the status of the connection in any way.
sendMessage
public void sendMessage(Message m,
Address destination)
throws SendFailedException
- Send the message using the appropriate protocol
sendMessage
public void sendMessage(Message m,
Address destination,
Freenet.support.SplitOutputStream datatunnel)
throws SendFailedException
- Send the message using the appropriate protocol streaming
the actual data through the SplitOutputStream tunnel
sendMessage
public void sendMessage(Message m,
Address destination,
Freenet.support.SplitOutputStream datatunnel,
Freenet.support.ByteCounter count)
throws SendFailedException
- Send the message using the appropriate protocol, streaming
the actual data through the SplitOutputStream tunnel, and
counting the bytes sent with ByteCounter. This opens a connection as well.