Lines Matching refs:sock_
308 sock_(NULL),
331 if (sock_) {
336 sock_ = usrsctp_socket(AF_CONN, SOCK_STREAM, IPPROTO_SCTP,
338 if (!sock_) {
345 if (usrsctp_set_non_blocking(sock_, 1) < 0) {
356 if (usrsctp_setsockopt(sock_, SOL_SOCKET, SO_LINGER, &linger_opt,
366 if (usrsctp_setsockopt(sock_, IPPROTO_SCTP, SCTP_ENABLE_STREAM_RESET,
375 if (usrsctp_setsockopt(sock_, IPPROTO_SCTP, SCTP_NODELAY, &nodelay,
392 if (usrsctp_setsockopt(sock_, IPPROTO_SCTP, SCTP_EVENT, &event,
409 if (sock_) {
413 usrsctp_close(sock_);
414 sock_ = NULL;
423 if (sock_) {
432 if (!sock_ && !OpenSctpSocket()) {
438 if (usrsctp_bind(sock_, reinterpret_cast<sockaddr *>(&local_sconn),
449 sock_, reinterpret_cast<sockaddr *>(&remote_sconn), sizeof(remote_sconn));
460 // TODO(ldixon): Consider calling |usrsctp_shutdown(sock_, ...)| to do a
551 send_res = usrsctp_sendv(sock_, payload.data(),
602 // connection" message. This sets sock_ = NULL;
916 sock_, IPPROTO_SCTP, SCTP_RESET_STREAMS, resetp,