📄 design.callmgr
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -