Lines Matching defs:net_result

202   int net_result = socket->Bind(params_->address, params_->port);
203 if (net_result == net::OK) {
208 if (net_result != net::OK)
209 error_ = net::ErrorToString(net_result);
210 results_ = sockets_udp::Bind::Results::Create(net_result);
268 void SocketsUdpSendFunction::OnCompleted(int net_result) {
269 if (net_result >= net::OK) {
270 SetSendResult(net::OK, net_result);
272 SetSendResult(net_result, -1);
276 void SocketsUdpSendFunction::SetSendResult(int net_result, int bytes_sent) {
277 CHECK(net_result <= net::OK) << "Network status code must be < 0";
280 send_info.result_code = net_result;
281 if (net_result == net::OK) {
285 if (net_result != net::OK)
286 error_ = net::ErrorToString(net_result);
384 int net_result = socket->JoinGroup(params_->address);
385 if (net_result != net::OK)
386 error_ = net::ErrorToString(net_result);
387 results_ = sockets_udp::JoinGroup::Results::Create(net_result);
416 int net_result = socket->LeaveGroup(params_->address);
417 if (net_result != net::OK)
418 error_ = net::ErrorToString(net_result);
419 results_ = sockets_udp::LeaveGroup::Results::Create(net_result);
442 int net_result = socket->SetMulticastTimeToLive(params_->ttl);
443 if (net_result != net::OK)
444 error_ = net::ErrorToString(net_result);
445 results_ = sockets_udp::SetMulticastTimeToLive::Results::Create(net_result);
468 int net_result = socket->SetMulticastLoopbackMode(params_->enabled);
469 if (net_result != net::OK)
470 error_ = net::ErrorToString(net_result);
471 results_ = sockets_udp::SetMulticastLoopbackMode::Results::Create(net_result);