Package ch.nolix.core.net.endpoint
Klasse SocketEndPoint
java.lang.Object
ch.nolix.core.net.baseendpoint.BaseEndPoint
ch.nolix.core.net.endpoint.EndPoint
ch.nolix.core.net.endpoint.NetEndPoint
ch.nolix.core.net.endpoint.SocketEndPoint
- Alle implementierten Schnittstellen:
IBaseEndPoint
,IEndPoint
,Closeable
,CloseStateRequestable
,GroupCloseable
,AutoCloseable
- Version:
- 2017-05-06
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
KonstruktorBeschreibungSocketEndPoint
(int port) Creates a newSocketEndPoint
that will connect to the main target on the given port on the local machine.SocketEndPoint
(int port, String target) Creates a newSocketEndPoint
that will connect to the given target on the given port on the local machine.SocketEndPoint
(String ip) Creates a newSocketEndPoint
that will connect to the main target on the HTTP port (80) on the machine with the given ip.SocketEndPoint
(String ip, int port) Creates a newSocketEndPoint
that will connect to the main target on the given port on the machine with the given ip.SocketEndPoint
(String ip, int port, String target) Creates a newSocketEndPoint
that will connect to the given target on the given port on the machine with the given ip. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
Lets the currentGroupCloseable
note a close.protected void
sendRawMessage
(String rawMessage) Lets the currentNetEndPoint
send the given rawMessage.Von Klasse geerbte Methoden ch.nolix.core.net.endpoint.NetEndPoint
hasTargetInfo, sendMessage, sendRawMessage, sendTargetMessage
Von Klasse geerbte Methoden ch.nolix.core.net.endpoint.EndPoint
assertIsOpen, getCustomTargetSlot, getStoredReceiver, hasCustomTargetSlot, hasReceiver, setCustomTargetSlot, setReceiver
Von Klasse geerbte Methoden ch.nolix.core.net.baseendpoint.BaseEndPoint
getStoredCloseController, getTargetSlotDefinition, hasDefaultTargetSlot, isBackendEndPoint, isFrontendEndPoint, isLocalEndPoint, isSocketEndPoint, isWebSocketEndPoint
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrolapi.resourceclosingapi.CloseStateRequestable
isOpen
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrolapi.resourceclosingapi.GroupCloseable
close, createCloseDependencyTo, getStoredCloseController, isClosed
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.netapi.baseendpointapi.IBaseEndPoint
getTargetSlotDefinition, hasDefaultTargetSlot, isBackendEndPoint, isFrontendEndPoint, isLocalEndPoint, isSocketEndPoint, isWebSocketEndPoint
-
Konstruktordetails
-
SocketEndPoint
public SocketEndPoint(int port) Creates a newSocketEndPoint
that will connect to the main target on the given port on the local machine.- Parameter:
port
-- Löst aus:
ArgumentIsOutOfRangeException
- if the given port is not in [0, 65535].
-
SocketEndPoint
Creates a newSocketEndPoint
that will connect to the given target on the given port on the local machine.- Parameter:
port
-target
-- Löst aus:
ArgumentIsOutOfRangeException
- if the given port is not in [0, 65535].ArgumentIsNullException
- if the given target is null.InvalidArgumentException
- if the given target is blank.
-
SocketEndPoint
Creates a newSocketEndPoint
that will connect to the main target on the HTTP port (80) on the machine with the given ip.- Parameter:
ip
-
-
SocketEndPoint
Creates a newSocketEndPoint
that will connect to the main target on the given port on the machine with the given ip.- Parameter:
ip
-port
-- Löst aus:
ArgumentIsOutOfRangeException
- if the given port is not in [0, 65535].
-
SocketEndPoint
Creates a newSocketEndPoint
that will connect to the given target on the given port on the machine with the given ip.- Parameter:
ip
-port
-target
-- Löst aus:
ArgumentIsOutOfRangeException
- if the given port is not in [0, 65535].ArgumentIsNullException
- if the given target is null.InvalidArgumentException
- if the given target is blank.
-
-
Methodendetails
-
getPeerType
-
getConnectionType
-
getSecurityLevel
-
noteClose
public void noteClose()Lets the currentGroupCloseable
note a close. -
sendRawMessage
Lets the currentNetEndPoint
send the given rawMessage.- Angegeben von:
sendRawMessage
in KlasseNetEndPoint
- Parameter:
rawMessage
-
-