|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ISocketChannelFactory
The socket channel factory creates socket channel objects given some seed information such as socket, real channel or connection information to establish a new socket channel.
| Method Summary | |
|---|---|
ISocketChannel |
create(java.net.InetSocketAddress address)
Creates a local socket channel abstraction over a new socket to be established at the given internet socket address, basically connects to the address given, establishes a socket to the other side and returns back an abstraction to manipulate the connection with -- this method creates a new connection at the given address or returns back an existing connection that is not in use (with no contention with another client possible) |
ISocketChannel |
create(java.net.InetSocketAddress address,
int timeout)
Creates a local socket channel abstraction over a new socket to be established at the given internet socket address, basically connects to the address given, establishes a socket to the other side and returns back an abstraction to manipulate the connection with -- this method creates a new connection at the given address or returns back an existing connection that is not in use (with no contention with another client possible) |
ISocketChannel |
create(java.net.Socket socket)
Creates a local socket channel abstraction for the given socket, this does not create a new connection, simply wraps a java.nio channel with a local abstraction |
ISocketChannel |
create(java.nio.channels.SocketChannel realChannel)
Creates a local socket channel abstraction for the given standard channel, this does not create a new connection, simply wraps a java.nio channel with a local abstraction |
| Method Detail |
|---|
ISocketChannel create(java.net.InetSocketAddress address)
throws java.io.IOException
address - the address to establish a connection to
java.io.IOException - throws an IO exception if socket problems arise
ISocketChannel create(java.net.InetSocketAddress address,
int timeout)
throws java.io.IOException
address - the address to establish a connection totimeout - timeout to use for the connection
java.io.IOException - throws an IO exception if socket problems ariseISocketChannel create(java.nio.channels.SocketChannel realChannel)
realChannel - the standard Java abstraction
ISocketChannel create(java.net.Socket socket)
throws java.io.IOException
socket - the socket to seed this socket channel
an - IO exception if socket problems arise
java.io.IOException
|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||