MCPcopy Create free account

hub / github.com/Shangyizhou/A-Tiny-Network-Library / functions

Functions860 in github.com/Shangyizhou/A-Tiny-Network-Library

↓ 3 callersMethodretrieveAllAsString
将onMessage函数上报的Buffer数据,转成string类型的数据返回
src/net/Buffer.h:89
↓ 3 callersMethodsetBody
src/http/HttpResponse.h:44
↓ 3 callersMethodsetContentType
src/http/HttpResponse.h:38
↓ 3 callersMethodset_end
! @brief set the iterator past the last value @pre The iterator is initialized; i.e. `m_object != nullptr`. */
src/mysql/json.hpp:7910
↓ 3 callersMethodset_index
src/net/Channel.h:65
↓ 3 callersMethodupdate
更新数据库:包括 insert update delete 操作
src/mysql/MysqlConn.cc:32
↓ 2 callersMethodGetBufferAllAsString
DEBUG使用,提取出string类型,但是不会置位
src/net/Buffer.h:81
↓ 2 callersMethodaccept
! @brief public accept interface @param[in] strict whether to expect the last token to be EOF @return whether the input is a proper
src/mysql/json.hpp:7193
↓ 2 callersMethodadd
src/logger/FixedBuffer.h:36
↓ 2 callersMethodadd
src/base/ThreadPool.cc:53
↓ 2 callersFunctionaddTime
如果是重复定时任务就会对此时间戳进行增加。
include/tiny_network/base/Timestamp.h:65
↓ 2 callersFunctioncacheTid
src/base/CurrentThread.cc:7
↓ 2 callersFunctioncompute_boundaries
src/mysql/json.hpp:11218
↓ 2 callersMethodcreatePool
src/memory/MemoryPool.cc:6
↓ 2 callersMethodcurrent
src/logger/FixedBuffer.h:34
↓ 2 callersFunctiondestroy
src/mysql/json.hpp:13894
↓ 2 callersMethoddestroyPool
src/memory/MemoryPool.cc:36
↓ 2 callersMethodfindCRLF
src/net/Buffer.h:133
↓ 2 callersMethodfreeMemory
src/memory/MemoryPool.cc:193
↓ 2 callersFunctionfrom_json_array_impl
src/mysql/json.hpp:1459
↓ 2 callersMethodget
@brief get next character from the input This function provides the interface to the used input adapter. It does not throw in case the inp
src/mysql/json.hpp:6777
↓ 2 callersMethodgetConnection
获取连接
src/mysql/ConnectionPool.cc:122
↓ 2 callersFunctiongetErrnoMsg
src/logger/Logging.cc:11
↓ 2 callersMethodgetLoop
src/net/TcpServer.h:51
↓ 2 callersMethodget_character
src/mysql/json.hpp:2340
↓ 2 callersFunctionget_impl_ptr
get a pointer to the value (object)
src/mysql/json.hpp:15276
↓ 2 callersFunctiongrisu2_round
src/mysql/json.hpp:11577
↓ 2 callersMethodindex
* for Poller * const int kNew = -1; // fd还未被poller监视 * const int kAdded = 1; // fd正被poller监视中 * const int kDeleted = 2; // fd被
src/net/Channel.h:64
↓ 2 callersFunctioninsert
! @brief inserts element Inserts element @a val before iterator @a pos. @param[in] pos iterator before which the content will be in
src/mysql/json.hpp:18019
↓ 2 callersMethodisInLoopThread
判断EventLoop是否在自己的线程
src/net/EventLoop.h:51
↓ 2 callersMethodis_end
return whether the iterator is at end
src/mysql/json.hpp:7605
↓ 2 callersMethodis_errored
src/mysql/json.hpp:2992
↓ 2 callersFunctionis_number_unsigned
! @brief return whether value is an unsigned integer number This function returns true if and only if the JSON value is an unsigned i
src/mysql/json.hpp:15105
↓ 2 callersMethodlength
src/logger/FixedBuffer.h:32
↓ 2 callersMethodname
src/mysql/json.hpp:160
↓ 2 callersMethodname
src/net/TcpServer.h:53
↓ 2 callersFunctionparse
src/mysql/json.hpp:19178
↓ 2 callersMethodrefreshAliveTime
刷新起始的空闲时间点
src/mysql/MysqlConn.cc:106
↓ 2 callersMethodreset
src/timer/TimerQueue.cc:141
↓ 2 callersMethodretrieveUntil
src/net/Buffer.h:51
↓ 2 callersMethodsetCloseCallback
src/net/Channel.h:36
↓ 2 callersMethodsetCloseConnection
src/http/HttpResponse.h:32
↓ 2 callersMethodsetPath
src/http/HttpRequest.h:86
↓ 2 callersMethodsetVersion
src/http/HttpRequest.h:20
↓ 2 callersMethodset_begin
! @brief set the iterator to the first value @pre The iterator is initialized; i.e. `m_object != nullptr`. */
src/mysql/json.hpp:7873
↓ 2 callersMethodshutdown
关闭连接
src/net/TcpConnection.cc:174
↓ 2 callersFunctionsize
! @brief returns the number of elements Returns the number of elements in a JSON value. @return The return value depends on the dif
src/mysql/json.hpp:17497
↓ 2 callersMethodstart
example/echoServerAsync.cc:24
↓ 2 callersFunctiontest_Logging
src/logger/test/AsyncLoggingTest.cc:16
↓ 2 callersMethodtoFormattedString
2022/08/26 16:29:10 20220826 16:29:10.773804
src/base/Timestamp.cc:17
↓ 2 callersMethodwrite_bson
! @param[in] j JSON value to serialize @pre j.type() == value_t::object */
src/mysql/json.hpp:9725
↓ 2 callersMethodwrite_cbor
! @param[in] j JSON value to serialize */
src/mysql/json.hpp:9745
↓ 2 callersMethodwrite_msgpack
! @param[in] j JSON value to serialize */
src/mysql/json.hpp:9989
↓ 2 callersMethodwrite_ubjson
! @param[in] j JSON value to serialize @param[in] use_count whether to use '#' prefixes (optimized format) @param[in] use_type wh
src/mysql/json.hpp:10231
↓ 1 callersFunctionCheckLoopNotNull
src/net/TcpConnection.cc:15
↓ 1 callersFunctionCheckLoopNotNull
检查传入的 baseLoop 指针是否有意义
src/net/TcpServer.cc:9
↓ 1 callersFunctionReadTimerFd
src/timer/TimerQueue.cc:98
↓ 1 callersMethodaccept
src/net/Socket.cc:33
↓ 1 callersMethodappend
src/logger/AsyncLogging.cc:25
↓ 1 callersMethodappend
string::data() 转换成字符数组,但是没有 '\0'
src/net/Buffer.h:115
↓ 1 callersMethodappendToBuffer
src/http/HttpResponse.cc:7
↓ 1 callersFunctionappend_exponent
! @brief appends a decimal representation of e to buf @return a pointer to the element following the exponent. @pre -1000 < e < 1000 */
src/mysql/json.hpp:11955
↓ 1 callersMethodbindAddress
src/net/Socket.cc:17
↓ 1 callersMethodcloseConnection
src/http/HttpResponse.h:35
↓ 1 callersFunctioncrbegin
! @brief returns a const reverse iterator to the last element Returns a const iterator to the reverse-beginning; that is, the last el
src/mysql/json.hpp:17191
↓ 1 callersFunctioncreateEventfd
TODO:eventfd使用
src/net/EventLoop.cc:15
↓ 1 callersFunctioncreateNonblocking
src/net/Acceptor.cc:9
↓ 1 callersFunctioncreateTimerfd
src/timer/TimerQueue.cc:11
↓ 1 callersFunctioncrend
! @brief returns a const reverse iterator to one before the first Returns a const reverse iterator to the reverse-end; that is, one before
src/mysql/json.hpp:17220
↓ 1 callersMethoddata
include/tiny_network/logger/FixedBuffer.h:31
↓ 1 callersMethoddisableWriting
src/net/Channel.h:50
↓ 1 callersMethodenableWriting
src/net/Channel.h:49
↓ 1 callersMethodend
include/tiny_network/logger/FixedBuffer.h:44
↓ 1 callersFunctionerase
src/mysql/json.hpp:16542
↓ 1 callersMethodevents
返回封装的fd
src/net/Channel.h:43
↓ 1 callersFunctionfind_largest_pow10
! For n != 0, returns k, such that pow10 := 10^(k-1) <= n < 10^k. For n == 0, returns 1 and sets pow10 := 1. */
src/mysql/json.hpp:11521
↓ 1 callersMethodfinish
src/logger/Logging.cc:92
↓ 1 callersFunctionformat_buffer
! @brief prettify v = buf * 10^decimal_exponent If v is in the range [10^min_exp, 10^max_exp) it will be printed in fixed-point notation. Otherwi
src/mysql/json.hpp:12005
↓ 1 callersFunctionfrom_json_tuple_impl
src/mysql/json.hpp:1607
↓ 1 callersMethodgetAliveTime
计算连接存活的总时长
src/mysql/MysqlConn.cc:113
↓ 1 callersFunctiongetAsyncLog
src/logger/test/AsyncLoggingTest.cc:11
↓ 1 callersMethodgetHeader
获取请求头部的对应值
src/http/HttpRequest.h:126
↓ 1 callersMethodgetNextLoop
如果工作在多线程中,baseLoop_(mainLoop)会默认以轮询的方式分配Channel给subLoop
src/net/EventLoopThreadPool.cc:47
↓ 1 callersMethodgetPool
src/memory/MemoryPool.h:78
↓ 1 callersMethodgetSockAddr
src/net/InetAddress.h:22
↓ 1 callersFunctionget_cached_power_for_binary_exponent
! For a normalized diyfp w = f * 2^e, this function returns a (normalized) cached power-of-ten c = f_c * 2^e_c, such that the exponent of the produc
src/mysql/json.hpp:11357
↓ 1 callersMethodget_error_message
return syntax error message
src/mysql/json.hpp:6912
↓ 1 callersMethodget_number_float
return floating-point value
src/mysql/json.hpp:6864
↓ 1 callersMethodget_number_integer
return integer value
src/mysql/json.hpp:6852
↓ 1 callersMethodget_number_unsigned
return unsigned integer value
src/mysql/json.hpp:6858
↓ 1 callersMethodget_value
src/mysql/json.hpp:7581
↓ 1 callersMethodgotAll
src/http/HttpContext.h:27
↓ 1 callersFunctiongrisu2
! v = buf * 10^decimal_exponent len is the length of the buffer (number of decimal digits) The buffer must be large enough, i.e. >= max_digits10.
src/mysql/json.hpp:11858
↓ 1 callersFunctiongrisu2_digit_gen
! Generates V = buffer * 10^decimal_exponent, such that M- <= V <= M+. M- and M+ must be normalized and share the same exponent -60 <= e <= -32. */
src/mysql/json.hpp:11618
↓ 1 callersMethodhandleEvent
fd得到poller通知以后,去处理事件
src/net/Channel.cc:50
↓ 1 callersFunctioninitLogLevel
src/logger/Logging.cc:27
↓ 1 callersMethodipPort
src/net/TcpServer.h:55
↓ 1 callersMethodisNoneEvent
返回fd当前的事件状态
src/net/Channel.h:54
↓ 1 callersFunctionis_number
! @brief return whether value is a number This function returns true if and only if the JSON value is a number. This includes both in
src/mysql/json.hpp:15048
↓ 1 callersMethodmethodString
src/http/HttpRequest.h:60
← previousnext →101–200 of 860, ranked by callers