Groups
Sign in
Groups
高性能服务器研发与运营邮件列表
Conversations
About
Send feedback
Help
回复: 难道服务端程序不能使用callback?
51 views
Skip to first unread message
isold...@gmail.com
unread,
Dec 27, 2012, 9:23:36 PM
12/27/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev4server@googlegroups com
用sigslot就成了,libjingle里有。
发送自HTC手机
----- Reply message -----
发件人: "Kevin" <
com...@gmail.com
>
收件人: "
dev4s...@googlegroups.com
" <
dev4s...@googlegroups.com
>
主题: 难道服务端程序不能使用callback?
日期: 周五, 12 月 28 日, 2012 年 08:42
哪有这个说法,nginx里面到处都是回调。如果说因为可能越界而不用,那c语言的指针、数组都得避免了。
回调确实会增加复杂度,但同时也带来高性能与灵活度等方面的好处。需要权衡。
On Thursday, December 27, 2012, kusamba <
kus...@gmail.com
> wrote:
> 服务端程序,用callback的方式实现了一个有限状态机,用一个static变量注册函数地址,老大说不用使用函数指针,大家评论下!
>
> 他的理由是:数据越界会导致指针乱掉,从而core,有经验的同学评论下!
>
> --
> 高性能服务器研发与运营
>
http://groups.google.com/group/dev4server
--
高性能服务器研发与运营
http://groups.google.com/group/dev4server
Reply all
Reply to author
Forward
0 new messages