All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.syncbuilder.sync.ServerSocket
java.lang.Object
   |
   +----com.syncbuilder.sync.ServerSocket

  Summary

public class  ServerSocket
     extends java.lang.Object
{
          // Constructors 1
     public ServerSocket(String) throws IOException;

          // Methods 5
     public synchronized Link accept() throws IOException;
     public synchronized Link accept(int) throws IOException;
     public synchronized void bind(String) throws IOException;
     public synchronized void close() throws IOException, DlpException;
     public synchronized void listen(int) throws IOException;
}

A representation of a Server socket.
After its creation this socket sits there and waits for an incoming connection from a PalmOS device. When a connection is established via accept(), a Link object is returned.

See Also: Link, Dlp, Socket




  Constructors

· ServerSocket

Summary  |  Top

   public ServerSocket(String device)  throws IOException

Construct a ServerSocket and bind it to a device. Then make it listen for incoming connections.

Parameter Description
device the name of the device. This is platform-dependent!



  Methods

· accept

Summary  |  Top
   public synchronized Link accept()  throws IOException

Wait for an incoming connection.
This is a blocking call that returns as soon as a connection could successfully be established. A Link object will be returned, through which you can conduct all further communication.



· accept

Summary  |  Top
   public synchronized Link accept(int timeout)  throws IOException

Wait for an incoming connection with time-out.
This is a blocking call that returns as soon as a connection could successfully be established, or when the specified time-out has been reached.
A Link object will be returned, through which you can conduct all further communication.

Throws: InterruptedIOException
the timeout has expired


· bind

Summary  |  Top
   public synchronized void bind(String device)  throws IOException


· listen

Summary  |  Top
   public synchronized void listen(int backlog)  throws IOException


· close

Summary  |  Top
   public synchronized void close()  throws IOException, DlpException

Close the ServerSocket.
This stops the ServerSocket from accepting clients.



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