Blocking in CSocket
-
HI, I am using a class derived from CSocket in my application. As when the Socket is sending or reciveing a data and the data not came then it gets blocked. There is a CancelBlocking method in the CSocket. But how can I programaticaly handle it, when one of the application Client or Server stops sending or recieving dta then other application should not gets blocked. any idea / link Thanks Regards.
-
HI, I am using a class derived from CSocket in my application. As when the Socket is sending or reciveing a data and the data not came then it gets blocked. There is a CancelBlocking method in the CSocket. But how can I programaticaly handle it, when one of the application Client or Server stops sending or recieving dta then other application should not gets blocked. any idea / link Thanks Regards.
zahid_ash wrote:
when one of the application Client or Server stops sending or recieving dta then other application should not gets blocked.
Try the CAsyncSocket Class. Knock out 't' from can't, You can if you think you can :cool:
-
zahid_ash wrote:
when one of the application Client or Server stops sending or recieving dta then other application should not gets blocked.
Try the CAsyncSocket Class. Knock out 't' from can't, You can if you think you can :cool:
-
I have already used CSocket in my project. Should I replace CSocket word with CAsyncSocket , woiuld it not disturb the project. or how can I handle this with CSocket? Regards.
zahid_ash wrote:
I have already used CSocket in my project. Should I replace CSocket word with CAsyncSocket , woiuld it not disturb the project. or how can I handle this with CSocket?
Try it.. As the CSocket is derived from CAsyncSocket class Knock out 't' from can't, You can if you think you can :cool:
-
zahid_ash wrote:
I have already used CSocket in my project. Should I replace CSocket word with CAsyncSocket , woiuld it not disturb the project. or how can I handle this with CSocket?
Try it.. As the CSocket is derived from CAsyncSocket class Knock out 't' from can't, You can if you think you can :cool:
-
Can i handle this blocking and cancel blocking in CSocket. Can the timer be helpfull , means if in specific time nothing has been recived or sent then socket use the cancel blocking or so ? Regards.