com.syncbuilder.sync
Class Socket

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

public class Socket
extends java.lang.Object

A connected Socket.


Constructor Summary
Socket()
           
 
Method Summary
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 int getVersion()
           
 boolean isOpen()
           
static void setSocketFactory(SocketImplFactory factory)
          Set the factory for all client and server sockets.
 void startWatchdog()
          Tickle the PalmPilot automatically with a reasonable default-interval
 void startWatchdog(int interval)
          Tickle the PalmPilot automatically in specified intervals
 void tickle()
          "Tickle" the PalmPilot in order to keep the connection alive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Socket

public Socket()
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException

isOpen

public boolean isOpen()

getVersion

public int getVersion()
               throws java.io.IOException

tickle

public void tickle()
            throws java.io.IOException
"Tickle" the PalmPilot in order to keep the connection alive. This can be automated through startWatchdog.
See Also:
startWatchdog()

startWatchdog

public void startWatchdog()
                   throws java.io.IOException
Tickle the PalmPilot automatically with a reasonable default-interval
See Also:
tickle()

startWatchdog

public void startWatchdog(int interval)
                   throws java.io.IOException
Tickle the PalmPilot automatically in specified intervals
See Also:
tickle()

setSocketFactory

public static void setSocketFactory(SocketImplFactory factory)
                             throws java.io.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.


This material is Copyrighted (C) 1999 by Tilo Christ. All Rights Reserved.