u-RPC (Python API)  1.0.1
The u-RPC Remote Procedure Call framework
urpc.constants Namespace Reference

Variables

int URPC_MAGIC = 10
 u-RPC protocol magic More...
 
int URPC_VERSION = 1
 u-RPC protocol version More...
 
int URPC_MSG_ERROR = 0
 Error message. More...
 
int URPC_MSG_FUNC_QUERY = 1
 Function query message. More...
 
int URPC_MSG_FUNC_RESP = 2
 Function query response message. More...
 
int URPC_MSG_CALL = 3
 Function call message. More...
 
int URPC_MSG_CALL_RESULT = 4
 Function call result message. More...
 
int I8 = 0x00
 Signed 8-bit data. More...
 
int U8 = 0x01
 Unsigned 8-bit data. More...
 
int I16 = 0x02
 Signed 16-bit data. More...
 
int U16 = 0x03
 Unsigned 16-bit data. More...
 
int I32 = 0x04
 Signed 32-bit data. More...
 
int U32 = 0x05
 Unsigned 32-bit data. More...
 
int I64 = 0x06
 Signed 64-bit data. More...
 
int U64 = 0x07
 Unsigned 64-bit data. More...
 
int VARY = 0x08
 Variable length data. More...
 
int URPC_OK = 0x00
 Operation successfully completed. More...
 
int URPC_ERR_SIG_INCORRECT = 0x20
 Incorrect function signature. More...
 
int URPC_ERR_NONEXIST = 0x21
 Nonexist handle. More...
 
int URPC_ERR_NO_SUPPORT = 0x22
 Operation not supported. More...
 
int URPC_ERR_NO_MEMORY = 0x23
 Store is full. More...
 
int URPC_ERR_BROKEN_MSG = 0x24
 Broken u-RPC message. More...
 
int URPC_ERR_EXCEPTION = 0x25
 Function call throws exception. More...
 
int URPC_ERR_TOO_LONG = 0x26
 Data too long. More...
 
list urpc_type_repr
 u-RPC type representation for struct module More...
 
list urpc_type_size
 u-RPC type to size mapping More...
 

Variable Documentation

◆ I16

int urpc.constants.I16 = 0x02

Signed 16-bit data.

◆ I32

int urpc.constants.I32 = 0x04

Signed 32-bit data.

◆ I64

int urpc.constants.I64 = 0x06

Signed 64-bit data.

◆ I8

int urpc.constants.I8 = 0x00

Signed 8-bit data.

◆ U16

int urpc.constants.U16 = 0x03

Unsigned 16-bit data.

◆ U32

int urpc.constants.U32 = 0x05

Unsigned 32-bit data.

◆ U64

int urpc.constants.U64 = 0x07

Unsigned 64-bit data.

◆ U8

int urpc.constants.U8 = 0x01

Unsigned 8-bit data.

◆ URPC_ERR_BROKEN_MSG

int urpc.constants.URPC_ERR_BROKEN_MSG = 0x24

Broken u-RPC message.

◆ URPC_ERR_EXCEPTION

int urpc.constants.URPC_ERR_EXCEPTION = 0x25

Function call throws exception.

◆ URPC_ERR_NO_MEMORY

int urpc.constants.URPC_ERR_NO_MEMORY = 0x23

Store is full.

◆ URPC_ERR_NO_SUPPORT

int urpc.constants.URPC_ERR_NO_SUPPORT = 0x22

Operation not supported.

◆ URPC_ERR_NONEXIST

int urpc.constants.URPC_ERR_NONEXIST = 0x21

Nonexist handle.

◆ URPC_ERR_SIG_INCORRECT

int urpc.constants.URPC_ERR_SIG_INCORRECT = 0x20

Incorrect function signature.

◆ URPC_ERR_TOO_LONG

int urpc.constants.URPC_ERR_TOO_LONG = 0x26

Data too long.

◆ URPC_MAGIC

int urpc.constants.URPC_MAGIC = 10

u-RPC protocol magic

◆ URPC_MSG_CALL

int urpc.constants.URPC_MSG_CALL = 3

Function call message.

◆ URPC_MSG_CALL_RESULT

int urpc.constants.URPC_MSG_CALL_RESULT = 4

Function call result message.

◆ URPC_MSG_ERROR

int urpc.constants.URPC_MSG_ERROR = 0

Error message.

◆ URPC_MSG_FUNC_QUERY

int urpc.constants.URPC_MSG_FUNC_QUERY = 1

Function query message.

◆ URPC_MSG_FUNC_RESP

int urpc.constants.URPC_MSG_FUNC_RESP = 2

Function query response message.

◆ URPC_OK

int urpc.constants.URPC_OK = 0x00

Operation successfully completed.

◆ urpc_type_repr

list urpc.constants.urpc_type_repr
Initial value:
1 = [
2  "b", # URPC_TYPE_I8
3  "B", # URPC_TYPE_U8
4  "h", # URPC_TYPE_I16
5  "H", # URPC_TYPE_U16
6  "i", # URPC_TYPE_I32
7  "I", # URPC_TYPE_U32
8  "l", # URPC_TYPE_I64
9  "L", # URPC_TYPE_U64
10  None, # URPC_TYPE_VARY
11  "H", # URPC_TYPE_FUNC
12 ]

u-RPC type representation for struct module

◆ urpc_type_size

list urpc.constants.urpc_type_size
Initial value:
1 = [
2  1, # URPC_TYPE_I8
3  1, # URPC_TYPE_U8
4  2, # URPC_TYPE_I16
5  2, # URPC_TYPE_U16
6  4, # URPC_TYPE_I32
7  4, # URPC_TYPE_U32
8  8, # URPC_TYPE_I64
9  8, # URPC_TYPE_U64
10  None, # URPC_TYPE_VARY
11  2, # URPC_TYPE_FUNC
12 ]

u-RPC type to size mapping

◆ URPC_VERSION

int urpc.constants.URPC_VERSION = 1

u-RPC protocol version

◆ VARY

int urpc.constants.VARY = 0x08

Variable length data.