de.hhn.se.tbraun.jts3qsdk
Class Connection

java.lang.Object
  extended by de.hhn.se.tbraun.jts3qsdk.Connection

public class Connection
extends java.lang.Object

This class is the connection object. Use it to create a new server query connection to the teamspeak 3 server and login with the query user data.

E-Mail: tbraun[at]stud.hs-heilbronn.de
Homepage: http://www.t-head.de/

Version:
0.1.0
Author:
Torsten Braun

Constructor Summary
Connection(java.lang.String serverAdress, int queryPort)
          Connection constructor to create a new connection object with server adress and query port. the connection will not be established on initialization of this object.
 
Method Summary
 void close()
          Close the socket connection.
 void connect()
          On calling this metod the connection to theteamspeak server will be established.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connection

public Connection(java.lang.String serverAdress,
                  int queryPort)

Connection constructor to create a new connection object with server adress and query port. the connection will not be established on initialization of this object. To connect to the server call connect().

Parameters:
serverAdress -
queryPort -
Since:
0.1.0
Method Detail

connect

public void connect()
             throws ConnectionErrorException

On calling this metod the connection to theteamspeak server will be established. If the connection can not be established for some reasons listed below, there will be an ConnectionErrorException thrown.

Throws:
ConnectionErrorException
Since:
0.1.0

close

public void close()

Close the socket connection.
The input stream and the output stream also get cloed.

Since:
0.1.0