Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/an-tao/trantor
/ functions
Functions
724 in github.com/an-tao/trantor
⨍
Functions
724
◇
Types & classes
141
↓ 59 callers
Method
empty
trantor/utils/LockFreeQueue.h:89
↓ 42 callers
Method
fd
trantor/net/inner/Socket.h:96
↓ 29 callers
Method
queueInLoop
trantor/net/EventLoop.cc:273
↓ 29 callers
Function
splitString
trantor/utils/Funcs.h:35
↓ 24 callers
Method
getLoop
trantor/net/EventLoopThreadPool.cc:57
↓ 23 callers
Method
append
trantor/utils/MsgBuffer.cc:68
↓ 23 callers
Method
assertInLoopThread
trantor/net/inner/Poller.h:35
↓ 23 callers
Method
send
The order of data sending should be same as the order of calls of send()
trantor/net/inner/TcpConnectionImpl.cc:433
↓ 22 callers
Function
now
* @brief Same as the date() method. * * @return const Date */
trantor/utils/Date.h:70
↓ 19 callers
Method
retrieveAll
trantor/utils/MsgBuffer.cc:140
↓ 18 callers
Function
setLogLevel
* @brief Set the log level. Logs below the level are not printed. * * @param level */
trantor/utils/Logger.h:146
↓ 17 callers
Method
reset
trantor/net/inner/TimerQueue.cc:153
↓ 16 callers
Function
InetAddress
* @brief Constructs an endpoint with given struct `sockaddr_in`. Mostly * used when accepting new connections * * @param addr */
trantor/net/InetAddress.h:75
↓ 15 callers
Method
connected
trantor/net/inner/TcpConnectionImpl.h:99
↓ 15 callers
Method
remainingBytes
trantor/net/inner/MemBufferNode.cc:18
↓ 15 callers
Method
run
trantor/net/inner/Timer.cc:43
↓ 14 callers
Method
get
Returns a session with an additional reference held by the caller. Caller must SSL_SESSION_free() when done. Required because the entry in sessionMap_
trantor/net/inner/tlsprovider/OpenSSLProvider.cc:377
↓ 14 callers
Function
readableBytes
* @brief Return the size of the data in the buffer. * * @return size_t */
trantor/utils/MsgBuffer.h:153
↓ 13 callers
Function
Date
* @brief Construct a new Date instance. * * @param microSec The microseconds from 1970-01-01 00:00:00. */
trantor/utils/Date.h:37
↓ 13 callers
Function
begin
trantor/utils/MsgBuffer.h:355
↓ 13 callers
Method
ctx
trantor/net/inner/tlsprovider/OpenSSLProvider.cc:219
↓ 13 callers
Method
shutdown
trantor/net/inner/TcpConnectionImpl.cc:332
↓ 13 callers
Method
toIpPort
trantor/net/InetAddress.cc:114
↓ 12 callers
Method
after
trantor/utils/Date.cc:73
↓ 12 callers
Function
append
trantor/utils/LogStream.h:46
↓ 12 callers
Method
loop
trantor/net/EventLoop.cc:204
↓ 12 callers
Method
start
trantor/net/TcpServer.cc:113
↓ 11 callers
Function
toNativePath
* @details Convert an UTF-8 path to a native path. * * This is a helper for Windows and multi-platform projects. * * Converts the path from UTF-8
trantor/utils/Utilities.h:103
↓ 10 callers
Function
assertInLoopThread
* @brief Assertion that the current thread is the thread to which the event * loop belongs. If the assertion fails, the program aborts. */
trantor/net/EventLoop.h:78
↓ 10 callers
Method
runAfter
trantor/net/EventLoop.cc:310
↓ 10 callers
Function
strerror_tl
trantor/utils/Logger.cc:69
↓ 10 callers
Function
toHexString
trantor/utils/Utilities.h:253
↓ 10 callers
Method
wait
trantor/net/EventLoopThread.cc:49
↓ 9 callers
Method
disconnected
trantor/net/inner/TcpConnectionImpl.h:103
↓ 9 callers
Function
peek
* @brief Get the beginning of the buffer. * * @return const char* */
trantor/utils/MsgBuffer.h:54
↓ 8 callers
Method
quit
trantor/net/EventLoop.cc:166
↓ 8 callers
Method
runTaskInQueue
trantor/utils/SerialTaskQueue.cc:40
↓ 8 callers
Method
sendInLoop
trantor/net/inner/TcpConnectionImpl.cc:384
↓ 8 callers
Method
store
trantor/net/inner/tlsprovider/OpenSSLProvider.cc:330
↓ 7 callers
Function
fromUtf8
trantor/utils/Utilities.cc:183
↓ 7 callers
Function
fromWidePath
trantor/utils/Utilities.cc:219
↓ 7 callers
Method
setCloseCallback
trantor/net/inner/TLSProvider.h:113
↓ 7 callers
Method
setMessageCallback
trantor/net/inner/TLSProvider.h:109
↓ 7 callers
Method
toDbStringLocal
trantor/utils/Date.cc:230
↓ 7 callers
Function
toUtf8
trantor/utils/Utilities.cc:157
↓ 7 callers
Function
toWidePath
trantor/utils/Utilities.cc:209
↓ 6 callers
Method
append
trantor/net/inner/BufferNode.h:44
↓ 6 callers
Function
defaultClientPolicy
trantor/net/TLSPolicy.h:197
↓ 6 callers
Method
forceClose
trantor/net/inner/TcpConnectionImpl.cc:366
↓ 6 callers
Function
fromNativePath
* @note fromWidePath() on all OSes */ Convert on all systems
trantor/utils/Utilities.h:169
↓ 6 callers
Method
id
trantor/net/inner/Timer.h:54
↓ 6 callers
Function
isInLoopThread
* @brief Return true if the current thread is the thread to which the event * loop belongs. * * @return true * @return false
trantor/net/EventLoop.h:105
↓ 6 callers
Method
isIntranetIp
trantor/net/InetAddress.cc:133
↓ 6 callers
Method
remove
trantor/net/Channel.cc:41
↓ 6 callers
Method
resolve
trantor/net/inner/NormalResolver.cc:24
↓ 6 callers
Method
toDbString
trantor/utils/Date.cc:284
↓ 6 callers
Method
toIp
trantor/net/InetAddress.cc:230
↓ 5 callers
Method
connect
trantor/net/TcpClient.cc:94
↓ 5 callers
Function
defaultServerPolicy
trantor/net/TLSPolicy.h:184
↓ 5 callers
Method
enableSSL
trantor/net/TcpServer.cc:223
↓ 5 callers
Method
ensureWritableBytes
trantor/utils/MsgBuffer.cc:39
↓ 5 callers
Method
insert
trantor/net/inner/TimerQueue.cc:224
↓ 5 callers
Method
isFile
trantor/net/inner/BufferNode.h:34
↓ 5 callers
Method
setErrorCallback
trantor/net/inner/Connector.h:43
↓ 5 callers
Function
swap
* @brief Swap the time point with another. * * @param that */
trantor/utils/Date.h:350
↓ 5 callers
Method
update
trantor/net/Channel.cc:48
↓ 5 callers
Function
writableBytes
* @brief Return the size of the empty part in the buffer * * @return size_t */
trantor/utils/MsgBuffer.h:163
↓ 4 callers
Method
addTimer
trantor/net/inner/TimerQueue.cc:186
↓ 4 callers
Method
available
trantor/net/inner/BufferNode.h:55
↓ 4 callers
Function
byteToChars
trantor/net/InetAddress.cc:199
↓ 4 callers
Method
close
trantor/net/inner/TcpConnectionImpl.cc:864
↓ 4 callers
Method
connectDestroyed
trantor/net/inner/TcpConnectionImpl.cc:320
↓ 4 callers
Method
enqueue
* @brief Put a item into the queue. * * @param input * @note This method can be called in multiple threads. */
trantor/utils/LockFreeQueue.h:53
↓ 4 callers
Method
insertEntry
trantor/utils/TimingWheel.cc:76
↓ 4 callers
Method
retrieve
trantor/net/inner/MemBufferNode.cc:14
↓ 4 callers
Function
retry
* @brief Check whether the client re-connect to the server. * * @return true * @return false */
trantor/net/TcpClient.h:98
↓ 4 callers
Method
runEvery
trantor/net/EventLoop.cc:318
↓ 4 callers
Method
setWriteCallback
* @brief Set a function to be called when the TLSProvider wants to send * data * * @note The caller MUST guarantee that it will not mak
trantor/net/inner/TLSProvider.h:94
↓ 4 callers
Method
startEncryption
trantor/net/inner/TcpConnectionImpl.cc:795
↓ 4 callers
Method
swap
trantor/utils/MsgBuffer.cc:61
↓ 4 callers
Method
toCustomFormattedStringLocal
trantor/utils/Date.cc:513
↓ 4 callers
Function
trantor_sha1_update
trantor/utils/crypto/sha1.cc:252
↓ 4 callers
Function
trantor_sha3_keccakf
trantor/utils/crypto/sha3.cc:11
↓ 3 callers
Function
F
* The blake2b compress function which takes a full 128-byte chunk of the * input message and mixes it into the ongoing state array * * @param
trantor/utils/crypto/blake2.cc:162
↓ 3 callers
Function
beginWrite
* @brief Get the end of the buffer where new data can be written. * * @return const char* */
trantor/utils/MsgBuffer.h:64
↓ 3 callers
Function
clamp
trantor/utils/Logger.cc:42
↓ 3 callers
Method
dequeue
* @brief Get a item from the queue. * * @param output * @return false if the queue is empty. * @note This method must be called in
trantor/utils/LockFreeQueue.h:73
↓ 3 callers
Method
flush
trantor/utils/AsyncFileLogger.cc:109
↓ 3 callers
Function
hton64
trantor/utils/Funcs.h:21
↓ 3 callers
Method
invalidateTimer
trantor/net/EventLoop.cc:332
↓ 3 callers
Method
isStream
trantor/net/inner/BufferNode.h:39
↓ 3 callers
Function
resetTimerfd
trantor/net/inner/TimerQueue.cc:54
↓ 3 callers
Method
runAt
trantor/net/EventLoop.cc:290
↓ 3 callers
Method
sendAsyncDataInLoop
trantor/net/inner/TcpConnectionImpl.cc:972
↓ 3 callers
Method
sendNodeInLoop
trantor/net/inner/TcpConnectionImpl.cc:661
↓ 3 callers
Function
trantor_blake2b_increment_counter
* Increments the blake2b state counter * * @param S blake2b_state instance * @param[in] inc the increment value */
trantor/utils/crypto/blake2.cc:128
↓ 3 callers
Function
trantor_md5_transform
FUNCTION DEFINITIONS ***********************/
trantor/utils/crypto/md5.cc:48
↓ 3 callers
Function
trantor_sha256_transform
FUNCTION DEFINITIONS ***********************/
trantor/utils/crypto/sha256.cc:46
↓ 2 callers
Method
accept
trantor/net/inner/Socket.cc:81
↓ 2 callers
Method
addInFrontInt64
trantor/utils/MsgBuffer.cc:106
next →
1–100 of 724, ranked by callers