join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
tcp_socket_test.cpp File Reference
#include <join/acceptor.hpp>
#include <join/reactor.hpp>
#include <gtest/gtest.h>
#include <vector>
#include <thread>
Include dependency graph for tcp_socket_test.cpp:

Classes

class  TcpSocket
 Class used to test the TCP socket API. More...
 

Functions

 TEST_F (TcpSocket, move)
 Test move.
 
 TEST_F (TcpSocket, open)
 Test open method.
 
 TEST_F (TcpSocket, close)
 Test close method.
 
 TEST_F (TcpSocket, bind)
 Test bind method.
 
 TEST_F (TcpSocket, bindToDevice)
 Test bindToDevice method.
 
 TEST_F (TcpSocket, connect)
 Test connect method.
 
 TEST_F (TcpSocket, waitConnected)
 Test waitConnected method.
 
 TEST_F (TcpSocket, disconnect)
 Test disconnect method.
 
 TEST_F (TcpSocket, waitDisconnected)
 Test waitDisconnected method.
 
 TEST_F (TcpSocket, canRead)
 Test canRead method.
 
 TEST_F (TcpSocket, waitReadyRead)
 Test waitReadyRead method.
 
 TEST_F (TcpSocket, read)
 Test read method.
 
 TEST_F (TcpSocket, readExactly)
 Test readExactly method.
 
 TEST_F (TcpSocket, wait)
 Test wait method.
 
 TEST_F (TcpSocket, waitFor)
 Test waitFor method.
 
 TEST_F (TcpSocket, waitUntil)
 Test waitUntil method.
 
 TEST_F (TcpSocket, waitReadyWrite)
 Test waitReadyWrite method.
 
 TEST_F (TcpSocket, write)
 Test write method.
 
 TEST_F (TcpSocket, writeExactly)
 Test writeExactly method.
 
 TEST_F (TcpSocket, setMode)
 Test setMode method.
 
 TEST_F (TcpSocket, mode)
 Test mode method.
 
 TEST_F (TcpSocket, setOption)
 Test setOption method.
 
 TEST_F (TcpSocket, localEndpoint)
 Test localEndpoint method.
 
 TEST_F (TcpSocket, remoteEndpoint)
 Test remoteEndpoint method.
 
 TEST_F (TcpSocket, opened)
 Test opened method.
 
 TEST_F (TcpSocket, connected)
 Test connected method.
 
 TEST_F (TcpSocket, family)
 Test family method.
 
 TEST_F (TcpSocket, type)
 Test type method.
 
 TEST_F (TcpSocket, protocol)
 Test protocol method.
 
 TEST_F (TcpSocket, handle)
 Test handle method.
 
 TEST_F (TcpSocket, mtu)
 Test mtu method.
 
 TEST_F (TcpSocket, lower)
 Test lower method.
 
int main (int argc, char **argv)
 main function.
 

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

main function.

◆ TEST_F() [1/32]

TEST_F ( TcpSocket ,
bind  )

Test bind method.

◆ TEST_F() [2/32]

TEST_F ( TcpSocket ,
bindToDevice  )

Test bindToDevice method.

◆ TEST_F() [3/32]

TEST_F ( TcpSocket ,
canRead  )

Test canRead method.

◆ TEST_F() [4/32]

TEST_F ( TcpSocket ,
close  )

Test close method.

◆ TEST_F() [5/32]

TEST_F ( TcpSocket ,
connect  )

Test connect method.

◆ TEST_F() [6/32]

TEST_F ( TcpSocket ,
connected  )

Test connected method.

◆ TEST_F() [7/32]

TEST_F ( TcpSocket ,
disconnect  )

Test disconnect method.

◆ TEST_F() [8/32]

TEST_F ( TcpSocket ,
family  )

Test family method.

◆ TEST_F() [9/32]

TEST_F ( TcpSocket ,
handle  )

Test handle method.

◆ TEST_F() [10/32]

TEST_F ( TcpSocket ,
localEndpoint  )

Test localEndpoint method.

◆ TEST_F() [11/32]

TEST_F ( TcpSocket ,
lower  )

Test lower method.

◆ TEST_F() [12/32]

TEST_F ( TcpSocket ,
mode  )

Test mode method.

◆ TEST_F() [13/32]

TEST_F ( TcpSocket ,
move  )

Test move.

◆ TEST_F() [14/32]

TEST_F ( TcpSocket ,
mtu  )

Test mtu method.

◆ TEST_F() [15/32]

TEST_F ( TcpSocket ,
open  )

Test open method.

◆ TEST_F() [16/32]

TEST_F ( TcpSocket ,
opened  )

Test opened method.

◆ TEST_F() [17/32]

TEST_F ( TcpSocket ,
protocol  )

Test protocol method.

◆ TEST_F() [18/32]

TEST_F ( TcpSocket ,
read  )

Test read method.

◆ TEST_F() [19/32]

TEST_F ( TcpSocket ,
readExactly  )

Test readExactly method.

◆ TEST_F() [20/32]

TEST_F ( TcpSocket ,
remoteEndpoint  )

Test remoteEndpoint method.

◆ TEST_F() [21/32]

TEST_F ( TcpSocket ,
setMode  )

Test setMode method.

◆ TEST_F() [22/32]

TEST_F ( TcpSocket ,
setOption  )

Test setOption method.

◆ TEST_F() [23/32]

TEST_F ( TcpSocket ,
type  )

Test type method.

◆ TEST_F() [24/32]

TEST_F ( TcpSocket ,
wait  )

Test wait method.

◆ TEST_F() [25/32]

TEST_F ( TcpSocket ,
waitConnected  )

Test waitConnected method.

◆ TEST_F() [26/32]

TEST_F ( TcpSocket ,
waitDisconnected  )

Test waitDisconnected method.

◆ TEST_F() [27/32]

TEST_F ( TcpSocket ,
waitFor  )

Test waitFor method.

◆ TEST_F() [28/32]

TEST_F ( TcpSocket ,
waitReadyRead  )

Test waitReadyRead method.

◆ TEST_F() [29/32]

TEST_F ( TcpSocket ,
waitReadyWrite  )

Test waitReadyWrite method.

◆ TEST_F() [30/32]

TEST_F ( TcpSocket ,
waitUntil  )

Test waitUntil method.

◆ TEST_F() [31/32]

TEST_F ( TcpSocket ,
write  )

Test write method.

◆ TEST_F() [32/32]

TEST_F ( TcpSocket ,
writeExactly  )

Test writeExactly method.