Overview
| Artifact ID: | 6c8ddb3ba46e4544aa6cd438e8b2726caf38507e |
|---|---|
| Ticket: | fc3c425cde46c6996c8543f701fcbeafd2b7ee5e
Use iocpsock as windows socket driver |
| User & Date: | oehhar on 2017-01-31 20:57:22 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
Aim of this ticket is to elaborate to use iocpsock ([http://sf.net/projects/iocpsock]) as a windows socket driver. The author is David Gravereaux, who provided the following informations by private E-Mail: As my open license says you can do anything you want with my code, go for it. Yes, please add it to the core. I had some reservations in 2004 or so when Jeff Hobbs asked me only because I'm a perfectionist. The thread that processes the completion port could also be used for file and console channel types, too. So that will need to be internally shared in some manner. I've lost touch with the Win32 API as I don't do programming these days, but I tried to implement a method for creating more than just TCP channel types. I think Microsoft has dropped that since XP was current. Also, there probably isn't much of an interest in Netware IPX sockets anyways. Has the channel API in TCL gained the support of packet/message based usage yet to support UDP? When I first wrote the extension, I used a crazy complex way of allowing fine tuning of the amount pre-allocated buffers. Some of it was good such as multiple send buffers and multiple accept buffers for listening sockets, but the rest didn't work for finding an improvement. For receiving sockets, after deep experimentation, I found that just a single zero sized buffer to act as pure notification while matching the TCP buffer size to the channel buffer size was the best way to do it. Doing the WSARecv() in the ChannelReadable using the channel buffer directly is the most efficient way rather copying from the returning completion port buffers.
- foundin changed to: "8.6.7"
- is_private changed to: "0"
- login: "oehhar"
- priority changed to: "5 Medium"
- private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "oehhar"
- subsystem changed to: "25. Channel System"
- title changed to: "Use iocpsock as windows socket driver"
- type changed to: "RFE"