|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.hhn.se.tbraun.jts3qsdk.Connection
public class Connection
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/
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 |
---|
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().
serverAdress
- queryPort
- Method Detail |
---|
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.
ConnectionErrorException
public void close()
Close the socket connection.
The input
stream and the output stream also get cloed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |