Lines Matching refs:conn_fd
46 int listen_fd, conn_fd, flags, ret, in;
71 conn_fd = accept(listen_fd, (struct sockaddr *) NULL, NULL);
72 if(conn_fd < 0)
79 in = sctp_recvmsg(conn_fd, buffer, sizeof(buffer), NULL, 0,
86 close(conn_fd);
98 int conn_fd, ret;
101 conn_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP);
102 if (conn_fd < 0)
105 ret = connect(conn_fd, (struct sockaddr *) &servaddr, sizeof(servaddr));
109 ret = sctp_sendmsg(conn_fd, (void *) msg, strlen(msg) + 1, NULL, 0, 0, 0, 0, 0, 0 );
113 close(conn_fd);