de.ukn.hci.squidy.manager.protocol.tcp
Class AsyncSocket

java.lang.Object
  extended by java.net.Socket
      extended by 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
           
 
Constructor Summary
AsyncSocket(AsyncSocketCallback callback, InetAddress address, int port)
           
 
Method Summary
 void flush()
           
 void readBytes(AsyncSocketCallback callback, int bytesToRead, Enum<?> tag)
           
 void readToByteSequence(AsyncSocketCallback callback, byte[] sequence, Enum<?> tag)
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CRLF

public static final byte[] CRLF
Constructor Detail

AsyncSocket

public AsyncSocket(AsyncSocketCallback callback,
                   InetAddress address,
                   int port)
            throws IOException
Throws:
IOException
Method Detail

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.