Function open

Synopsis

#include <src/uvw/tcp.h>

void open(OSSocketHandle socket)

Description

Opens an existing file descriptor or SOCKET as a TCP handle.

The passed file descriptor or SOCKET is not checked for its type, but it’s required that it represents a valid stream socket.

Parameters

socket - A valid socket handle (either a file descriptor or a SOCKET).

Source

Lines 21-23 in src/uvw/tcp.cpp. Line 69 in src/uvw/tcp.h.

UVW_INLINE void TCPHandle::open(OSSocketHandle socket) {
    invoke(&uv_tcp_open, get(), socket);
}





Add Discussion as Guest

Log in