Boost C++ Libraries/Boost.Asio
basic_datagram_socket::send 연결된 소켓에 일부 데이터를 전송한다. [1 / 3 오버로드] template std::size_t send( const ConstBufferSequence & buffers); [ConstBufferSequence, send] [2 / 3 오버로드] template std::size_t send( const ConstBufferSequence & buffers, socket_base::message_flags flags); [ConstBufferSequence, send] [3 / 3 오버로드] template< typename ConstBuf..
Boost C++ Libraries/Boost.Asio
basic_datagram_socket::reuse_address socket_base에서 상속된다. 소켓을 이미 사용중인 주소에 바인딩할 수 있는 소켓 옵션이다. typedef implementation_defined reuse_address; SOL_SOCKET/SO_REUSEADDR 소켓 옵션을 구현한다. 예 제 옵션 설정하기: boost::asio::ip::tcp::acceptor acceptor(my_context); ... boost::asio::socket_base::reuse_address option(true); acceptor.set_option(option); 현재 옵션 값 가져오기: boost::asio::ip::tcp::acceptor acceptor(my_context); .....
Boost C++ Libraries/Boost.Asio
basic_datagram_socket::remote_endpoint 소켓의 원격 엔드포인트를 가져온다. [1 / 2 오버로드] endpoint_type remote_endpoint() const; [remote_endpoint] [2 / 2 오버로드] endpoint_type remote_endpoint( boost::system::error_code & ec) const; [remote_endpoint] Boost.Asio 홈
Boost C++ Libraries/Boost.Asio
basic_datagram_socket::release 기저 기본(native) 소켓의 소유권을 해제한다. [1 / 2 오버로드] native_handle_type release(); [release] [2 / 2 오버로드] native_handle_type release( boost::system::error_code & ec); [release] Boost.Asio 홈
Boost C++ Libraries/Boost.Asio
basic_datagram_socket::receive_low_watermark socket_base에서 상속된다. 로우 워터 마크 수신에 대한 소켓 옵션이다. typedef implementation_defined receive_low_watermark; SOL_SOCKET/SO_RCVLOWAT 소켓 옵션을 구현한다. 예 제 옵션 설정하기: boost::asio::ip::tcp::socket socket(my_context); ... boost::asio::socket_base::receive_low_watermark option(1024); socket.set_option(option); 현재 옵션 값 가져오기: boost::asio::ip::tcp::socket socket(my_context); ..