MCPcopy Create free account

hub / github.com/MengRao/tcpshm / functions

Functions100 in github.com/MengRao/tcpshm

↓ 18 callersMethodOnSystemError
called with Start() reporting errors on Starting the server
test/echo_server.cc:92
↓ 10 callersMethodGetRemoteName
tcpshm_conn.h:53
↓ 9 callersFunctionnow
test/timestamp.h:3
↓ 7 callersMethodConvertInPlace
endian.h:50
↓ 5 callersMethodConvertByteOrder
msg_header.h:41
↓ 5 callersMethodIsClosed
ptcp_conn.h:247
↓ 4 callersMethodRelease
ptcp_conn.h:112
↓ 4 callersMethodTryCloseFd
not thread safe
ptcp_conn.h:252
↓ 4 callersFunctioncpupin
test/cpupin.h:3
↓ 3 callersMethodGetCloseReason
ptcp_conn.h:261
↓ 3 callersMethodOpenFile
ptcp_conn.h:94
↓ 3 callersMethodTcpFront
tcpshm_conn.h:183
↓ 2 callersMethodAlloc
ptcp_queue.h:39
↓ 2 callersMethodClose
thread safe need to call TryCloseFd to really close it
ptcp_conn.h:277
↓ 2 callersMethodFront
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 callersMethodGetLocalName
tcpshm_conn.h:57
↓ 2 callersMethodGetPtcpDir
tcpshm_conn.h:61
↓ 2 callersMethodGetPtcpFile
tcpshm_conn.h:36
↓ 2 callersMethodGetSeq
ptcp_conn.h:103
↓ 2 callersMethodOnClientDisconnected
called by CTL thread client is disconnected
test/echo_server.cc:157
↓ 2 callersMethodOnClientFileError
called by CTL thread ptcp or shm files can't be open or are corrupt
test/echo_server.cc:128
↓ 2 callersMethodOnClientMsg
called by APP thread
test/echo_server.cc:163
↓ 2 callersMethodOnSeqNumberMismatch
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 callersMethodOnServerMsg
called by APP thread
test/echo_client.cc:175
↓ 2 callersMethodOpen
precondition: sockfd_ == fd_to_close_ == -1
ptcp_conn.h:122
↓ 2 callersMethodPop
spsc_varq.h:83
↓ 2 callersMethodPush
ptcp_queue.h:55
↓ 2 callersMethodReset
ptcp_conn.h:108
↓ 2 callersMethodShmFront
tcpshm_conn.h:188
↓ 2 callersMethodinit
tcpshm_conn.h:119
↓ 1 callersMethodAck
the next seq_num peer side expect
ptcp_queue.h:78
↓ 1 callersMethodGetSendable
ptcp_queue.h:63
↓ 1 callersMethodLoginAck
ptcp_queue.h:72
↓ 1 callersMethodOnClientLogon
called by CTL thread confirmation for client logon
test/echo_server.cc:150
↓ 1 callersMethodOnDisconnected
called by tcp thread
test/echo_client.cc:188
↓ 1 callersMethodOnLoginReject
called within Connect() Login rejected by server
test/echo_client.cc:149
↓ 1 callersMethodOnLoginSuccess
called within Connect() confirmation for login success
test/echo_client.cc:155
↓ 1 callersMethodOnNewConnection
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 callersMethodPush
ptcp_conn.h:140
↓ 1 callersMethodPush
submit the last msg from Alloc() and send out
tcpshm_conn.h:74
↓ 1 callersMethodRequestClose
ptcp_conn.h:266
↓ 1 callersMethodRun
test/echo_server.cc:52
↓ 1 callersMethodRun
test/echo_client.cc:37
↓ 1 callersMethodSanityCheckAndGetSeq
ptcp_queue.h:96
↓ 1 callersMethodSendHB
safe if IsClosed
ptcp_conn.h:203
↓ 1 callersMethodSendout
ptcp_queue.h:68
MethodAlloc
ptcp_conn.h:136
MethodAlloc
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
MethodAlloc
spsc_varq.h:37
MethodCheckAckInQueue
check if seq_start <= ack_seq <= seq_end, considering uint32_t wrap around
tcpshm_server.h:366
MethodClose
Close this connection
tcpshm_conn.h:45
MethodConnect
connect and login to server, may block for a short time return true if success
tcpshm_client.h:60
MethodConvert
endian.h:36
MethodConvertByteOrder
ptcp_conn.h:55
MethodConvertByteOrder
ptcp_conn.h:75
MethodDoRecv
ptcp_conn.h:284
MethodEchoClient
test/echo_client.cc:31
MethodEchoServer
test/echo_server.cc:41
MethodFront
safe if IsClosed
ptcp_conn.h:150
MethodFront
spsc_varq.h:68
MethodGetCloseReason
tcpshm_conn.h:49
MethodGetSeq
tcpshm_conn.h:142
MethodHandleLogin
tcpshm_server.h:260
MethodIsClosed
tcpshm_conn.h:40
MethodOnSeqNumberMismatch
called within Connect() server and client ptcp sequence number don't match, we need to fix it manually
test/echo_client.cc:162
MethodOnSystemError
called within Connect() reporting errors on connecting to the server
test/echo_client.cc:143
MethodOpen
tcpshm_conn.h:175
MethodOpenFile
tcpshm_conn.h:124
MethodPTCPConnection
ptcp_conn.h:87
MethodPollCtl
poll control for handling new connections and keep shm connections alive
tcpshm_server.h:111
MethodPollNum
test/echo_client.cc:91
MethodPollShm
poll shm for serving shm connections
tcpshm_server.h:206
MethodPollShm
only for using shm
tcpshm_client.h:210
MethodPollTcp
poll tcp for serving tcp connections
tcpshm_server.h:191
MethodPollTcp
we need to PollTcp even if using shm
tcpshm_client.h:197
MethodPop
we have consumed the msg we got from Front()
ptcp_conn.h:196
MethodPop
consume the msg we got from Front() or polling function
tcpshm_conn.h:100
MethodPush
spsc_varq.h:61
MethodPushMore
ptcp_conn.h:145
MethodPushMore
for shm, same as Push for tcp, don't send out immediately as we have more to push
tcpshm_conn.h:83
MethodRelease
tcpshm_conn.h:162
MethodReset
tcpshm_conn.h:152
MethodSendPending
return false only if no pending data to send
ptcp_conn.h:220
MethodSignalHandler
test/echo_server.cc:48
MethodStart
start the server return true if success
tcpshm_server.h:72
MethodStop
tcpshm_server.h:216
MethodStop
stop the connection and close files
tcpshm_client.h:216
MethodTcpShmClient
tcpshm_client.h:46
MethodTcpShmConnection
tcpshm_conn.h:115
MethodTcpShmServer
tcpshm_server.h:45
MethodTryCloseFd
tcpshm_conn.h:179
MethodTrySendMsg
test/echo_client.cc:112
MethodUseShm
ptcp_conn.h:270
MethodhandleMsg
test/echo_client.cc:127
Functionmain
test/echo_server.cc:181
Functionmain
test/echo_client.cc:206
Functionmy_mmap
mmap.h:35
Functionmy_munmap
mmap.h:62
Method~TcpShmClient
tcpshm_client.h:54
Method~TcpShmServer
tcpshm_server.h:66