Uses of Class
convex.net.Connection
Packages that use Connection
-
Uses of Connection in convex.api
Fields in convex.api declared as ConnectionModifier and TypeFieldDescriptionprotected Connection
Convex.connection
Current Connection to a Peer, may be null or a closed connection.Methods in convex.api that return ConnectionModifier and TypeMethodDescriptionConvex.getConnection()
Gets the underlying Connection instance for this Client.Methods in convex.api with parameters of type ConnectionModifier and TypeMethodDescriptionstatic Convex
Convex.wrap(Connection c)
Wraps a connection as a Convex client instance -
Uses of Connection in convex.net
Methods in convex.net that return ConnectionModifier and TypeMethodDescriptionstatic Connection
Connection.connect(InetSocketAddress hostAddress, Consumer<Message> receiveAction, AStore store)
Create a PeerConnection by connecting to a remote addressstatic Connection
Connection.connect(InetSocketAddress hostAddress, Consumer<Message> receiveAction, AStore store, AccountKey trustedPeerKey)
Create a Connection by connecting to a remote addressstatic Connection
Connection.connect(InetSocketAddress hostAddress, Consumer<Message> receiveAction, AStore store, AccountKey trustedPeerKey, int sendBufferSize, int receiveBufferSize)
Create a Connection by connecting to a remote addressstatic Connection
Connection.create(ByteChannel channel, Consumer<Message> receiveAction, AStore store, AccountKey trustedPeerKey)
Create a PeerConnection using an existing channel.Message.getConnection()
Methods in convex.net with parameters of type ConnectionModifier and TypeMethodDescriptionstatic Message
Message.create(Connection peerConnection, ACell o)
static Message
Message.create(Connection peerConnection, MessageType type, ACell payload)
Message.withConnection(Connection peerConnection)
Constructors in convex.net with parameters of type Connection -
Uses of Connection in convex.peer
Methods in convex.peer that return ConnectionModifier and TypeMethodDescriptionConnectionManager.connectToPeer(InetSocketAddress hostAddress)
Connects explicitly to a Peer at the given host addressConnectionManager.getConnection(AccountKey peerKey)
Gets a connection based on the peers public keyMethods in convex.peer that return types with arguments of type ConnectionModifier and TypeMethodDescriptionConnectionManager.getConnections()
Gets the current set of outbound peer connections from this serverMethods in convex.peer with parameters of type ConnectionModifier and TypeMethodDescriptionvoid
ConnectionManager.requestChallenge(AccountKey toPeerKey, Connection connection, Peer thisPeer)
Sends out a challenge to a connection that is not trusted.void
ConnectionManager.setConnection(AccountKey peerKey, Connection peerConnection)