- java.lang.Object
-
- swim.io.Endpoint
-
public class Endpoint extends Object
Network interface for binding and connecting IP sockets and modems.
-
-
Field Summary
Fields Modifier and Type Field Description protected SocketSettings
socketSettings
protected Station
station
-
Constructor Summary
Constructors Constructor Description Endpoint(Stage stage)
Endpoint(Stage stage, SocketSettings socketSettings)
Endpoint(Station station)
Endpoint(Station station, SocketSettings socketSettings)
-
Method Summary
-
-
-
Field Detail
-
station
protected final Station station
-
socketSettings
protected SocketSettings socketSettings
-
-
Constructor Detail
-
Endpoint
public Endpoint(Station station, SocketSettings socketSettings)
-
Endpoint
public Endpoint(Station station)
-
Endpoint
public Endpoint(Stage stage, SocketSettings socketSettings)
-
Endpoint
public Endpoint(Stage stage)
-
-
Method Detail
-
socketSettings
public final SocketSettings socketSettings()
-
stage
public final Stage stage()
-
station
public final Station station()
-
start
public void start()
-
stop
public void stop()
-
bindTcp
public ServiceRef bindTcp(InetSocketAddress localAddress, Service service, SocketSettings socketSettings)
-
bindTcp
public ServiceRef bindTcp(InetSocketAddress localAddress, Service service)
-
bindTcp
public ServiceRef bindTcp(String address, int port, Service service, SocketSettings socketSettings)
-
bindTcp
public ServiceRef bindTcp(String address, int port, Service service)
-
bindTls
public ServiceRef bindTls(InetSocketAddress localAddress, Service service, SocketSettings socketSettings)
-
bindTls
public ServiceRef bindTls(InetSocketAddress localAddress, Service service)
-
bindTls
public ServiceRef bindTls(String address, int port, Service service, SocketSettings socketSettings)
-
bindTls
public ServiceRef bindTls(String address, int port, Service service)
-
connectTcp
public SocketRef connectTcp(InetSocketAddress remoteAddress, Socket socket, SocketSettings socketSettings)
-
connectTcp
public SocketRef connectTcp(InetSocketAddress remoteAddress, Socket socket)
-
connectTcp
public SocketRef connectTcp(String address, int port, Socket socket, SocketSettings socketSettings)
-
connectTcp
public <I,O> SocketRef connectTcp(InetSocketAddress remoteAddress, Modem<I,O> modem, SocketSettings socketSettings)
-
connectTcp
public <I,O> SocketRef connectTcp(InetSocketAddress remoteAddress, Modem<I,O> modem)
-
connectTcp
public <I,O> SocketRef connectTcp(String address, int port, Modem<I,O> modem, SocketSettings socketSettings)
-
connectTls
public SocketRef connectTls(InetSocketAddress remoteAddress, Socket socket, SocketSettings socketSettings)
-
connectTls
public SocketRef connectTls(InetSocketAddress remoteAddress, Socket socket)
-
connectTls
public SocketRef connectTls(String address, int port, Socket socket, SocketSettings socketSettings)
-
connectTls
public <I,O> SocketRef connectTls(InetSocketAddress remoteAddress, Modem<I,O> modem, SocketSettings socketSettings)
-
connectTls
public <I,O> SocketRef connectTls(InetSocketAddress remoteAddress, Modem<I,O> modem)
-
connectTls
public <I,O> SocketRef connectTls(String address, int port, Modem<I,O> modem, SocketSettings socketSettings)
-
-