Package net.md_5.bungee.api.connection
Interface Connection
- 
- All Known Subinterfaces:
- ConnectedPlayer,- PendingConnection,- ProxiedPlayer,- Server
 
 public interface ConnectionA proxy connection is defined as a connection directly connected to a socket. It should expose information about the remote peer, however not be specific to a type of connection, whether server or player.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceConnection.Unsafe
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voiddisconnect(String reason)Deprecated.voiddisconnect(BaseComponent reason)Disconnects this end of the connection for the specified reason.voiddisconnect(BaseComponent... reason)Disconnects this end of the connection for the specified reason.InetSocketAddressgetAddress()Deprecated.BungeeCord can accept connections via Unix domain socketsSocketAddressgetSocketAddress()Gets the remote address of this connection.booleanisConnected()Gets whether this connection is currently open, ie: not disconnected, and able to send / receive data.Connection.Unsafeunsafe()Get the unsafe methods of this class.
 
- 
- 
- 
Method Detail- 
getAddress@Deprecated InetSocketAddress getAddress() Deprecated.BungeeCord can accept connections via Unix domain socketsGets the remote address of this connection.- Returns:
- the remote address
 
 - 
getSocketAddressSocketAddress getSocketAddress() Gets the remote address of this connection.- Returns:
- the remote address
 
 - 
disconnect@Deprecated void disconnect(String reason) Deprecated.Disconnects this end of the connection for the specified reason. If this is anProxiedPlayerthe respective server connection will be closed too.- Parameters:
- reason- the reason shown to the player / sent to the server on disconnect
 
 - 
disconnectvoid disconnect(BaseComponent... reason) Disconnects this end of the connection for the specified reason. If this is anProxiedPlayerthe respective server connection will be closed too.- Parameters:
- reason- the reason shown to the player / sent to the server on disconnect
 
 - 
disconnectvoid disconnect(BaseComponent reason) Disconnects this end of the connection for the specified reason. If this is anProxiedPlayerthe respective server connection will be closed too.- Parameters:
- reason- the reason shown to the player / sent to the server on disconnect
 
 - 
isConnectedboolean isConnected() Gets whether this connection is currently open, ie: not disconnected, and able to send / receive data.- Returns:
- current connection status
 
 - 
unsafeConnection.Unsafe unsafe() Get the unsafe methods of this class.- Returns:
- the unsafe method interface
 
 
- 
 
-