int lttcomm_create_inet6_sock(struct lttcomm_sock *sock, int type, int proto)
{
int val = 1, ret;
/* Create server socket */
int lttcomm_create_inet6_sock(struct lttcomm_sock *sock, int type, int proto)
{
int val = 1, ret;
/* Create server socket */
* Do an accept(2) on the sock and return the new lttcomm socket. The socket
* MUST be bind(2) before.
*/
* Do an accept(2) on the sock and return the new lttcomm socket. The socket
* MUST be bind(2) before.
*/
/* Blocking call */
new_fd = accept(sock->fd,
(struct sockaddr *) &new_sock->sockaddr.addr.sin6, &len);
/* Blocking call */
new_fd = accept(sock->fd,
(struct sockaddr *) &new_sock->sockaddr.addr.sin6, &len);