squint
Class SecureNetConnection

java.lang.Object
  extended by squint.NetConnection
      extended by squint.SecureNetConnection

public class SecureNetConnection
extends NetConnection

SecureNetConnection is a class that implements a data connection that supports the transmission of text messages through the Internet to and from a program and a port on a remote computer. It uses the SSL and TCP protocols to ensure secure, reliable, ordered delivery of all data.


Field Summary
 
Fields inherited from class squint.NetConnection
in, out
 
Constructor Summary
SecureNetConnection(squint.SecureTCPSocket mySocket)
          Constructs a new SecureNetConnection given a SecureTCPSocket already connected to a remote port.
SecureNetConnection(java.lang.String host, int port)
          Constructs a new SecureNetConnection given a the name of a remote host and the port number on that host with which a connection should be made.
SecureNetConnection(java.lang.String host, java.lang.String port)
          Constructs a new SecureNetConnection 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.NetConnection
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

SecureNetConnection

public SecureNetConnection(java.lang.String host,
                           int port)
Constructs a new SecureNetConnection 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

SecureNetConnection

public SecureNetConnection(java.lang.String host,
                           java.lang.String port)
Constructs a new SecureNetConnection 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

SecureNetConnection

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

Parameters:
mySocket - the Socket with which NETConnection should be associated