Lines Matching refs:ec
86 asio::error_code ec;
87 this->get_service().open(this->get_implementation(), protocol, ec);
88 asio::detail::throw_error(ec, "open");
110 asio::error_code ec;
112 this->get_service().open(this->get_implementation(), protocol, ec);
113 asio::detail::throw_error(ec, "open");
114 this->get_service().bind(this->get_implementation(), endpoint, ec);
115 asio::detail::throw_error(ec, "bind");
135 asio::error_code ec;
137 protocol, native_socket, ec);
138 asio::detail::throw_error(ec, "assign");
263 asio::error_code ec;
264 this->get_service().open(this->get_implementation(), protocol, ec);
265 asio::detail::throw_error(ec, "open");
274 * @param ec Set to indicate what error occurred, if any.
279 * asio::error_code ec;
280 * socket.open(asio::ip::tcp::v4(), ec);
281 * if (ec)
288 asio::error_code& ec)
290 return this->get_service().open(this->get_implementation(), protocol, ec);
306 asio::error_code ec;
308 protocol, native_socket, ec);
309 asio::detail::throw_error(ec, "assign");
320 * @param ec Set to indicate what error occurred, if any.
323 const native_handle_type& native_socket, asio::error_code& ec)
326 protocol, native_socket, ec);
349 asio::error_code ec;
350 this->get_service().close(this->get_implementation(), ec);
351 asio::detail::throw_error(ec, "close");
360 * @param ec Set to indicate what error occurred, if any. Note that, even if
367 * asio::error_code ec;
368 * socket.close(ec);
369 * if (ec)
378 asio::error_code close(asio::error_code& ec)
380 return this->get_service().close(this->get_implementation(), ec);
441 asio::error_code ec;
442 this->get_service().cancel(this->get_implementation(), ec);
443 asio::detail::throw_error(ec, "cancel");
452 * @param ec Set to indicate what error occurred, if any.
480 asio::error_code cancel(asio::error_code& ec)
482 return this->get_service().cancel(this->get_implementation(), ec);
497 asio::error_code ec;
498 bool b = this->get_service().at_mark(this->get_implementation(), ec);
499 asio::detail::throw_error(ec, "at_mark");
508 * @param ec Set to indicate what error occurred, if any.
513 bool at_mark(asio::error_code& ec) const
515 return this->get_service().at_mark(this->get_implementation(), ec);
530 asio::error_code ec;
532 this->get_implementation(), ec);
533 asio::detail::throw_error(ec, "available");
542 * @param ec Set to indicate what error occurred, if any.
547 std::size_t available(asio::error_code& ec) const
549 return this->get_service().available(this->get_implementation(), ec);
572 asio::error_code ec;
573 this->get_service().bind(this->get_implementation(), endpoint, ec);
574 asio::detail::throw_error(ec, "bind");
585 * @param ec Set to indicate what error occurred, if any.
591 * asio::error_code ec;
593 * asio::ip::tcp::v4(), 12345), ec);
594 * if (ec)
601 asio::error_code& ec)
603 return this->get_service().bind(this->get_implementation(), endpoint, ec);
631 asio::error_code ec;
635 peer_endpoint.protocol(), ec);
636 asio::detail::throw_error(ec, "connect");
638 this->get_service().connect(this->get_implementation(), peer_endpoint, ec);
639 asio::detail::throw_error(ec, "connect");
655 * @param ec Set to indicate what error occurred, if any.
662 * asio::error_code ec;
663 * socket.connect(endpoint, ec);
664 * if (ec)
671 asio::error_code& ec)
676 peer_endpoint.protocol(), ec))
678 return ec;
683 this->get_implementation(), peer_endpoint, ec);
739 asio::error_code ec;
741 if (this->get_service().open(this->get_implementation(), protocol, ec))
751 init.handler), ec));
798 asio::error_code ec;
799 this->get_service().set_option(this->get_implementation(), option, ec);
800 asio::detail::throw_error(ec, "set_option");
809 * @param ec Set to indicate what error occurred, if any.
834 * asio::error_code ec;
835 * socket.set_option(option, ec);
836 * if (ec)
844 asio::error_code& ec)
847 this->get_implementation(), option, ec);
888 asio::error_code ec;
889 this->get_service().get_option(this->get_implementation(), option, ec);
890 asio::detail::throw_error(ec, "get_option");
899 * @param ec Set to indicate what error occurred, if any.
924 * asio::error_code ec;
925 * socket.get_option(option, ec);
926 * if (ec)
935 asio::error_code& ec) const
938 this->get_implementation(), option, ec);
966 asio::error_code ec;
967 this->get_service().io_control(this->get_implementation(), command, ec);
968 asio::detail::throw_error(ec, "io_control");
977 * @param ec Set to indicate what error occurred, if any.
989 * asio::error_code ec;
990 * socket.io_control(command, ec);
991 * if (ec)
1000 asio::error_code& ec)
1003 this->get_implementation(), command, ec);
1037 asio::error_code ec;
1038 this->get_service().non_blocking(this->get_implementation(), mode, ec);
1039 asio::detail::throw_error(ec, "non_blocking");
1049 * @param ec Set to indicate what error occurred, if any.
1056 bool mode, asio::error_code& ec)
1059 this->get_implementation(), mode, ec);
1092 * void operator()(asio::error_code ec, std::size_t)
1095 * if (!ec)
1097 * sock_.native_non_blocking(true, ec);
1099 * if (!ec)
1106 * ec = asio::error_code(n < 0 ? errno : 0,
1108 * total_bytes_transferred_ += ec ? 0 : n;
1111 * if (ec == asio::error::interrupted)
1115 * if (ec == asio::error::would_block
1116 * || ec == asio::error::try_again)
1123 * if (ec || n == 0)
1135 * handler_(ec, total_bytes_transferred_);
1182 * void operator()(asio::error_code ec, std::size_t)
1185 * if (!ec)
1187 * sock_.native_non_blocking(true, ec);
1189 * if (!ec)
1196 * ec = asio::error_code(n < 0 ? errno : 0,
1198 * total_bytes_transferred_ += ec ? 0 : n;
1201 * if (ec == asio::error::interrupted)
1205 * if (ec == asio::error::would_block
1206 * || ec == asio::error::try_again)
1213 * if (ec || n == 0)
1225 * handler_(ec, total_bytes_transferred_);
1238 asio::error_code ec;
1240 this->get_implementation(), mode, ec);
1241 asio::detail::throw_error(ec, "native_non_blocking");
1254 * @param ec Set to indicate what error occurred, if any. If the @c mode is
1275 * void operator()(asio::error_code ec, std::size_t)
1278 * if (!ec)
1280 * sock_.native_non_blocking(true, ec);
1282 * if (!ec)
1289 * ec = asio::error_code(n < 0 ? errno : 0,
1291 * total_bytes_transferred_ += ec ? 0 : n;
1294 * if (ec == asio::error::interrupted)
1298 * if (ec == asio::error::would_block
1299 * || ec == asio::error::try_again)
1306 * if (ec || n == 0)
1318 * handler_(ec, total_bytes_transferred_);
1330 bool mode, asio::error_code& ec)
1333 this->get_implementation(), mode, ec);
1353 asio::error_code ec;
1355 this->get_implementation(), ec);
1356 asio::detail::throw_error(ec, "local_endpoint");
1364 * @param ec Set to indicate what error occurred, if any.
1373 * asio::error_code ec;
1374 * asio::ip::tcp::endpoint endpoint = socket.local_endpoint(ec);
1375 * if (ec)
1381 endpoint_type local_endpoint(asio::error_code& ec) const
1383 return this->get_service().local_endpoint(this->get_implementation(), ec);
1403 asio::error_code ec;
1405 this->get_implementation(), ec);
1406 asio::detail::throw_error(ec, "remote_endpoint");
1414 * @param ec Set to indicate what error occurred, if any.
1423 * asio::error_code ec;
1424 * asio::ip::tcp::endpoint endpoint = socket.remote_endpoint(ec);
1425 * if (ec)
1431 endpoint_type remote_endpoint(asio::error_code& ec) const
1433 return this->get_service().remote_endpoint(this->get_implementation(), ec);
1455 asio::error_code ec;
1456 this->get_service().shutdown(this->get_implementation(), what, ec);
1457 asio::detail::throw_error(ec, "shutdown");
1467 * @param ec Set to indicate what error occurred, if any.
1474 * asio::error_code ec;
1475 ec);
1476 * if (ec)
1483 asio::error_code& ec)
1485 return this->get_service().shutdown(this->get_implementation(), what, ec);