|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface used by ChannelOut to retreive a socket to send a message to an
IPChannelIn identified by its InetAddress
and its port.
Field Summary | |
static String |
ITF_NAME
The default name of interface of this type. |
Method Summary | |
SocketState |
getSocket(InetAddress address,
int port)
Returns a socket that can be used to send message to the ChannelIn identified by the given IP address and port. |
void |
releaseSocket(SocketState socketState,
boolean error)
Releases the given SocketStateImpl . |
Field Detail |
public static final String ITF_NAME
Method Detail |
public SocketState getSocket(InetAddress address, int port) throws IOException, InterruptedException
address
- the address of the ChannelIn.port
- the port of the ChannelIn.
IOException
- if the socket can't be opened.
InterruptedException
- if the component is interrupted while waiting
for a socket to be released.public void releaseSocket(SocketState socketState, boolean error)
SocketStateImpl
.
socketState
- the socket state to release.error
- true
if an exception has been catched while
sending the message, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |