Lines Matching refs:sock_
370 sock_(NULL), in SctpDataMediaChannel()
398 if (sock_) { in OpenSctpSocket()
409 sock_ = usrsctp_socket(AF_CONN, SOCK_STREAM, IPPROTO_SCTP, in OpenSctpSocket()
413 if (!sock_) { in OpenSctpSocket()
420 if (usrsctp_set_non_blocking(sock_, 1) < 0) { in OpenSctpSocket()
431 if (usrsctp_setsockopt(sock_, SOL_SOCKET, SO_LINGER, &linger_opt, in OpenSctpSocket()
441 if (usrsctp_setsockopt(sock_, IPPROTO_SCTP, SCTP_ENABLE_STREAM_RESET, in OpenSctpSocket()
450 if (usrsctp_setsockopt(sock_, IPPROTO_SCTP, SCTP_NODELAY, &nodelay, in OpenSctpSocket()
461 if (usrsctp_setsockopt(sock_, IPPROTO_SCTP, SCTP_PEER_ADDR_PARAMS, ¶ms, in OpenSctpSocket()
479 if (usrsctp_setsockopt(sock_, IPPROTO_SCTP, SCTP_EVENT, &event, in OpenSctpSocket()
496 if (sock_) { in CloseSctpSocket()
500 usrsctp_close(sock_); in CloseSctpSocket()
501 sock_ = NULL; in CloseSctpSocket()
510 if (sock_) { in Connect()
519 if (!sock_ && !OpenSctpSocket()) { in Connect()
525 if (usrsctp_bind(sock_, reinterpret_cast<sockaddr *>(&local_sconn), in Connect()
536 sock_, reinterpret_cast<sockaddr *>(&remote_sconn), sizeof(remote_sconn)); in Connect()
647 sock_, payload.data(), static_cast<size_t>(payload.size()), NULL, 0, &spa, in SendData()
1023 sock_, IPPROTO_SCTP, SCTP_RESET_STREAMS, resetp, in SendQueuedStreamResets()