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.Methods in convex.net with parameters of type ConnectionModifier and TypeMethodDescriptionlongChallengeRequest.send(Connection connection, Peer peer) Sends out a single challenge to the remote peer.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 TypeMethodDescriptionabstract ConnectionMessage.getConnection()Gets the Connection instance associated with this message, or null if no connection exists (presumably a local Message)MessageLocal.getConnection()MessageRemote.getConnection()Methods in convex.net.message with parameters of type ConnectionModifier and TypeMethodDescriptionstatic MessageRemoteMessage.create(Connection peerConnection, MessageType type, ACell payload, Blob data) MessageRemote.withConnection(Connection peerConnection) Constructors in convex.net.message with parameters of type ConnectionModifierConstructorDescriptionprotectedMessageRemote(Connection conn, MessageType type, ACell payload, Blob data) -
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.