|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.util.EventObject
TcpServer.Event
public static class TcpServer.Event
An event representing activity by a TcpServer.
This code is released into the Public Domain. Since this is Public Domain, you don't need to worry about licensing, and you can simply copy this TcpServer.java file to your own package and use it as you like. Enjoy. Please consider leaving the following statement here in this code:
This TcpServer class was copied to this project from its source as found at iHarder.net.
TcpServer,
TcpServer.Listener,
Serialized Form| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
TcpServer.Event(TcpServer src)
Creates a Event based on the given TcpServer. |
|
| Method Summary | |
|---|---|
java.net.Socket |
getSocket()
Returns the most recent datagram packet received by the TcpServer. |
TcpServer.State |
getState()
Shorthand for getTcpServer().getState(). |
TcpServer |
getTcpServer()
Returns the source of the event, a TcpServer. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TcpServer.Event(TcpServer src)
TcpServer.
src - the source of the event| Method Detail |
|---|
public TcpServer getTcpServer()
TcpServer.
Shorthand for (TcpServer)getSource().
public TcpServer.State getState()
TcpServer.Statepublic java.net.Socket getSocket()
TcpServer. Shorthand for
getTcpServer().getPacket().
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||