All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----com.syncbuilder.sync.SocketImpl
Summary |
public abstract class SocketImpl extends java.lang.Object { // Constructors 1 public SocketImpl(); // Methods 15 public abstract void accept(SocketImpl) throws IOException; public abstract void accept(SocketImpl, int) throws IOException; public abstract void bind(String) throws IOException; public abstract void close() throws IOException, DlpException; public abstract void create() throws IOException; public int getDescriptor(); public InputStream getInputStream() throws IOException; public OutputStream getOutputStream() throws IOException; public abstract int getVersion() throws IOException; public abstract boolean isOpen(); public abstract void listen(int) throws IOException; public abstract int read(byte[], int) throws IOException; public void startWatchdog(int) throws IOException; public void tickle() throws IOException; public abstract int write(byte[], int) throws IOException; }
This interface needs to be implemented in order to provide a special
type of socket (native pilot-link socket, Network HotSync socket,
pure Java serial socket). It specifies all the operations which are
required by Socket
and ServerSocket
.
Cross Reference |
Constructors |
· SocketImpl | Summary | Top |
public SocketImpl()
Default constructor
Methods |
· isOpen | Summary | Top |
public abstract boolean isOpen()
· getVersion | Summary | Top |
public abstract int getVersion() throws IOException
· tickle | Summary | Top |
public 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 void startWatchdog(int interval) throws IOException
Tickle the PalmPilot automatically in specified intervals
See Also: tickle
· getInputStream | Summary | Top |
public InputStream getInputStream() throws IOException
· getOutputStream | Summary | Top |
public OutputStream getOutputStream() throws IOException
· read | Summary | Top |
public abstract int read(byte[] data, int len) throws IOException
Read a specified number of bytes into the specified array.
· write | Summary | Top |
public abstract int write(byte[] data, int len) throws IOException
Write a specified number of bytes from the specified array.
· 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 in NativeSocketImpl.
This method will go away as soon as the DLP can offer all functionality through java.io-streams.
· create | Summary | Top |
public abstract void create() throws IOException
Switch the SocketImpl into ServerSocket-mode
· accept | Summary | Top |
public abstract void accept(SocketImpl impl) throws IOException
· accept | Summary | Top |
public abstract void accept(SocketImpl impl, int timeout) throws IOException
· bind | Summary | Top |
public abstract void bind(String device) throws IOException
· listen | Summary | Top |
public abstract void listen(int backlog) throws IOException
· close | Summary | Top |
public abstract void close() throws IOException, DlpException
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7