This patch implements the function of sending frame and sample subprotocol:
echo, it simply send back the payload it received. Now it can work with the
echo test in websocket.org. This can also be regarded as framework for
further development, it must have drawbacks can be improved, so any
suggestions are appreciated.

This patch is based on the one applied to master, but not my previous
one(Includes it). If the previous one has not be applied, then forget it.

This is the first time I use epoll, and I want to ask a question about it.
I think the socket should be set to edge triggered, or the write event will
be kept invoking. Right? But why I didn't see any code in monkey change the
mode to MK_EPOLL_EDGE_TRIGGERED. Thanks for your explanation.

--Kay

Attachment: websocket_echo_subprotocol_enabled.patch
Description: Binary data

_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to