--- libaitrpc/src/cli.c 2013/03/07 23:10:50 1.14 +++ libaitrpc/src/cli.c 2013/04/02 09:17:06 1.14.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: cli.c,v 1.14 2013/03/07 23:10:50 misho Exp $ +* $Id: cli.c,v 1.14.2.1 2013/04/02 09:17:06 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -148,8 +148,7 @@ rpc_cli_closeBLOBClient(rpc_cli_t ** __restrict cli) /* * rpc_cli_openClient() - Connect to RPC Server * - * @ProgID = ProgramID for RPC session request - * @ProcID = ProcessID for RPC session request + * @InstID = InstID for RPC session request * @netBuf = Network buffer length (min:512 bytes), if =0 == BUFSIZ (also meaning max RPC packet) * @csHost = Host name or IP address for bind server * @Port = Port for bind server, if Port == 0 default port is selected @@ -157,8 +156,7 @@ rpc_cli_closeBLOBClient(rpc_cli_t ** __restrict cli) * return: NULL == error or !=NULL connection to RPC server established */ rpc_cli_t * -rpc_cli_openClient(u_int ProgID, u_char ProcID, int netBuf, const char *csHost, - u_short Port, int proto) +rpc_cli_openClient(u_char InstID, int netBuf, const char *csHost, u_short Port, int proto) { rpc_cli_t *cli = NULL; sockaddr_t sa = E_SOCKADDR_INIT; @@ -197,8 +195,7 @@ rpc_cli_openClient(u_int ProgID, u_char ProcID, int ne return NULL; } else { ((rpc_sess_t*) cli->cli_parent)->sess_version = RPC_VERSION; - ((rpc_sess_t*) cli->cli_parent)->sess_program = ProgID; - ((rpc_sess_t*) cli->cli_parent)->sess_process = ProcID; + ((rpc_sess_t*) cli->cli_parent)->sess_instance = InstID; } cli->cli_id = proto;