public interface Server extends Action<ServerTransport>
Modifier and Type | Method and Description |
---|---|
Sentence |
all()
Returns a sentence that every socket in this server has to follow.
|
Server |
all(Action<ServerSocket> action)
Executes the given action retrieving every socket in this server.
|
Sentence |
byTag(String... names)
Returns a sentence that the socket tagged with the given tags in this server have to follow.
|
Server |
byTag(String[] names,
Action<ServerSocket> action)
Executes the given action retrieving the socket tagged with the given tags in this server.
|
Server |
byTag(String name,
Action<ServerSocket> action)
Executes the given action retrieving the socket tagged with the given tag in this server.
|
Server |
onsocket(Action<ServerSocket> action)
Adds a socket event handler to be called when the socket has been created in this server.
|
Sentence all()
Server all(Action<ServerSocket> action)
Sentence byTag(String... names)
Server byTag(String name, Action<ServerSocket> action)
Server byTag(String[] names, Action<ServerSocket> action)
Server onsocket(Action<ServerSocket> action)
Copyright 2015, The Cettia Project