org.jsmpp.session.connection.socket
Class SocketConnection

java.lang.Object
  extended by org.jsmpp.session.connection.socket.SocketConnection
All Implemented Interfaces:
Connection

public class SocketConnection
extends java.lang.Object
implements Connection

Author:
uudashr

Constructor Summary
SocketConnection(java.net.Socket socket)
           
 
Method Summary
 void close()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 boolean isOpen()
           
 void setSoTimeout(int timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketConnection

public SocketConnection(java.net.Socket socket)
                 throws java.io.IOException
Throws:
java.io.IOException
Method Detail

setSoTimeout

public void setSoTimeout(int timeout)
                  throws java.io.IOException
Specified by:
setSoTimeout in interface Connection
Throws:
java.io.IOException

close

public void close()
Specified by:
close in interface Connection

isOpen

public boolean isOpen()
Specified by:
isOpen in interface Connection

getInputStream

public java.io.InputStream getInputStream()
Specified by:
getInputStream in interface Connection

getOutputStream

public java.io.OutputStream getOutputStream()
Specified by:
getOutputStream in interface Connection