|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Defines the methods necessary to communicate as a client with a server via TCP or UDP (subclassed). Connections persist only so long as the client or the server maintains them. When either side closes the connection it will be dropped on the other end.
| Method Summary | |
void |
close()
Shut down cleanly. |
java.lang.String |
getLine()
Reads from the low level communications channel. |
int |
getServerPort()
Provide the server port often used as ID. |
void |
putLine(java.lang.String ln)
Sends a single line back to the client. |
| Method Detail |
public java.lang.String getLine()
throws java.lang.Exception
java.lang.Exception - if an error occurspublic int getServerPort()
public void putLine(java.lang.String ln)
ln - a String valuepublic void close()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||