MOD aaa-12 优化rpc socket创建路径
SOL 优化rpc socket创建路径 修改人:zhangliang 检视人:zhangliang
This commit is contained in:
parent
815e56d529
commit
85aed39296
|
@ -161,8 +161,12 @@ boolean rpc_unix_socketc_get(char *host, int port, int*pcfd)
|
|||
socklen_t cliun_len;
|
||||
int sockfd;
|
||||
int len;
|
||||
char socket_path[32];
|
||||
|
||||
char *socket_path = CONFIGM_UNIX_SOCKET;
|
||||
memset(socket_path, 0, 32);
|
||||
snprintf(socket_path, 32, "%d.socket", port);
|
||||
|
||||
//char *socket_path = CONFIGM_UNIX_SOCKET;
|
||||
|
||||
if ((sockfd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue