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