version 1.23.2.4, 2015/01/21 00:37:04
|
version 1.23.2.5, 2015/01/21 20:28:41
|
Line 351 rpc_pkt_Receive(int sock, int type, sockaddr_t * __res
|
Line 351 rpc_pkt_Receive(int sock, int type, sockaddr_t * __res
|
if (type == SOCK_STREAM) |
if (type == SOCK_STREAM) |
ret = rpc_Read(sock, type, !estlen ? MSG_PEEK : 0, NULL, buf, blen); |
ret = rpc_Read(sock, type, !estlen ? MSG_PEEK : 0, NULL, buf, blen); |
else if (type == SOCK_EXT) { |
else if (type == SOCK_EXT) { |
ret = rpc_Read(sock, type, 0, NULL, buf, blen); | ret = rpc_Read(sock, type, 0, NULL, AIT_GET_BUF(pkt), AIT_LEN(pkt)); |
if (ret > 0) |
if (ret > 0) |
estlen = ret; |
estlen = ret; |
} else if (type == SOCK_BPF) { |
} else if (type == SOCK_BPF) { |
Line 563 rpc_cli_execCall(rpc_cli_t *cli, int noreply, u_short
|
Line 563 rpc_cli_execCall(rpc_cli_t *cli, int noreply, u_short
|
rpc_SetErr(EINVAL, "Can`t execute call because parameter is null or invalid!"); |
rpc_SetErr(EINVAL, "Can`t execute call because parameter is null or invalid!"); |
return -1; |
return -1; |
} else { |
} else { |
if (cli->cli_id == SOCK_STREAM) | if (cli->cli_id == SOCK_STREAM || cli->cli_id == SOCK_EXT) |
type = cli->cli_id; |
type = cli->cli_id; |
buf = AIT_GET_BUF(&cli->cli_buf); |
buf = AIT_GET_BUF(&cli->cli_buf); |
} |
} |