squint
Class SecureTCPConnection

java.lang.Object
  extended by squint.TCPConnection
      extended by squint.SecureTCPConnection

public class SecureTCPConnection
extends TCPConnection

A TCPConnection is a class that implements a data connection that supports the transmission of binary and text data through the Internet to and from a program and a port on a remote computer.


Field Summary
 
Fields inherited from class squint.TCPConnection
in, out
 
Constructor Summary
SecureTCPConnection(squint.SecureTCPSocket mySocket)
          Constructs a new SecureTCPConnection given a SecurTCPSocket already connected to a remote port.
SecureTCPConnection(javax.net.ssl.SSLSocket aSocket)
          Constructs a new SecureTCPConnection given an SSLSocket already connected to a remote port.
SecureTCPConnection(java.lang.String host, int port)
          Constructs a new SecureTCPConnection given a the name of a remote host and the port number on that host with which a connection should be made.
SecureTCPConnection(java.lang.String host, java.lang.String port)
          Constructs a new SecureTCPConnection given a the name of a remote host and the port number on that host with which a connection should be made.
 
Method Summary
 
Methods inherited from class squint.TCPConnection
addMessageListener, close, getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort, removeMessageListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureTCPConnection

public SecureTCPConnection(java.lang.String host,
                           int port)
Constructs a new SecureTCPConnection given a the name of a remote host and the port number on that host with which a connection should be made.

Parameters:
host - the name of the remote host
port - the number of the port to contact

SecureTCPConnection

public SecureTCPConnection(java.lang.String host,
                           java.lang.String port)
Constructs a new SecureTCPConnection given a the name of a remote host and the port number on that host with which a connection should be made.

Parameters:
host - the name of the remote host
port - the number of the port to contact (in String form)

SecureTCPConnection

public SecureTCPConnection(squint.SecureTCPSocket mySocket)
Constructs a new SecureTCPConnection given a SecurTCPSocket already connected to a remote port.

Parameters:
mySocket - the TCPSocket with which TCPConnection should be associated

SecureTCPConnection

public SecureTCPConnection(javax.net.ssl.SSLSocket aSocket)
Constructs a new SecureTCPConnection given an SSLSocket already connected to a remote port.

Parameters:
aSocket - the Socket with which TCPConnection should be associated