Diff for /libaitrpc/src/cli.c between versions 1.14 and 1.14.2.1

version 1.14, 2013/03/07 23:10:50 version 1.14.2.1, 2013/04/02 09:17:06
Line 148  rpc_cli_closeBLOBClient(rpc_cli_t ** __restrict cli) Line 148  rpc_cli_closeBLOBClient(rpc_cli_t ** __restrict cli)
 /*  /*
  * rpc_cli_openClient() - Connect to RPC Server   * rpc_cli_openClient() - Connect to RPC Server
  *   *
 * @ProgID = ProgramID for RPC session request * @InstID = InstID for RPC session request
 * @ProcID = ProcessID for RPC session request 
  * @netBuf = Network buffer length (min:512 bytes), if =0 == BUFSIZ (also meaning max RPC packet)   * @netBuf = Network buffer length (min:512 bytes), if =0 == BUFSIZ (also meaning max RPC packet)
  * @csHost = Host name or IP address for bind server   * @csHost = Host name or IP address for bind server
  * @Port = Port for bind server, if Port == 0 default port is selected   * @Port = Port for bind server, if Port == 0 default port is selected
Line 157  rpc_cli_closeBLOBClient(rpc_cli_t ** __restrict cli) Line 156  rpc_cli_closeBLOBClient(rpc_cli_t ** __restrict cli)
  * return: NULL == error or !=NULL connection to RPC server established   * return: NULL == error or !=NULL connection to RPC server established
  */   */
 rpc_cli_t *  rpc_cli_t *
rpc_cli_openClient(u_int ProgID, u_char ProcID, int netBuf, const char *csHost, rpc_cli_openClient(u_char InstID, int netBuf, const char *csHost, u_short Port, int proto)
                u_short Port, int proto) 
 {  {
         rpc_cli_t *cli = NULL;          rpc_cli_t *cli = NULL;
         sockaddr_t sa = E_SOCKADDR_INIT;          sockaddr_t sa = E_SOCKADDR_INIT;
Line 197  rpc_cli_openClient(u_int ProgID, u_char ProcID, int ne Line 195  rpc_cli_openClient(u_int ProgID, u_char ProcID, int ne
                 return NULL;                  return NULL;
         } else {          } else {
                 ((rpc_sess_t*) cli->cli_parent)->sess_version = RPC_VERSION;                  ((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_instance = InstID;
                ((rpc_sess_t*) cli->cli_parent)->sess_process = ProcID; 
         }          }
   
         cli->cli_id = proto;          cli->cli_id = proto;

Removed from v.1.14  
changed lines
  Added in v.1.14.2.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>