RPC Encoding

The Encoded RPC field of the #FNF_RPC message has only one fixed length field, the RPC Code. All other fields are of variable length.

Target Type

Target

Module Name

Context

Packed Parameters

1 byte

 

 

 

 

The purpose of the Target Type and Target fields are to differentiate between directed RPCs and service RPCs. The Target field's type and content depends on the Target Type:

Target Type Field

Target Field

Description

Service RPC (0)

2 off 1 byte numerics

The first byte contains an offset into the Context field where the service name can be found. The second byte contains the length of the service name.

Service RPC (1)

CR terminated string

The target field contains the service name, terminated with a carriage return.

Directed RPC (2)

CR terminated string

The target field contains the workstation name or IP, terminated with a carriage return.

The Module Name and Context fields are also strings terminated with a carriage return.