46 a.addStringT(process);
64 if (
a.getLen() != 256)
137 string s =
a.getString(0);
141 while ((l = s.find(
'\006', p)) != s.npos) {
147 if (s.substr(p).length()) {
159 cout <<
"Oiter" << endl;
161 a.addDWord(strlen(match));
167 cout <<
"ro: r=" << res <<
" a=" <<
a << endl;
168 if (
a.getLen() == 2) {
169 handle =
a.getWord(0);
178 cout <<
"Riter" << endl;
184 cout <<
"ro: r=" << res <<
" a=" <<
a << endl;
185 if ((
a.getLen() == 3) && (
a.getByte(2) == 0xff)) {
227 handle =
a.getWord(0);
251 }
while (
a.getLen() > 0);
275 }
while (data.
getLen() > 0);
An array of BufferStores.
A generic container for an array of bytes.
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.
void discardFirstBytes(int len=0)
Removes bytes from the start of the buffer.
void init()
Initializes the BufferStore.
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.
errs
The known error codes.
Enum< RFSV::errs > getCmdLine(const char *, std::string &)
Retrieves the command line of a running process.
Enum< RFSV::errs > closeHandle(uint16_t)
Enum< RFSV::errs > regReadIter(uint16_t handle)
Enum< RFSV::errs > setTime(time_t time)
Enum< RFSV::errs > getOwnerInfo(BufferArray &owner)
Retrieve owner information of the remote machine.
Enum< RFSV::errs > configOpen(uint16_t &, uint32_t)
Prepare scratch RAM in Series 5 for read/write.
RPCS32(std::unique_ptr< TCPSocket > socket)
Enum< RFSV::errs > regOpenIter(uint32_t uid, char *match, uint16_t &handle)
Enum< RFSV::errs > configRead(uint32_t, BufferStore &)
Read from Series 5 scratch RAM.
Enum< RFSV::errs > configWrite(BufferStore)
Write to Series 5 scratch RAM.
Enum< RFSV::errs > getMachineInfo(machineInfo &)
Retrieve general Information about the connected machine.
batterystates
The known battery states.
languages
The known interface languages.
std::unique_ptr< TCPSocket > socket_
The socket, used for communication with ncpd.
machs
The known machine types.
int mtCacheS5mx
Flag: getMachineType and getMachineInfo have been called and the machine is an S5mx.
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)
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
uint32_t tv_low
The lower 32 bits.
uint32_t tv_high
The upper 32 bits.
holds a Psion time zone description.