how i can use AsyncSelect
-
hi friends, i wrote one protocal...facing problem...please help any bogy before Lisening i am dedicating socket p.AsyncSelect(FD_ACCEPT); i am Accepting All the Connections.... next i want to do Sent and recieve repately....but after Accepting Connections its not going sent.. i am using CAsyncSocket(OnAccept,OnSent,OnRecieve)...
-
hi friends, i wrote one protocal...facing problem...please help any bogy before Lisening i am dedicating socket p.AsyncSelect(FD_ACCEPT); i am Accepting All the Connections.... next i want to do Sent and recieve repately....but after Accepting Connections its not going sent.. i am using CAsyncSocket(OnAccept,OnSent,OnRecieve)...
Quick tip: Leave
AsyncSelect()
alone, most time you don't need to play with these values. Socket objects inherit their notification event settings from the listening socket or more precisely from the socket that accepts them. If you use any of the notification handlerOnSent/OnRecieve/OnClose
in your socket objects you need the correspondingFD_WRITE/FD_READ/FD_CLOSE
events[^] too. Until you do some superduper-fine-tuning, just stick with the defaults. Hope this helps. :) /MChat in Europe :java: Now with 24% more Twitter