Klasse SocketEndPoint
java.lang.Object
ch.nolix.core.net.baseendpoint.AbstractBaseEndPoint
ch.nolix.core.net.endpoint.AbstractEndPoint
ch.nolix.core.net.endpoint.AbstractNetEndPoint
ch.nolix.core.net.endpoint.SocketEndPoint
- Alle implementierten Schnittstellen:
IBaseEndPoint, IEndPoint, Closeable, CloseStateRequestable, GroupCloseable, AutoCloseable
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungSocketEndPoint(int port) Creates a newSocketEndPointthat will connect to the main target on the given port on the local machine.SocketEndPoint(int port, String target) Creates a newSocketEndPointthat will connect to the given target on the given port on the local machine.SocketEndPoint(String ip) Creates a newSocketEndPointthat 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 newSocketEndPointthat 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 newSocketEndPointthat will connect to the given target on the given port on the machine with the given ip. -
Methodenübersicht
Von Klasse geerbte Methoden AbstractNetEndPoint
sendMessageVon Klasse geerbte Methoden AbstractEndPoint
getCustomTargetSlot, hasCustomTargetSlot, hasReceiver, setReceiverVon Klasse geerbte Methoden AbstractBaseEndPoint
getStoredCloseController, getTargetSlotDefinition, hasDefaultTargetSlot, isBackendEndPoint, isFrontendEndPoint, isLocalEndPoint, isSocketEndPoint, isWebSocketEndPointVon Klasse geerbte Methoden Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden CloseStateRequestable
isOpenVon Schnittstelle geerbte Methoden GroupCloseable
close, createCloseDependencyTo, getStoredCloseController, isClosedVon Schnittstelle geerbte Methoden IBaseEndPoint
getTargetSlotDefinition, hasDefaultTargetSlot, isBackendEndPoint, isFrontendEndPoint, isLocalEndPoint, isSocketEndPoint, isWebSocketEndPoint
-
Konstruktordetails
-
SocketEndPoint
public SocketEndPoint(int port) Creates a newSocketEndPointthat 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 newSocketEndPointthat 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 newSocketEndPointthat will connect to the main target on the HTTP port (80) on the machine with the given ip.- Parameter:
ip-
-
SocketEndPoint
Creates a newSocketEndPointthat 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 newSocketEndPointthat 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
-
getSecurityMode
-
noteClose
public void noteClose()Lets the currentGroupCloseablenote a close.
-