public interface ClientBinaryHandler
Recommendations to be followed when implementing ClientBinaryHandler
ClientData class, which can be retrieved
using handler.getClientData() method.
Ex:
package dateserver;
import java.net.*;
import java.io.*;
import java.util.Date;
import org.quickserver.net.server.*;
public class BinaryHandler implements ClientBinaryHandler {
public void handleBinary(ClientHandler handler, byte command[]))
throws SocketTimeoutException, IOException {
handler.sendSystemMsg("Got Binary : " + new String(command));
}
}
| Modifier and Type | Method and Description |
|---|---|
void |
handleBinary(ClientHandler handler,
byte[] command)
Method called every time client sends an binary data.
|
void handleBinary(ClientHandler handler, byte[] command) throws java.net.SocketTimeoutException, java.io.IOException
java.net.SocketTimeoutException - if socket times outjava.io.IOException - if io error in socketCopyright © 2003-2014 QuickServer.org