org.neo.swarm.util.network.tcp.client
Class SocketReader
java.lang.Object
org.neo.swarm.util.network.tcp.client.SocketReader
- All Implemented Interfaces:
- StreamCallback
- public class SocketReader
- extends java.lang.Object
- implements StreamCallback
|
Constructor Summary |
SocketReader(java.net.InetAddress host,
int port,
boolean blocking)
|
SocketReader(java.net.InetAddress host,
int port,
java.nio.channels.SocketChannel sc)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketReader
public SocketReader(java.net.InetAddress host,
int port,
boolean blocking)
SocketReader
public SocketReader(java.net.InetAddress host,
int port,
java.nio.channels.SocketChannel sc)
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 buffer,
int bytes)
throws java.io.IOException
- Specified by:
execute in interface StreamCallback
- Throws:
java.io.IOException
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.