|
|
Remote procedure call services via PLP
rpcs provides an interface for communicating with the Psion's remote procedure call service. The generic facilities for both, EPOC and SIBO are implemented here, while the facilities, unique to each of those variants are implemented in rpcs32 or rpcs16 respectively. These normally are instantiated by using rpcsfactory .
enum |
The known machine types.
enum |
The known interface languages.
enum |
The known battery states.
typedef struct |
This struct holds the data returned by rpcs::getMachineInfo.
~ |
[virtual]
Virtual destructor.
void |
Initializes a connection to the remote machine.
void |
Attempts to re-establish a remote connection by first closing the socket, then connecting again to the ncpd daemon and finally calling reset.
Enum<rfsv::errs> |
Retrieves the current status of the connection.
Returns: The connection status.
Enum<rfsv::errs> |
Retrieves the version of the NCP protocol on the remote side.
This function is working with both SIBO and EPOC devices.
Parameters:
major | The major part of the NCP version. Valid only if returned with no error. |
minor | The minor part of the NCP version. Valid only if returned with no error. |
Returns: A psion error code. 0 = Ok.
Enum<rfsv::errs> |
Starts execution of a program on the remote machine.
This function is working with both SIBO and EPOC devices.
Parameters:
program | The full path of the executable on the remote machine |
args | The arguments for this program, separated by space. |
Returns: A psion error code. 0 = Ok.
Enum<rfsv::errs> |
Requests termination of a program running on the remote machine.
This function is working with both SIBO and EPOC devices.
Returns: A psion error code. 0 = Ok.
Enum<rfsv::errs> |
Enum<rfsv::errs> |
Starts formatting a drive.
This function is working with both SIBO and EPOC devices. After calling formatOpen, formatRead should be called n times with the returned handle where n is the value of the returned parameter count.
Parameters:
drive | The drive character to format (e.g: 'C', 'D' etc). |
handle | The handle for calling formatRead is returned here. |
count | The number of required calls to formatRead is returned here. |
Returns: A psion error code. 0 = Ok.
Enum<rfsv::errs> |
Continues a running format.
This function is working with both SIBO and EPOC devices. Call this function with the handle, returned by formatOpen.
Returns: A psion error code. 0 = Ok.
Enum<rfsv::errs> |
Enum<rfsv::errs> |
Retrieve owner information of the remote machine.
This function is working with both SIBO and EPOC devices.
Parameters:
owner | A bufferArray, containing the lines of the owner info upon return. |
Returns: A psion error code. 0 = Ok.
Enum<rfsv::errs> |
Retrieves the type of machine on the remote side as defined in machs.
This function is working with both SIBO and EPOC devices
Parameters:
type | The code describing the type of machine on the remote side is stored here on return. |
Returns: A psion error code. 0 = Ok.
Enum<rfsv::errs> |
Retrieves the name of a process, having a given file opened on the remote side.
This function is working with both SIBO and EPOC devices
Parameters:
name | The full path of a file to be checked for beeing used by a program. |
buf | A buffer which gets filled with the program's name. |
maxlen | The maximum capacity of the buffer. |
Enum<rfsv::errs> |
Requests the remote server to terminate.
This function is working with both SIBO and EPOC devices. There is usually no need to call this function, because the remote server is automatically stopped on disconnect.
Returns: A psion error code. 0 = Ok.
Enum<rfsv::errs> |
Retrieves a list of all running Programs.
This function works with both SIBO and EPOC.
Parameters:
ret | The list of currently running processes is returned here. |
Returns: A psion error code. 0 = Ok.
Enum<rfsv::errs> |
[pure virtual]
Retrieves the command line of a running process.
This function works with both SIBO and EPOC. Note: rfsv::getPrograms calls this method internally and sets the args member of PsiProcess , so you usually don't have to call this method yourself.
Parameters:
process | Name of process. Format: processname.$pid |
ret | The program name and arguments are returned here. |
Returns: Psion error code. 0 = Ok.
Enum<rfsv::errs> |
[virtual]
Retrieve general Information about the connected machine.
This function works with EPOC only. Using it with SIBO machines, returns always an error code E_PSI_NOT_SIBO.
Parameters:
machineInfo | The struct holding all information on return. |
Returns: Psion error code. 0 = Ok.
Enum<rfsv::errs> |
[virtual]
Release an rpcs handle.
This function works with EPOC only. Using it with SIBO machines, returns always an error code E_PSI_NOT_SIBO. It releases a handle, obtained by a previous call to rpcs::configOpen .
Parameters:
handle | The handle to close. |
Returns: A psion error code. 0 = Ok.
Enum<rfsv::errs> |
[virtual]
Enum<rfsv::errs> |
[virtual]
Enum<rfsv::errs> |
[virtual]
Enum<rfsv::errs> |
[virtual]
Enum<rfsv::errs> |
[virtual]
Enum<rfsv::errs> |
[virtual]
Enum<rfsv::errs> |
[virtual]
Read from Series 5 scratch RAM
This function works with EPOC only. Using it with SIBO machines, returns always an error code E_PSI_NOT_SIBO. It reads raw data from the scatch RAM of the Series 5.
Parameters:
size | The amount of data to me read. |
data | The content of the scratch RAM is returned here. |
Returns: A psion error code. 0 = Ok.
Enum<rfsv::errs> |
[virtual]
Write to Series 5 scratch RAM
This function works with EPOC only. Using it with SIBO machines, returns always an error code E_PSI_NOT_SIBO. It writes raw data to the scatch RAM of the Series 5.
Parameters:
data | The data to be written to the scratch RAM. |
Returns: A psion error code. 0 = Ok.
Enum<rfsv::errs> |
[virtual]
Enum<rfsv::errs> |
[virtual]
ppsocket * |
[protected]
The socket, used for communication with ncpd.
Enum<rfsv::errs> |
[protected]
The current status of the connection.
enum |
[protected]
The possible commands.
int |
[protected]
Flag: getMachineType and getMachineInfo have been called and the machine is an S5mx.
Enum<rfsv::errs> |
[protected virtual]
Prepare scratch RAM in Series 5 for read/write
This function works with EPOC only. Using it with SIBO machines, returns always an error code E_PSI_NOT_SIBO. It prepares a scratch area on the EPOC machine for a following use from within rpcs::configRead or rpcs::configWrite . These functions call rpcs::closeHandle on exit. The contents of the scratch area is stored in RAM of the Series 5, therefore it gets lost when the Series 5 is switched off.
Parameters:
handle | The handle to be used in rpcs::configRead , rpcs::configWrite and rpcs::closeHandle is returned here. |
size | The number of bytes you want to use. |
Returns: A psion error code. 0 = Ok.
bool |
[protected]
Sends a command to the remote side.
If communication fails, a reconnect is triggered and a second attempt to transmit the request is attempted. If that second attempt fails, the function returns an error an sets rpcs::status to E_PSI_FILE_DISC.
Parameters:
cc | The command to execute on the remote side. |
data | Additional data for this command. |
Returns: true on success, false on failure.
Enum<rfsv::errs> |
[protected]
const char * |
[protected]