Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CEchoHandler的virtual void HandleWrite(HL_SOCKET handle) #4

Open
GoogleCodeExporter opened this issue Jul 2, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

有个问题不是很清楚,就是:

CEchoHandler的virtual void HandleWrite(HL_SOCKET 
handle)是如何获得运行的,我的意思是它应该是有一个EV_WRITE��
�事件,这个事件是如何产生的?


比如CNotifyHandler::HandleRead是在CNotifyHandler::WriteNotification中往pip
e写之后就可以获得调用,但是CEchoHandler的virtual void 
HandleWrite是哪里的事件触发的呢?


Original issue reported on code.google.com by MichaelY...@gmail.com on 22 Feb 2011 at 2:50

@GoogleCodeExporter
Copy link
Author

已经注册了WRITE事件,你看代码中会有这一个注册调用的。
当socket可写时,系统就会发出可写事件通知,HPServer调度器就
会调用注册的handleWrite。

Original comment by sparklin...@gmail.com on 25 Mar 2011 at 2:28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant