org.neo.swarm.util.network.tcp.client
Class SocketWriter
java.lang.Object
org.neo.swarm.util.network.tcp.client.SocketWriter
- All Implemented Interfaces:
- StreamCallback
- public class SocketWriter
- extends java.lang.Object
- implements StreamCallback
|
Constructor Summary |
SocketWriter(java.net.InetAddress host,
int port,
boolean blocking)
|
SocketWriter(java.nio.channels.SocketChannel channel)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketWriter
public SocketWriter(java.net.InetAddress host,
int port,
boolean blocking)
throws java.io.IOException
SocketWriter
public SocketWriter(java.nio.channels.SocketChannel channel)
connect
public void connect()
throws java.io.IOException
- Throws:
java.io.IOException
disconnect
public void disconnect()
throws java.io.IOException
- Throws:
java.io.IOException
execute
public int execute(java.nio.ByteBuffer data,
int bytes)
throws java.io.IOException
- Specified by:
execute in interface StreamCallback
- Throws:
java.io.IOException
getSocketChannel
public java.nio.channels.SocketChannel getSocketChannel()
- Returns:
- Returns the sc.
close
public void close()
- Specified by:
close in interface StreamCallback
Copyright © 2001-2004 SWARM-ONE -First Generation (S)calable(W)ide(AR)ea(M)esh. All Rights Reserved.