javalightserver.network
Class ClientSocket
java.lang.Object
javalightserver.network.ClientSocket
public class ClientSocket
- extends java.lang.Object
|
Method Summary |
java.lang.String |
address()
|
void |
close()
|
void |
connect(java.lang.String host,
int port)
|
java.lang.String |
read()
|
int |
read(byte[] buffer)
|
void |
send(byte[] byteStream)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientSocket
public ClientSocket(java.net.Socket s)
throws java.io.IOException
- Throws:
java.io.IOException
ClientSocket
public ClientSocket()
address
public java.lang.String address()
connect
public void connect(java.lang.String host,
int port)
throws java.net.UnknownHostException,
java.io.IOException
- Throws:
java.net.UnknownHostException
java.io.IOException
send
public void send(byte[] byteStream)
throws java.io.IOException
- Throws:
java.io.IOException
read
public java.lang.String read()
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read(byte[] buffer)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.lang.Exception
- Throws:
java.lang.Exception