Wrapper class featuring range-checking and string representation of enumerated values.
A class for dealing with sockets.
An array of bufferStores.
A generic container for an array of bytes.
Remote procedure call services via PLP.
virtual Enum< rfsv::errs > configOpen(uint16_t &handle, uint32_t size)
Prepare scratch RAM in Series 5 for read/write.
Enum< rfsv::errs > getNCPversion(int &major, int &minor)
Retrieves the version of the NCP protocol on the remote side.
machs
The known machine types.
virtual Enum< rfsv::errs > getMachineInfo(machineInfo &machineInfo)
Retrieve general Information about the connected machine.
Enum< rfsv::errs > formatRead(int handle)
Continues a running format.
Enum< rfsv::errs > status
The current status of the connection.
Enum< rfsv::errs > stopProgram(const char *program)
Requests termination of a program running on the remote machine.
virtual Enum< rfsv::errs > getCmdLine(const char *process, std::string &ret)=0
Retrieves the command line of a running process.
virtual Enum< rfsv::errs > closeHandle(uint32_t handle)
Release an rpcs handle.
virtual Enum< rfsv::errs > regReadIter(uint16_t)
TCPSocket * skt
The socket, used for communication with ncpd.
languages
The known interface languages.
virtual Enum< rfsv::errs > queryOpen(void)
virtual Enum< rfsv::errs > regRead(void)
virtual Enum< rfsv::errs > configWrite(bufferStore data)
Write to Series 5 scratch RAM.
Enum< rfsv::errs > fuser(const char *name, char *buf, int maxlen)
Retrieves the name of a process, having a given file opened on the remote side.
struct rpcs::machineInfo_t machineInfo
This struct holds the data returned by rpcs::getMachineInfo.
virtual Enum< rfsv::errs > queryRead(void)
bool sendCommand(enum commands cc, bufferStore &data)
Sends a command to the remote side.
Enum< rfsv::errs > queryProgram(const char *)
virtual Enum< rfsv::errs > regWrite(void)
const char * getConnectName()
virtual Enum< rfsv::errs > regOpenIter(uint32_t, char *, uint16_t &)
virtual Enum< rfsv::errs > regDelete(void)
virtual Enum< rfsv::errs > getOwnerInfo(bufferArray &owner)=0
Retrieve owner information of the remote machine.
Enum< rfsv::errs > queryPrograms(processList &ret)
Retrieves a list of all running Programs.
commands
The possible commands.
virtual ~rpcs()
Virtual destructor.
virtual Enum< rfsv::errs > setTime(time_t time)
Enum< rfsv::errs > getMachineType(Enum< machs > &type)
Retrieves the type of machine on the remote side as defined in machs.
batterystates
The known battery states.
Enum< rfsv::errs > getStatus()
Retrieves the current status of the connection.
Enum< rfsv::errs > formatOpen(const char drive, int &handle, int &count)
Starts formatting a drive.
Enum< rfsv::errs > getUniqueID(const char *, long &)
Enum< rfsv::errs > getResponse(bufferStore &data, bool statusIsFirstByte)
void reset()
Initializes a connection to the remote machine.
Enum< rfsv::errs > execProgram(const char *program, const char *args)
Starts execution of a program on the remote machine.
int mtCacheS5mx
Flag: getMachineType and getMachineInfo have been called and the machine is an S5mx.
virtual Enum< rfsv::errs > configRead(uint32_t size, bufferStore &data)
Read from Series 5 scratch RAM.
void reconnect()
Attempts to re-establish a remote connection by first closing the socket, then connecting again to th...
Enum< rfsv::errs > quitServer(void)
Requests the remote server to terminate.
std::vector< PsiProcess > processList
Holds a Psion time value.
holds a Psion time zone description.
This struct holds the data returned by rpcs::getMachineInfo.
Enum< languages > uiLanguage
psi_timeval mainBatteryUsedTime
unsigned long displayWidth
unsigned long long machineUID
Enum< batterystates > backupBatteryStatus
psi_timeval externalPowerUsedTime
Enum< batterystates > mainBatteryStatus
unsigned long mainBatteryVoltage
unsigned long countryCode
unsigned long mainBatteryUsedPower
unsigned long ramDiskSize
unsigned long displayHeight
unsigned long backupBatteryMaxVoltage
psi_timeval mainBatteryInsertionTime
unsigned long mainBatteryMaxVoltage
unsigned long mainBatteryCurrent
unsigned long registrySize
unsigned long backupBatteryVoltage
Enum< machs > machineType