de.ukn.hci.squidy.manager.protocol.tcp
Class AsyncSocket
java.lang.Object
java.net.Socket
de.ukn.hci.squidy.manager.protocol.tcp.AsyncSocket
public class AsyncSocket
- extends Socket
AsyncSocket.
Date: Jan 3, 2009
Time: 4:44:07 PM
- Since:
- 2.0
- Version:
- $Id: AsyncSocket.java 30 2009-09-18 22:23:35Z nitsche $
- Author:
- Roman Rädle, Roman.
Raedle@uni-konstanz.de, University of Konstanz
|
Field Summary |
static byte[] |
CRLF
|
| Methods inherited from class java.net.Socket |
bind, close, connect, connect, getChannel, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString |
CRLF
public static final byte[] CRLF
AsyncSocket
public AsyncSocket(AsyncSocketCallback callback,
InetAddress address,
int port)
throws IOException
- Throws:
IOException
readToByteSequence
public void readToByteSequence(AsyncSocketCallback callback,
byte[] sequence,
Enum<?> tag)
- Parameters:
sequence -
- Throws:
IOException
readBytes
public void readBytes(AsyncSocketCallback callback,
int bytesToRead,
Enum<?> tag)
write
public void write(int b)
throws IOException
- Parameters:
b -
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Parameters:
b -
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Throws:
IOException
flush
public void flush()
throws IOException
- Throws:
IOException
Copyright © 2007-2010 Human-Computer-Interaction :: University of Konstanz. All Rights Reserved.