.
D 2017-01-31T20:57:22.320
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment Aim\sof\sthis\sticket\sis\sto\selaborate\sto\suse\siocpsock\s([http://sf.net/projects/iocpsock])\sas\sa\swindows\ssocket\sdriver.\r\n\r\nThe\sauthor\sis\sDavid\sGravereaux,\swho\sprovided\sthe\sfollowing\sinformations\sby\sprivate\sE-Mail:\r\n\r\nAs\smy\sopen\slicense\ssays\syou\scan\sdo\sanything\syou\swant\swith\smy\scode,\sgo\sfor\sit.\s\sYes,\splease\sadd\sit\sto\sthe\score.\r\n\r\nI\shad\ssome\sreservations\sin\s2004\sor\sso\swhen\sJeff\sHobbs\sasked\sme\sonly\sbecause\sI'm\sa\sperfectionist.\r\n\r\nThe\sthread\sthat\sprocesses\sthe\scompletion\sport\scould\salso\sbe\sused\sfor\sfile\sand\sconsole\schannel\stypes,\stoo.\r\nSo\sthat\swill\sneed\sto\sbe\sinternally\sshared\sin\ssome\smanner.\r\n\r\nI've\slost\stouch\swith\sthe\sWin32\sAPI\sas\sI\sdon't\sdo\sprogramming\sthese\sdays,\sbut\sI\stried\sto\simplement\sa\smethod\sfor\screating\smore\sthan\sjust\sTCP\schannel\stypes.\r\nI\sthink\sMicrosoft\shas\sdropped\sthat\ssince\sXP\swas\scurrent.\r\nAlso,\sthere\sprobably\sisn't\smuch\sof\san\sinterest\sin\sNetware\sIPX\ssockets\sanyways.\r\n\r\nHas\sthe\schannel\sAPI\sin\sTCL\sgained\sthe\ssupport\sof\spacket/message\sbased\susage\syet\sto\ssupport\sUDP?\r\n\r\nWhen\sI\sfirst\swrote\sthe\sextension,\sI\sused\sa\scrazy\scomplex\sway\sof\sallowing\sfine\stuning\sof\sthe\samount\spre-allocated\sbuffers.\r\nSome\sof\sit\swas\sgood\ssuch\sas\smultiple\ssend\sbuffers\sand\smultiple\saccept\sbuffers\sfor\slistening\ssockets,\sbut\sthe\srest\sdidn't\swork\sfor\sfinding\san\simprovement.\r\n\r\nFor\sreceiving\ssockets,\safter\sdeep\sexperimentation,\sI\sfound\sthat\sjust\sa\ssingle\szero\ssized\sbuffer\sto\sact\sas\spure\snotification\swhile\smatching\sthe\sTCP\sbuffer\ssize\sto\sthe\schannel\sbuffer\ssize\swas\sthe\sbest\sway\sto\sdo\sit.\r\nDoing\sthe\sWSARecv()\sin\sthe\sChannelReadable\susing\sthe\schannel\sbuffer\sdirectly\sis\sthe\smost\sefficient\sway\srather\scopying\sfrom\sthe\sreturning\scompletion\sport\sbuffers.
J foundin 8.6.7
J is_private 0
J login oehhar
J priority 5\sMedium
J private_contact 0f366eb3e9e2fcab52b8ebacd197db9047186a5f
J resolution None
J severity Minor
J status Open
J submitter oehhar
J subsystem 25.\sChannel\sSystem
J title Use\siocpsock\sas\swindows\ssocket\sdriver
J type RFE
K fc3c425cde46c6996c8543f701fcbeafd2b7ee5e
U oehhar
Z 877ba400106ccba8c43d2259e1290549