Lines Matching refs:conn_fd
57 int listen_fd, conn_fd, flags, ret, in;
82 conn_fd = accept(listen_fd, (struct sockaddr *) NULL, NULL);
83 if(conn_fd < 0)
90 in = sctp_recvmsg(conn_fd, buffer, sizeof(buffer), NULL, 0,
97 close(conn_fd);
109 int conn_fd, ret;
112 conn_fd = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP);
113 if (conn_fd < 0)
116 ret = connect(conn_fd, (struct sockaddr *) &servaddr, sizeof(servaddr));
120 ret = sctp_sendmsg(conn_fd, (void *) msg, strlen(msg) + 1, NULL, 0, 0, 0, 0, 0, 0 );
124 close(conn_fd);