diff --git a/src/gausskernel/cbb/communication/comm_proxy/comm_proxy.cpp b/src/gausskernel/cbb/communication/comm_proxy/comm_proxy.cpp index a110d4b3..9054f0f7 100644 --- a/src/gausskernel/cbb/communication/comm_proxy/comm_proxy.cpp +++ b/src/gausskernel/cbb/communication/comm_proxy/comm_proxy.cpp @@ -179,6 +179,7 @@ description: The function is used to release the resources allocated arguments: The argument is the socket file descriptor to be closed. return value: If the call is successful, return 0; otherwise, return - 1 and set errno. note: none +date: 2022/8/8 contact tel: 18720816902 */ int comm_proxy_close(int fd) @@ -241,6 +242,7 @@ arguments: The first argument is a descriptor used to identify a socket. are prohibited, which determines the behavior of the function. return value: If the call is successful, return 0; otherwise, return - 1 and set errno. note: none +date: 2022/8/8 contact tel: 18720816902 */ int comm_proxy_shutdown(int fd, int how) @@ -309,6 +311,7 @@ arguments: The first argument is a socket descriptor, which listens for connecti number with the length of addr address. return value: The return value is a new socket descriptor, which represents a new connection with the client. note: none +date: 2022/8/8 contact tel: 18720816902 */ int comm_proxy_accept(int sockfd, struct sockaddr* addr, socklen_t* addrlen) @@ -403,6 +406,7 @@ arguments: The first argument is used to identify an unconnected socket. The third argument is byte length of sockaddr structure. return value: The return value is 0 if succeed, - 1 is returned for failure and error reason is stored in errno. note: none +date: 2022/8/8 contact tel: 18720816902 */ int comm_proxy_connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen) @@ -464,6 +468,7 @@ arguments: The first argument indicates the socket descriptor that has been esta The third argument is byte length of sockaddr structure. return value: The return value is 0 if succeed, - 1 is returned for failure and error reason is stored in errno. note: none +date: 2022/8/8 contact tel: 18720816902 */ int comm_proxy_bind(int sockfd, const struct sockaddr* ServerAddr, socklen_t addrlen) @@ -500,6 +505,7 @@ arguments: The first argument is a descriptor used to identify a bundled but unc The second argument indicates the maximum length of waiting for connection queue return value: The return value is 0 if succeed, - 1 is returned for failure and error reason is stored in errno. note: none +date: 2022/8/8 contact tel: 18720816902 */ int comm_proxy_listen(int sockfd, int backlog)