|
|||||||||
| Home >> All >> org >> zazof >> [ jteg overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.zazof.jteg
Class Connection

java.lang.Objectorg.zazof.jteg.Connection
- class Connection
- extends java.lang.Object
Provides a connection with the TEG server, provides a read and write method for communication with the server. This class may only be used by the TEGServer class.
| Field Summary | |
private java.io.BufferedReader |
in
|
private java.io.BufferedWriter |
out
|
private java.net.Socket |
sock
|
| Constructor Summary | |
(package private) |
Connection()
Constructor of a connection |
| Method Summary | |
(package private) void |
killConnection()
Kills the current connection |
(package private) void |
makeConnection(java.lang.String server,
int port)
makes an actual socket link with the server |
(package private) java.lang.String |
readFromServer()
reads a message from the server, this call blocks when now new messages are available |
(package private) void |
writeToServer(java.lang.String message)
writes the message to the server |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
out
private java.io.BufferedWriter out
in
private java.io.BufferedReader in
sock
private java.net.Socket sock
| Constructor Detail |
Connection
Connection()
- Constructor of a connection
| Method Detail |
makeConnection
void makeConnection(java.lang.String server, int port) throws java.io.IOException
- makes an actual socket link with the server
killConnection
void killConnection()
throws java.io.IOException
- Kills the current connection
writeToServer
void writeToServer(java.lang.String message) throws java.io.IOException
- writes the message to the server
readFromServer
java.lang.String readFromServer() throws java.io.IOException
- reads a message from the server, this call blocks when now new
messages are available
|
|||||||||
| Home >> All >> org >> zazof >> [ jteg overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.zazof.jteg.Connection