Searched refs:socket_ (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/modules/thrift/src/thrift/transport/ |
D | TSSLSocket.cpp | 111 socket_ = socket(res->ai_family, res->ai_socktype, ctx_->protocol); in openSecConnection() 113 if (socket_ == THRIFT_INVALID_SOCKET) { in openSecConnection() 123 setsockopt(socket_, SOL_TLS, TLS_SEC_TAG_LIST, sec_tag_list, sizeof(sec_tag_list)); in openSecConnection() 129 ret = setsockopt(socket_, SOL_TLS, TLS_PEER_VERIFY, &(ctx_->verifyMode), in openSecConnection() 136 ret = setsockopt(socket_, SOL_TLS, TLS_HOSTNAME, host_.c_str(), host_.size()); in openSecConnection() 164 setsockopt(socket_, SOL_SOCKET, SO_NOSIGPIPE, &one, sizeof(one)); in openSecConnection() 172 setsockopt(socket_, IPPROTO_TCP, TCP_LOW_MIN_RTO, &one, sizeof(one)); in openSecConnection() 177 int flags = THRIFT_FCNTL(socket_, THRIFT_F_GETFL, 0); in openSecConnection() 179 if (-1 == THRIFT_FCNTL(socket_, THRIFT_F_SETFL, flags | THRIFT_O_NONBLOCK)) { in openSecConnection() 187 if (-1 == THRIFT_FCNTL(socket_, THRIFT_F_SETFL, flags & ~THRIFT_O_NONBLOCK)) { in openSecConnection() [all …]
|