games.strategy.net
Class SocketStreams
java.lang.Object
games.strategy.net.SocketStreams
public class SocketStreams
- extends java.lang.Object
A holder for all the streams associated with a socket.
We need this because we can only buffer a socket once (otherwise you have issues
when the first buffer reads bytes that weren't meant for it)
- Author:
- sgb
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketStreams
public SocketStreams(java.net.Socket s)
throws java.io.IOException
- Throws:
java.io.IOException
getBufferedIn
public java.io.BufferedInputStream getBufferedIn()
getBufferedOut
public java.io.BufferedOutputStream getBufferedOut()
getSocketIn
public java.io.InputStream getSocketIn()
getSocketOut
public java.io.OutputStream getSocketOut()