Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MengRao/tcpshm
/ functions
Functions
100 in github.com/MengRao/tcpshm
⨍
Functions
100
◇
Types & classes
28
↓ 18 callers
Method
OnSystemError
called with Start() reporting errors on Starting the server
test/echo_server.cc:92
↓ 10 callers
Method
GetRemoteName
tcpshm_conn.h:53
↓ 9 callers
Function
now
test/timestamp.h:3
↓ 7 callers
Method
ConvertInPlace
endian.h:50
↓ 5 callers
Method
ConvertByteOrder
msg_header.h:41
↓ 5 callers
Method
IsClosed
ptcp_conn.h:247
↓ 4 callers
Method
Release
ptcp_conn.h:112
↓ 4 callers
Method
TryCloseFd
not thread safe
ptcp_conn.h:252
↓ 4 callers
Function
cpupin
test/cpupin.h:3
↓ 3 callers
Method
GetCloseReason
ptcp_conn.h:261
↓ 3 callers
Method
OpenFile
ptcp_conn.h:94
↓ 3 callers
Method
TcpFront
tcpshm_conn.h:183
↓ 2 callers
Method
Alloc
ptcp_queue.h:39
↓ 2 callers
Method
Close
thread safe need to call TryCloseFd to really close it
ptcp_conn.h:277
↓ 2 callers
Method
Front
get the next msg from recv queue, return nullptr if queue is empty the returned address is guaranteed to be 8 byte aligned if caller dont call Pop() l
tcpshm_conn.h:94
↓ 2 callers
Method
GetLocalName
tcpshm_conn.h:57
↓ 2 callers
Method
GetPtcpDir
tcpshm_conn.h:61
↓ 2 callers
Method
GetPtcpFile
tcpshm_conn.h:36
↓ 2 callers
Method
GetSeq
ptcp_conn.h:103
↓ 2 callers
Method
OnClientDisconnected
called by CTL thread client is disconnected
test/echo_server.cc:157
↓ 2 callers
Method
OnClientFileError
called by CTL thread ptcp or shm files can't be open or are corrupt
test/echo_server.cc:128
↓ 2 callers
Method
OnClientMsg
called by APP thread
test/echo_server.cc:163
↓ 2 callers
Method
OnSeqNumberMismatch
called by CTL thread server and client ptcp sequence number don't match, we need to fix it manually
test/echo_server.cc:135
↓ 2 callers
Method
OnServerMsg
called by APP thread
test/echo_client.cc:175
↓ 2 callers
Method
Open
precondition: sockfd_ == fd_to_close_ == -1
ptcp_conn.h:122
↓ 2 callers
Method
Pop
spsc_varq.h:83
↓ 2 callers
Method
Push
ptcp_queue.h:55
↓ 2 callers
Method
Reset
ptcp_conn.h:108
↓ 2 callers
Method
ShmFront
tcpshm_conn.h:188
↓ 2 callers
Method
init
tcpshm_conn.h:119
↓ 1 callers
Method
Ack
the next seq_num peer side expect
ptcp_queue.h:78
↓ 1 callers
Method
GetSendable
ptcp_queue.h:63
↓ 1 callers
Method
LoginAck
ptcp_queue.h:72
↓ 1 callers
Method
OnClientLogon
called by CTL thread confirmation for client logon
test/echo_server.cc:150
↓ 1 callers
Method
OnDisconnected
called by tcp thread
test/echo_client.cc:188
↓ 1 callers
Method
OnLoginReject
called within Connect() Login rejected by server
test/echo_client.cc:149
↓ 1 callers
Method
OnLoginSuccess
called within Connect() confirmation for login success
test/echo_client.cc:155
↓ 1 callers
Method
OnNewConnection
called by CTL thread if accept the connection, set user_data in login_rsp and return grpid(start from 0) with respect to tcp or shm else set error_msg
test/echo_server.cc:101
↓ 1 callers
Method
Push
ptcp_conn.h:140
↓ 1 callers
Method
Push
submit the last msg from Alloc() and send out
tcpshm_conn.h:74
↓ 1 callers
Method
RequestClose
ptcp_conn.h:266
↓ 1 callers
Method
Run
test/echo_server.cc:52
↓ 1 callers
Method
Run
test/echo_client.cc:37
↓ 1 callers
Method
SanityCheckAndGetSeq
ptcp_queue.h:96
↓ 1 callers
Method
SendHB
safe if IsClosed
ptcp_conn.h:203
↓ 1 callers
Method
Sendout
ptcp_queue.h:68
Method
Alloc
ptcp_conn.h:136
Method
Alloc
allocate a msg of specified size in send queue the returned address is guaranteed to be 8 byte aligned return nullptr if no enough space
tcpshm_conn.h:68
Method
Alloc
spsc_varq.h:37
Method
CheckAckInQueue
check if seq_start <= ack_seq <= seq_end, considering uint32_t wrap around
tcpshm_server.h:366
Method
Close
Close this connection
tcpshm_conn.h:45
Method
Connect
connect and login to server, may block for a short time return true if success
tcpshm_client.h:60
Method
Convert
endian.h:36
Method
ConvertByteOrder
ptcp_conn.h:55
Method
ConvertByteOrder
ptcp_conn.h:75
Method
DoRecv
ptcp_conn.h:284
Method
EchoClient
test/echo_client.cc:31
Method
EchoServer
test/echo_server.cc:41
Method
Front
safe if IsClosed
ptcp_conn.h:150
Method
Front
spsc_varq.h:68
Method
GetCloseReason
tcpshm_conn.h:49
Method
GetSeq
tcpshm_conn.h:142
Method
HandleLogin
tcpshm_server.h:260
Method
IsClosed
tcpshm_conn.h:40
Method
OnSeqNumberMismatch
called within Connect() server and client ptcp sequence number don't match, we need to fix it manually
test/echo_client.cc:162
Method
OnSystemError
called within Connect() reporting errors on connecting to the server
test/echo_client.cc:143
Method
Open
tcpshm_conn.h:175
Method
OpenFile
tcpshm_conn.h:124
Method
PTCPConnection
ptcp_conn.h:87
Method
PollCtl
poll control for handling new connections and keep shm connections alive
tcpshm_server.h:111
Method
PollNum
test/echo_client.cc:91
Method
PollShm
poll shm for serving shm connections
tcpshm_server.h:206
Method
PollShm
only for using shm
tcpshm_client.h:210
Method
PollTcp
poll tcp for serving tcp connections
tcpshm_server.h:191
Method
PollTcp
we need to PollTcp even if using shm
tcpshm_client.h:197
Method
Pop
we have consumed the msg we got from Front()
ptcp_conn.h:196
Method
Pop
consume the msg we got from Front() or polling function
tcpshm_conn.h:100
Method
Push
spsc_varq.h:61
Method
PushMore
ptcp_conn.h:145
Method
PushMore
for shm, same as Push for tcp, don't send out immediately as we have more to push
tcpshm_conn.h:83
Method
Release
tcpshm_conn.h:162
Method
Reset
tcpshm_conn.h:152
Method
SendPending
return false only if no pending data to send
ptcp_conn.h:220
Method
SignalHandler
test/echo_server.cc:48
Method
Start
start the server return true if success
tcpshm_server.h:72
Method
Stop
tcpshm_server.h:216
Method
Stop
stop the connection and close files
tcpshm_client.h:216
Method
TcpShmClient
tcpshm_client.h:46
Method
TcpShmConnection
tcpshm_conn.h:115
Method
TcpShmServer
tcpshm_server.h:45
Method
TryCloseFd
tcpshm_conn.h:179
Method
TrySendMsg
test/echo_client.cc:112
Method
UseShm
ptcp_conn.h:270
Method
handleMsg
test/echo_client.cc:127
Function
main
test/echo_server.cc:181
Function
main
test/echo_client.cc:206
Function
my_mmap
mmap.h:35
Function
my_munmap
mmap.h:62
Method
~TcpShmClient
tcpshm_client.h:54
Method
~TcpShmServer
tcpshm_server.h:66