MCPcopy Create free account

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

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

↓ 1 callersMethodnext
遍历查询得到的结果集
src/mysql/MysqlConn.cc:56
↓ 1 callersFunctiononRequest
src/http/main.cc:10
↓ 1 callersFunctionop1
非连接池
src/mysql/test/MysqlPoolTest.cc:11
↓ 1 callersFunctionop2
连接池
src/mysql/test/MysqlPoolTest.cc:24
↓ 1 callersMethodoperator+
add to iterator
src/mysql/json.hpp:8424
↓ 1 callersFunctionoperator+=
! @brief add an object to an array @copydoc push_back(basic_json&&) */
src/mysql/json.hpp:17735
↓ 1 callersFunctionoperator<
! @brief comparison operator for JSON types Returns an ordering that is similar to Python: - order: null < boolean < number < object < array < st
src/mysql/json.hpp:1294
↓ 1 callersMethodparseRequest
return false if any error
src/http/HttpContext.cc:57
↓ 1 callersMethodpoll
src/net/poller/EPollPoller.cc:25
↓ 1 callersMethodquit
src/net/EventLoop.cc:93
↓ 1 callersMethodreadFd
* 从fd上读取数据 Poller工作在LT模式 * Buffer缓冲区是有大小的! 但是从fd上读取数据的时候 却不知道tcp数据的最终大小 * * @description: 从socket读到缓冲区的方法是使用readv先读至buffer_, * Buffer_空间如果不够会读入到栈上
src/net/Buffer.cc:18
↓ 1 callersMethodremoveChannel
src/net/EventLoop.cc:171
↓ 1 callersMethodrepeat
src/timer/Timer.h:31
↓ 1 callersMethodreset
重置HttpContext状态,异常安全
src/http/HttpContext.h:30
↓ 1 callersMethodreset
include/tiny_network/logger/FixedBuffer.h:38
↓ 1 callersMethodresetPool
src/memory/MemoryPool.cc:236
↓ 1 callersMethodrestart
src/timer/Timer.cc:3
↓ 1 callersMethodretrieve
onMessage string <- Buffer 需要进行复位操作
src/net/Buffer.h:58
↓ 1 callersMethodretrieveAll
全部读完,则直接将可读缓冲区指针移动到写缓冲区指针那
src/net/Buffer.h:74
↓ 1 callersMethodrun
src/timer/Timer.h:25
↓ 1 callersFunctionsax_parse
src/mysql/json.hpp:19115
↓ 1 callersMethodscan
src/mysql/json.hpp:6939
↓ 1 callersMethodsetErrorCallback
src/net/Channel.h:37
↓ 1 callersMethodsetHttpCallback
src/http/HttpServer.h:24
↓ 1 callersMethodsetKeepAlive
src/net/Socket.cc:91
↓ 1 callersFunctionsetLogging
example/echoServerAsync.cc:67
↓ 1 callersMethodsetMethod
src/http/HttpRequest.h:27
↓ 1 callersMethodsetNewConnectionCallback
src/net/Acceptor.h:23
↓ 1 callersMethodsetQuery
src/http/HttpRequest.h:93
↓ 1 callersMethodsetReceiveTime
src/http/HttpRequest.h:100
↓ 1 callersMethodsetReuseAddr
设置地址复用,其实就是可以使用处于Time-wait的端口
src/net/Socket.cc:78
↓ 1 callersMethodsetReusePort
通过改变内核信息,多个进程可以绑定同一个地址。通俗就是多个服务的ip+port是一样
src/net/Socket.cc:85
↓ 1 callersMethodsetSockAddr
src/net/InetAddress.h:23
↓ 1 callersMethodsetThreadNum
设置底层subloop的个数
src/net/TcpServer.cc:53
↓ 1 callersMethodsetThreadSize
src/base/ThreadPool.h:22
↓ 1 callersMethodsetWriteCallback
src/net/Channel.h:35
↓ 1 callersMethodsetWriteCompleteCallback
src/net/TcpServer.h:43
↓ 1 callersMethodset_revents
返回感兴趣的事件
src/net/Channel.h:44
↓ 1 callersMethodshutdownWrite
TODO:socket的各个设置的用法
src/net/Socket.cc:59
↓ 1 callersFunctionsplit
! @brief split the string input to reference tokens @note This function is only called by the json_pointer constructor. All exc
src/mysql/json.hpp:9245
↓ 1 callersMethodstart
example/echoServer.cc:24
↓ 1 callersMethodstart
src/logger/AsyncLogging.h:33
↓ 1 callersMethodstart
src/http/HttpServer.cc:33
↓ 1 callersMethodstart
src/base/Thread.cc:34
↓ 1 callersMethodstart
开启服务器监听
src/net/TcpServer.cc:60
↓ 1 callersMethodstart
include/tiny_network/base/chrono/Timer.h:125
↓ 1 callersMethodstartLoop
src/net/EventLoopThread.cc:32
↓ 1 callersMethodstop
src/logger/AsyncLogging.h:39
↓ 1 callersMethodswap
include/tiny_network/http/HttpRequest.h:142
↓ 1 callersFunctiontest1
src/base/test/ThreadPool.cc:15
↓ 1 callersFunctiontest2
src/memory/test/MemoryPoolTest.cc:92
↓ 1 callersFunctiontest3
src/mysql/test/MysqlPoolTest.cc:129
↓ 1 callersFunctiontest_AsyncLogging
src/logger/test/AsyncLoggingTest.cc:30
↓ 1 callersFunctiontid
内联函数
include/tiny_network/base/CurrentThread.h:14
↓ 1 callersMethodtie
在TcpConnection建立得时候会调用
src/net/Channel.cc:24
↓ 1 callersMethodtoString
src/logger/FixedBuffer.h:41
↓ 1 callersFunctionto_cbor
src/mysql/json.hpp:19424
↓ 1 callersFunctionto_chars
src/mysql/json.hpp:12088
↓ 1 callersFunctionto_json_tuple_impl
src/mysql/json.hpp:2172
↓ 1 callersMethodtop
src/mysql/json.hpp:8813
↓ 1 callersFunctionunescape
unescape "~1" to tilde and "~0" to slash (order is important!)
src/mysql/json.hpp:9340
↓ 1 callersMethodupdateChannel
src/net/EventLoop.cc:166
↓ 1 callersMethodversion
src/http/HttpRequest.h:25
↓ 1 callersMethodwrite
src/logger/FileUtil.cc:47
↓ 1 callersMethodwriteFd
inputBuffer_.readFd表示将对端数据读到inputBuffer_中,移动writerIndex_指针 outputBuffer_.writeFd表示将数据写入到outputBuffer_中,从readerIndex_开始,可以写readableBytes()个字节
src/net/Buffer.cc:66
↓ 1 callersMethodwrittenBytes
src/logger/FileUtil.h:17
MethodAcceptor
src/net/Acceptor.cc:20
MethodAsyncLogging
src/logger/AsyncLogging.cc:6
MethodBuffer
src/net/Buffer.h:23
MethodBuffer
include/tiny_network/net/Buffer.h:23
MethodChannel
src/net/Channel.cc:8
MethodConnectionPool
src/mysql/ConnectionPool.cc:13
MethodConnectionPool
src/mysql/ConnectionPool.h:22
MethodConnectionPool
include/tiny_network/mysql/ConnectionPool.h:22
MethodEPollPoller
TODO:epoll_create1(EPOLL_CLOEXEC)
src/net/poller/EPollPoller.cc:9
MethodEchoServer
example/echoServer.cc:9
MethodEchoServer
example/echoServerAsync.cc:9
MethodEventLoop
src/net/EventLoop.cc:25
MethodEventLoopThread
src/net/EventLoopThread.cc:4
MethodEventLoopThreadPool
src/net/EventLoopThreadPool.cc:6
MethodFileUtil
src/logger/FileUtil.cc:4
MethodFixedBuffer
src/logger/FixedBuffer.h:17
MethodFixedBuffer
include/tiny_network/logger/FixedBuffer.h:17
MethodGeneralTemplate
src/logger/LogStream.h:17
MethodGeneralTemplate
include/tiny_network/logger/LogStream.h:17
MethodGetBufferAllAsString
DEBUG使用,提取出string类型,但是不会置位
include/tiny_network/net/Buffer.h:81
MethodHttpContext
src/http/HttpContext.h:20
MethodHttpContext
include/tiny_network/http/HttpContext.h:20
MethodHttpRequest
src/http/HttpRequest.h:14
MethodHttpRequest
include/tiny_network/http/HttpRequest.h:14
MethodHttpResponse
src/http/HttpResponse.h:20
MethodHttpResponse
include/tiny_network/http/HttpResponse.h:20
MethodHttpServer
src/http/HttpServer.cc:19
MethodImpl
src/logger/Logging.cc:47
MethodInetAddress
src/net/InetAddress.h:13
MethodInetAddress
src/net/InetAddress.cc:3
MethodInetAddress
include/tiny_network/net/InetAddress.h:13
FunctionJSON_INTERNAL_CATCH
src/mysql/json.hpp:16388
MethodLogFile
src/logger/LogFile.cc:3
MethodLogger
level默认为INFO等级
src/logger/Logging.cc:99
← previousnext →201–300 of 860, ranked by callers