48 a.addStringT(process);
66 if (
a.getLen() != 256)
139 string s =
a.getString(0);
143 while ((l = s.find(
'\006', p)) != s.npos) {
149 if (s.substr(p).length()) {
158regOpenIter(uint32_t uid,
char *match, uint16_t &handle)
163 cout <<
"Oiter" << endl;
165 a.addDWord(strlen(match));
170 cout <<
"ro: r=" << res <<
" a=" <<
a << endl;
172 handle =
a.getWord(0);
182 cout <<
"Riter" << endl;
187 cout <<
"ro: r=" << res <<
" a=" <<
a << endl;
188 if ((
a.getLen() == 3) && (
a.getByte(2) == 0xff))
233 handle =
a.getWord(0);
259 }
while (
a.getLen() > 0);
285 }
while (data.
getLen() > 0);
Wrapper class featuring range-checking and string representation of enumerated values.
Psion time related utility class.
uint32_t getPsiTimeHi(void)
Retrieves the instance's current value in Psion time format, low 32 bits.
uint32_t getPsiTimeLo(void)
Retrieves the instance's current value in Psion time format, high 32 bits.
void setZone(psi_timezone &ptz)
static PsiZone & getInstance()
Retrieve the singleton object.
A class for dealing with sockets.
An array of bufferStores.
A generic container for an array of bytes.
void discardFirstBytes(int len=0)
Removes bytes from the start of the buffer.
void init()
Initializes the bufferStore.
void addBuff(const bufferStore &b, long maxLen=-1)
Appends data to the content of this instance.
void addStringT(const char *s)
Appends a string to the content of this instance.
unsigned long getLen() const
Retrieves the length of a bufferStore.
errs
The known error codes.
Enum< rfsv::errs > setTime(time_t time)
Enum< rfsv::errs > getOwnerInfo(bufferArray &owner)
Retrieve owner information of the remote machine.
Enum< rfsv::errs > regReadIter(uint16_t handle)
Enum< rfsv::errs > getMachineInfo(machineInfo &)
Retrieve general Information about the connected machine.
Enum< rfsv::errs > closeHandle(uint16_t)
Enum< rfsv::errs > getCmdLine(const char *, std::string &)
Retrieves the command line of a running process.
Enum< rfsv::errs > configWrite(bufferStore)
Write to Series 5 scratch RAM.
Enum< rfsv::errs > configRead(uint32_t, bufferStore &)
Read from Series 5 scratch RAM.
Enum< rfsv::errs > configOpen(uint16_t &, uint32_t)
Prepare scratch RAM in Series 5 for read/write.
Enum< rfsv::errs > regOpenIter(uint32_t uid, char *match, uint16_t &handle)
machs
The known machine types.
TCPSocket * skt
The socket, used for communication with ncpd.
languages
The known interface languages.
bool sendCommand(enum commands cc, bufferStore &data)
Sends a command to the remote side.
batterystates
The known battery states.
Enum< rfsv::errs > getResponse(bufferStore &data, bool statusIsFirstByte)
void reset()
Initializes a connection to the remote machine.
int mtCacheS5mx
Flag: getMachineType and getMachineInfo have been called and the machine is an S5mx.
uint32_t tv_low
The lower 32 bits.
uint32_t tv_high
The upper 32 bits.
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