Boost.Corosio

    • Introduction
    • Quick Start
    • Tutorials
      • Echo Server
      • HTTP Client
      • DNS Lookup
      • TLS Context Configuration
    • Guide
      • TCP/IP Networking
      • Concurrent Programming
      • I/O Context
      • Sockets
      • Acceptors
      • Endpoints
      • Composed Operations
      • Timers
      • Signal Handling
      • Name Resolution
      • TCP Server
      • TLS Encryption
      • Error Handling
      • Buffer Sequences
    • Concepts
      • Design Rationale
      • Affine Awaitables
    • Testing
      • Mock Sockets
    • Reference
    • Glossary
  • boost::corosio::tcp_socket::open
arrow_upward

boost::corosio::tcp_socket::open

Open the socket.

Synopsis

Declared in <boost/corosio/tcp_socket.hpp>

void
open();

Description

Creates an IPv4 TCP socket and associates it with the platform reactor (IOCP on Windows). This must be called before initiating I/O operations.

Exceptions

Name

Thrown on

std::system_error

on failure.

Created with MrDocs