Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
sock_tests.cpp File Reference
#include <common/system.h>
#include <compat/compat.h>
#include <test/util/common.h>
#include <test/util/setup_common.h>
#include <util/sock.h>
#include <util/threadinterrupt.h>
#include <boost/test/unit_test.hpp>
#include <cassert>
#include <thread>
Include dependency graph for sock_tests.cpp:

Go to the source code of this file.

Functions

static bool SocketIsClosed (const SOCKET &s)
static SOCKET CreateSocket ()
 BOOST_AUTO_TEST_CASE (constructor_and_destructor)
 BOOST_AUTO_TEST_CASE (move_constructor)
 BOOST_AUTO_TEST_CASE (move_assignment)
static void CreateSocketPair (int s[2])
static void SendAndRecvMessage (const Sock &sender, const Sock &receiver)
 BOOST_AUTO_TEST_CASE (send_and_receive)
 BOOST_AUTO_TEST_CASE (wait)
 BOOST_AUTO_TEST_CASE (recv_until_terminator_limit)

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/6]

BOOST_AUTO_TEST_CASE ( constructor_and_destructor )

Definition at line 38 of file sock_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/6]

BOOST_AUTO_TEST_CASE ( move_assignment )

Definition at line 60 of file sock_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/6]

BOOST_AUTO_TEST_CASE ( move_constructor )

Definition at line 48 of file sock_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/6]

BOOST_AUTO_TEST_CASE ( recv_until_terminator_limit )

Definition at line 144 of file sock_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/6]

BOOST_AUTO_TEST_CASE ( send_and_receive )

Definition at line 103 of file sock_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/6]

BOOST_AUTO_TEST_CASE ( wait )

Definition at line 129 of file sock_tests.cpp.

Here is the call graph for this function:

◆ CreateSocket()

SOCKET CreateSocket ( )
static

Definition at line 31 of file sock_tests.cpp.

Here is the caller graph for this function:

◆ CreateSocketPair()

void CreateSocketPair ( int s[2])
static

Definition at line 87 of file sock_tests.cpp.

Here is the caller graph for this function:

◆ SendAndRecvMessage()

void SendAndRecvMessage ( const Sock & sender,
const Sock & receiver )
static

Definition at line 92 of file sock_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SocketIsClosed()

bool SocketIsClosed ( const SOCKET & s)
static

Definition at line 21 of file sock_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: