java.lang.Object
com.iborg.hsocket.TcpSocket
- All Implemented Interfaces:
- ISocket
- public class TcpSocket
- extends java.lang.Object
- implements ISocket
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
socket
java.net.Socket socket
TcpSocket
public TcpSocket(java.net.Socket socket)
TcpSocket
public TcpSocket(java.lang.String host,
int port)
throws java.net.UnknownHostException,
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close in interface ISocket
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Specified by:
getInputStream in interface ISocket
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
- Specified by:
getOutputStream in interface ISocket