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 ConnectionConvexRemote.connectionCurrent Connection to a Peer, may be null or a closed connection.Methods in convex.api that return ConnectionModifier and TypeMethodDescriptionConvexRemote.getConnection()Gets the underlying Connection instance for this Client.Methods in convex.api with parameters of type ConnectionModifier and TypeMethodDescriptionprotected voidConvexRemote.setConnection(Connection conn)Sets the current Connection for this Remote Clientstatic ConvexRemoteConvexRemote.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 ConnectionConnection.connect(InetSocketAddress hostAddress, Consumer<Message> receiveAction, AStore store)Create a PeerConnection by connecting to a remote addressstatic ConnectionConnection.connect(InetSocketAddress hostAddress, Consumer<Message> receiveAction, AStore store, AccountKey trustedPeerKey)Create a Connection by connecting to a remote addressstatic ConnectionConnection.connect(InetSocketAddress hostAddress, Consumer<Message> receiveAction, AStore store, AccountKey trustedPeerKey, int sendBufferSize, int receiveBufferSize)Create a Connection by connecting to a remote addressstatic ConnectionConnection.create(ByteChannel channel, Consumer<Message> receiveAction, AStore store, AccountKey trustedPeerKey)Create a PeerConnection using an existing channel.Constructors in convex.net with parameters of type Connection -
Uses of Connection in convex.net.message
Methods in convex.net.message that return ConnectionModifier and TypeMethodDescriptionMessageRemote.getConnection()Gets the Connection instance associated with this MessageMethods in convex.net.message with parameters of type ConnectionModifier and TypeMethodDescriptionstatic MessageRemoteMessage.create(Connection peerConnection, ACell o)static MessageRemoteMessage.create(Connection peerConnection, MessageType type, ACell payload)MessageRemote.withConnection(Connection peerConnection)Constructors in convex.net.message with parameters of type ConnectionModifierConstructorDescriptionprotectedMessageRemote(Connection conn, MessageType type, ACell payload) -
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 TypeMethodDescriptionvoidConnectionManager.requestChallenge(AccountKey toPeerKey, Connection connection, Peer thisPeer)Sends out a challenge to a connection that is not trusted.voidConnectionManager.setConnection(AccountKey peerKey, Connection peerConnection)