Interface IPBabelChannel
- All Superinterfaces:
BabelChannel
- All Known Subinterfaces:
BroadcastIPBabelChannel
- All Known Implementing Classes:
AbstractTCPBabelChannel, LegacySimpleServerBabelChannel, QUICBabelChannel, TCPBabelChannel, TLSBabelChannel, UDPBabelChannel
Interface representing a Babel channel operating over IP network protocols (TCP, TLS, UDP, QUIC).
Provides access to the local socket address to which the channel is bound.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the local IP socket address to which this channel is bound.Methods inherited from interface BabelChannel
connect, disconnect, getInner, isConnected, send, sendEphemeral, shutdownModifier and TypeMethodDescriptionvoidConnect to another Babel runtime.voiddisconnect(BabelNode peer) Closes the connection topeer.default BabelChannelgetInner()Gets this channel or returns the inner channel if this instance is a wrapper.booleanisConnected(BabelNode peer) Returnstrueif a connection topeeris currently open on this channel.voidsend(BabelNode peer, BabelMessage message) Sends a message through this channel to the given peer using a persistent connection.voidsendEphemeral(BabelNode peer, BabelMessage message) Sends a message topeerwithout establishing a persistent connection.voidshutdown()Releases all resources held by this channel, closing any open connections.
-
Method Details
-
getBindingAddress
InetSocketAddress getBindingAddress()Returns the local IP socket address to which this channel is bound.- Returns:
- the local binding
InetSocketAddress
-