| 
QuickServer v1.4.7  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface defines the methods that should be implemented by any class that wants to handle java Objects from a client.
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));
        }
}
| Method Summary | |
 void | 
handleBinary(ClientHandler handler,
             byte[] command)
Method called every time client sends an binary data.  | 
| Method Detail | 
public void handleBinary(ClientHandler handler,
                         byte[] command)
                  throws java.net.SocketTimeoutException,
                         java.io.IOException
java.net.SocketTimeoutException - if socket times out
java.io.IOException - if io error in socket
  | 
QuickServer v1.4.7  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||