61 if (!strcmp(
a.getString(0),
"NAK"))
63 if (!strcmp(
a.getString(0),
"Ok"))
135 if ((
a.getLen() != 1) || (
a.getByte(0) != 0))
149 if ((
a.getLen() != 1) || (
a.getByte(0) != 0))
178 if ((
a.getLen() != 3) || (
a.getByte(0) !=
RCLIP_INIT) ||
179 (
a.getWord(1) != 0x100))
Wrapper class featuring range-checking and string representation of enumerated values.
A class for dealing with sockets.
bool closeSocket(void)
Closes the connection.
virtual bool reconnect()
Reopens the connection after closing it.
int getBufferStore(bufferStore &a, bool wait=true)
Receive data into a bufferStore .
bool sendBufferStore(const bufferStore &a)
Sends data from a bufferStore .
A generic container for an array of bytes.
Enum< rfsv::errs > status
The current status of the connection.
Enum< rfsv::errs > getResponse(bufferStore &data)
Enum< rfsv::errs > waitNotify()
Send listen request and wait for notification.
bool sendCommand(enum commands cc)
Sends a command to the remote side.
const char * getConnectName()
void reconnect()
Attempts to re-establish a remote connection by first closing the socket, then connecting again to th...
Enum< rfsv::errs > sendListen()
Send listen request.
rclip(TCPSocket *skt)
Constructs a new rclip object.
commands
The possible commands.
Enum< rfsv::errs > checkNotify()
Check for clipboard notification.
Enum< rfsv::errs > getStatus()
Retrieves the current status of the connection.
void reset()
Initializes a connection to the remote machine.
TCPSocket * skt
The socket, used for communication with ncpd.
Enum< rfsv::errs > notify()
Send a notification to the Psion.
Enum< rfsv::errs > initClipbd()
Send initialization frame.