mmc
Class MMConnection

java.lang.Object
  extended by Connection
      extended by mmc.MMConnection

public class MMConnection
extends Connection

Connection class

Author:
Gabriele Bianchi

Constructor Summary
MMConnection()
           
 
Method Summary
 void close()
          Closes the connection.
 boolean connected()
           
 void open(java.lang.String host, int port, boolean ssl)
          Opens a connection with the given host on the given port.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MMConnection

public MMConnection()
Method Detail

close

public void close()
           throws java.io.IOException
Closes the connection.

Throws:
java.io.IOException
See Also:
open(java.lang.String, int, boolean)

connected

public boolean connected()
Returns:

open

public void open(java.lang.String host,
                 int port,
                 boolean ssl)
          throws java.io.IOException
Opens a connection with the given host on the given port. If the ssl parameter is true, secure socket layer is used.

Throws:
java.io.IOException
See Also:
close()