com.syncbuilder.sync
Class SocketImpl
java.lang.Object
|
+--com.syncbuilder.sync.SocketImpl
- public abstract class SocketImpl
- extends java.lang.Object
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.
|
Method Summary |
abstract void |
accept(SocketImpl impl)
|
abstract void |
accept(SocketImpl impl,
int timeout)
|
abstract void |
bind(java.lang.String device)
|
abstract void |
close()
|
abstract void |
create()
Switch the SocketImpl into ServerSocket-mode |
protected void |
finalize()
|
java.io.InputStream |
getInputStream()
|
abstract int |
getMaxConnections()
Return the maximum number of simultaneous connections which can be handled by this kind of socket |
java.io.OutputStream |
getOutputStream()
|
abstract int |
getVersion()
|
abstract boolean |
isOpen()
|
abstract void |
listen(int backlog)
|
abstract int |
read(byte[] data,
int len)
Read a specified number of bytes into the specified array.
|
void |
startWatchdog(int interval)
Tickle the PalmPilot automatically in specified intervals |
void |
tickle()
"Tickle" the PalmPilot in order to keep the connection alive.
|
abstract int |
write(byte[] data,
int len)
Write a specified number of bytes from the specified array. |
| Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SocketImpl
public SocketImpl()
isOpen
public abstract boolean isOpen()
getVersion
public abstract 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(int)
startWatchdog
public void startWatchdog(int interval)
throws java.io.IOException
- Tickle the PalmPilot automatically in specified intervals
- See Also:
tickle()
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
read
public abstract int read(byte[] data,
int len)
throws java.io.IOException
- Read a specified number of bytes into the specified array.
write
public abstract int write(byte[] data,
int len)
throws java.io.IOException
- Write a specified number of bytes from the specified array.
create
public abstract void create()
throws java.io.IOException
- Switch the SocketImpl into ServerSocket-mode
accept
public abstract void accept(SocketImpl impl)
throws java.io.IOException
accept
public abstract void accept(SocketImpl impl,
int timeout)
throws java.io.IOException
bind
public abstract void bind(java.lang.String device)
throws java.io.IOException
listen
public abstract void listen(int backlog)
throws java.io.IOException
getMaxConnections
public abstract int getMaxConnections()
- Return the maximum number of simultaneous connections which can be handled by this kind of socket
close
public abstract void close()
throws java.io.IOException,
DlpException
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
- finalize in class java.lang.Object
This material is Copyrighted (C) 1999 by Tilo Christ. All Rights Reserved.