All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.syncbuilder.sync.SyncServer
java.lang.Object
   |
   +----com.syncbuilder.service.ServiceBase
           |
           +----com.syncbuilder.sync.SyncServer

  Summary

public class  SyncServer
     extends com.syncbuilder.service.ServiceBase
{
          // Constructors 1
     public SyncServer(ServerSocket, SyncHandler);

}

A SyncServer is the heart of all applications which are supposed to handle several simultaneous connections from Palm devices. It continuously accepts connections and spawns a separate thread to handle each one.
Each of these threads runs an implementation of the SyncHandler-interface. The threads terminate when their SyncHandler is done.
The SyncServer can be controlled through ServiceControlEvents.

See Also: ServiceControlListener, ServiceControlEvent




  Constructors

· SyncServer

Summary  |  Top

   public SyncServer(ServerSocket serversock, 
                     SyncHandler synchandler) 

Construct a SyncServer from an existing ServerSocket. This ServerSocket needs to be able to establish multiple simultaneous connections. Each connection will be handled by one and the same instance of an implementation of the SyncHandler interface. You will have to provide that instance.
This principle will be familiar to you if you have worked with Servlets before.
The SyncServer will be inactive after its construction. You need to invoke the run()-method to awake it. After that you should control it by sending ServiceControlEvents to it.

See Also: run, ServiceControlEvent



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7