public interface SocketFactory
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket(String host,
int port)
create a connected stream Socket.
|
Socket |
createSocket(String host,
int port,
int timeout)
create a connected stream Socket.
|
boolean |
isSSL(Socket socket) |
Socket createSocket(String host, int port) throws IOException
host - the host nameport - the port numberIOExceptionSocket createSocket(String host, int port, int timeout) throws IOException, TIMEOUT
host - the host nameport - the port numbertimeout - the timeout value to be used in millisecondsIOExceptionTIMEOUT - if a timeout occurs during connect.boolean isSSL(Socket socket)
Copyright © 2017 JacORB. All rights reserved.