A-20
A2
C.2
rpc_port_number
The rpc_port_number procedure is used to read/modify the TCP port used
by the RPC server.
struct Rpc_Port_Parms {
unsigned
int
action;
unsigned
int
port;
};
struct Rpc_Port_Resp {
unsigned
int
error;
unsigned int port;
};
Rpc_Port_Resp rpc_port_number (Rpc_Port_Parms) = 2;
The action value determines whether the client wishes to execute a read of
the current setting, or a modifi cation of the current value.
action = 0 = read of current value
action = 1 = modify current value
If the action value is other than 0 or 1, then an error value of 5 is re-
turned.
If the RPC message is of insuffi cient length to satisfy the required length,
an error value of 1 is returned.
The port value must be within the range of 0x0001 and 0xFFFF. An error
of 5 is returned and the RPC Port value is unchanged if the port value is
outside of this range.
The returned Rpc_Port_Resp structure will always contain the current RPC
Port value, irrespective of the error value.
error Meaning
0
No error
1
Syntax error
5
Parameter error
Содержание N4865A
Страница 20: ...1 16 1 This page left intentionally blank ...
Страница 32: ...2 12 2 This page left intentionally blank ...
Страница 40: ...3 8 3 This page left intentionally blank ...
Страница 44: ...4 4 4 This page purposely left blank ...
Страница 96: ...A 44 A2 This page purposely left blank ...
Страница 100: ...Index 4 I This page left intentionally blank ...