728x90
반응형
posix::stream_descriptor
스트림 지향 설명자(descriptor)의 일반적인 사용에 대한 typedef이다.
typedef basic_stream_descriptor stream_descriptor;
유 형
| 이 름 | 설 명 |
| rebind_executor | 설명자(descritpr)유형을 다른 실행기(executor)로 리바인드한다. |
| bytes_readable | 블럭(차단)없이 읽을 수 있는 데이터의 양을 가져오는 IO 제어 명령이다. |
| executor_type | 개체와 연결된 실행기(executor)의 유형이다. |
| lowest_layer_type | 설명자(descriptor)는 항상 최하위 계층이다. |
| native_handle_type | 설명자(descriptor)의 기본(native) 표현이다. |
| wait_type | 대기 유형이다. |
멤버 함수
| 이 름 | 설 명 |
| assign | 설명자(descriptor)에 현재 사용되는 기본(native) 설명자(descriptor)를 할당한다. |
| async_read_some | 비동기 읽기를 시작한다. |
| async_wait | 설명자(descriptor)가 읽기나 쓰기 준비가 되거나 보류중인 오류 조건을 가질때까지 비동기적 대기한다. |
| async_write_some | 비동기 쓰기를 시작한다. |
| basic_stream_descriptor [constructor] |
스트림 설명자(descriptor)를 열지 않고 생성한다. — 현재 사용되는 기본(native) 설명자(descriptor)로 스트림 설명자(descriptor)를 생성한다. — 다른 스트림 설명자(descriptor)에서 이동 생성한다. |
| cancel | 설명자(descriptor)와 연결된 모든 비동기 작업을 취소한다. |
| close | 설명자(descriptor)를 닫는다. |
| get_executor | 개체와 연결된 실행기(executor)를 가져온다. |
| io_control | 설명자(descriptor)에서 IO 제어 명령을 수행한다. |
| is_open | 설명자(descriptor)가 열려 있는지 확인한다. |
| lowest_layer | 최하위 계층에 대한 참조를 가져온다. — 최하위 계층에 대한 const 참조를 가져온다. |
| native_handle | 기본(native) 설명자(descriptor) 표현을 가져온다. |
| native_non_blocking | 기본(native) 설명자(descriptor) 구현의 넌-블럭(비차단) 모드를 가져온다. — 기본(native) 설명자(descriptor) 구현의 넌-블럭(비차단) 모드를 설정한다. |
| non_blocking | 설명자(descriptor)의 넌-블럭(비차단) 모드를 가져온다. — 설명자(descriptor)의 넌-블럭(비차단) 모드를 설정한다. |
| operator= | 다른 설명자(descriptor)를 이동 할당한다. |
| read_some | 설명자(descriptor)에서 일부 데이터를 읽는다. |
| release | 기본(native) 설명자(descriptor) 구현의 소유권을 해제한다. |
| wait | 설명자(descriptor)가 읽기나 쓰기 준비가 되거나 보류중인 오류 조건을 가질때까지 대기한다. |
| write_some | 설명자(descriptor)에 일부 데이터를 쓴다. |
posix::basic_stream_descriptor 클래스 템플릿은 비동기 및 차단 스트림 지향 설명자(descriptor) 기능을 제공한다.
스레드 안전성
고유 개체: 안전함
공유 개체: 안전하지 않음
요구 사항
일반 헤더: boost/asio/posix/stream_descriptor.hpp
편의 헤더: boost/asio.hpp
Boost.Asio 홈
728x90
반응형
'Boost C++ Libraries > Boost.Asio' 카테고리의 다른 글
| Boost.Asio 색인 - execution::blocking_t::possibly_t::possibly_t (0) | 2021.02.22 |
|---|---|
| Boost.Asio 색인 - execution::blocking_t::possibly (0) | 2021.02.22 |
| Boost.Asio 색인 - posix::descriptor (0) | 2021.02.22 |
| Boost.Asio 색인 - ip::basic_endpoint::port (0) | 2021.02.22 |
| Boost.Asio 색인 - execution::relationship_t::fork_t::polymorphic_query_result_type (0) | 2021.02.22 |