design.callmgr
来自「pptp第二层隧道模块」· CALLMGR 代码 · 共 24 行
CALLMGR
24 行
Call Manager is a single-threaded application.It's easier that way.Nothing blocks except a select() call.The pptp code provides an fd_set for us to watch, and a functionto call to see if a given event pertains to the pptp code.Each CALL connection goes in the exceptions set, and is watched for close.We need a separate list of these, to check against the fd_set whenan event happens.Writes get copied in a queue, and are only written if the select says wecan.Reads go in another queue -- non-blocking! -- and messages are made fromthe queue as we are able.We register callbacks on significant events (any and all of them, ifwe please) which can trigger a close on a user unix socket, forexample.Nomenclature: inet_read|write ... TCP port 1723 PPTP control connection unix_read|write ... Call manager Unix socket to pppd/gre.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?