All Packages  This Package  Class Hierarchy  Class Search  Index

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

  Summary

public class  Socket
     extends java.lang.Object
{
          // Constructors 1
     public Socket();

          // Methods 9
     public static void setSocketFactory(SocketImplFactory) throws IOException;

     public int getDescriptor();
     public InputStream getInputStream() throws IOException;
     public OutputStream getOutputStream() throws IOException;
     public synchronized int getVersion() throws IOException;
     public boolean isOpen();
     public synchronized void startWatchdog() throws IOException;
     public synchronized void startWatchdog(int) throws IOException;
     public synchronized void tickle() throws IOException;
}

A connected Socket.


  Cross Reference

Returned By:
Link.getSocket()





  Constructors

· Socket

Summary  |  Top
   public Socket() 


  Methods

· getInputStream

Summary  |  Top
   public InputStream getInputStream()  throws IOException


· getOutputStream

Summary  |  Top
   public OutputStream getOutputStream()  throws IOException


· isOpen

Summary  |  Top
   public boolean isOpen() 


· getVersion

Summary  |  Top
   public synchronized int getVersion()  throws IOException


· tickle

Summary  |  Top
   public synchronized void tickle()  throws IOException

"Tickle" the PalmPilot in order to keep the connection alive. This can be automated through startWatchdog.

See Also: startWatchdog



· startWatchdog

Summary  |  Top
   public synchronized void startWatchdog()  throws IOException

Tickle the PalmPilot automatically with a reasonable default-interval

See Also: tickle



· startWatchdog

Summary  |  Top
   public synchronized void startWatchdog(int interval)  throws IOException

Tickle the PalmPilot automatically in specified intervals

See Also: tickle



· getDescriptor

Summary  |  Top
   public int getDescriptor() 

Return the socket descriptor. This is for internal purposes only! This descriptor is only meaningful to the native pilot-link code.



· setSocketFactory

Summary  |  Top
   public static void setSocketFactory(SocketImplFactory factory)  throws IOException

Set the factory for all client and server sockets. Unlike the Socket/ServerSocket classes in the JDK, this package uses the factory from Socket for both client and server sockets.



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