uba.db.client.model
Class ConnectionToServer

java.lang.Object
  extended by uba.db.client.model.ConnectionToServer

public class ConnectionToServer
extends java.lang.Object

Estado de conexión al servidor.

Version:
$Revision 1.0$

Constructor Summary
ConnectionToServer()
           
 
Method Summary
 void connect(ClientManager m)
          Inicia la conexión.
 java.lang.String execute(java.lang.String s)
          Deja en el socket el string y obtiene un string resultante.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionToServer

public ConnectionToServer()
Method Detail

connect

public void connect(ClientManager m)
             throws java.io.IOException
Inicia la conexión.

Parameters:
m - Manager del que se reciben las órdenes.
Throws:
java.io.IOException - Error de socket.

execute

public java.lang.String execute(java.lang.String s)
                         throws java.io.IOException
Deja en el socket el string y obtiene un string resultante.

Parameters:
s - El string a mandar con la sentencia.
Returns:
El resultado de tomar del socket lo que envía el server.
Throws:
java.io.IOException - Error de socket.


Copyright © -2005 . All Rights Reserved.