Rizin
unix-like reverse engineering framework and cli tools
|
#include "uv.h"
#include "internal.h"
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#include <errno.h>
Go to the source code of this file.
Definition at line 67 of file tcp.c.
References AF_INET, AF_INET6, AF_UNSPEC, bind, domain, flags, handle, memset(), new_socket(), UV__ERR, uv__stream_fd, and UV_HANDLE_BOUND.
Referenced by uv__tcp_bind(), uv__tcp_connect(), uv_tcp_init_ex(), and uv_tcp_listen().
Definition at line 31 of file tcp.c.
References bind, domain, err, flags, handle, memset(), SOCK_STREAM, sockfd, uv__close(), UV__ERR, uv__socket(), uv__stream_fd, uv__stream_open(), and UV_HANDLE_BOUND.
Referenced by maybe_new_socket().
int uv__tcp_bind | ( | uv_tcp_t * | tcp, |
const struct sockaddr * | addr, | ||
unsigned int | addrlen, | ||
unsigned int | flags | ||
) |
Definition at line 148 of file tcp.c.
References addr, addrlen, AF_INET6, bind, EADDRINUSE, EAFNOSUPPORT, EOPNOTSUPP, err, flags, IPV6_V6ONLY, maybe_new_socket(), SO_REUSEADDR, SOL_SOCKET, UV__ERR, UV_HANDLE_BOUND, UV_HANDLE_IPV6, and UV_TCP_IPV6ONLY.
Referenced by uv_tcp_bind().
void uv__tcp_close | ( | uv_tcp_t * | handle | ) |
Definition at line 459 of file tcp.c.
References handle, and uv__stream_close().
Referenced by uv_close().
int uv__tcp_connect | ( | uv_connect_t * | req, |
uv_tcp_t * | handle, | ||
const struct sockaddr * | addr, | ||
unsigned int | addrlen, | ||
uv_connect_cb | cb | ||
) |
Definition at line 204 of file tcp.c.
References addr, addrlen, assert(), cb, ECONNREFUSED, EINPROGRESS, EINTR, EINVAL, err, handle, maybe_new_socket(), NULL, QUEUE_INIT, r, req, UV__ERR, uv__io_feed(), uv__io_start(), uv__req_init, uv__stream_fd, UV_HANDLE_READABLE, and UV_HANDLE_WRITABLE.
Referenced by uv_tcp_connect().
Definition at line 380 of file tcp.c.
References fd, SO_KEEPALIVE, SOL_SOCKET, TCP_KEEPALIVE, and UV__ERR.
Referenced by uv__stream_open(), uv_tcp_keepalive(), and uv_tcp_set_socket().
Definition at line 373 of file tcp.c.
Referenced by uv__stream_open(), uv_tcp_nodelay(), and uv_tcp_set_socket().
int uv_tcp_close_reset | ( | uv_tcp_t * | handle, |
uv_close_cb | close_cb | ||
) |
Definition at line 297 of file tcp.c.
Referenced by uv_tcp_open().
Definition at line 114 of file tcp.c.
Referenced by uv_tcp_init().
int uv_tcp_listen | ( | uv_tcp_t * | tcp, |
int | backlog, | ||
uv_connection_cb | cb | ||
) |
Definition at line 328 of file tcp.c.
int uv_tcp_open | ( | uv_tcp_t * | handle, |
uv_os_sock_t | sock | ||
) |