本文发表在 rolia.net/zh 相约加拿大网上社区枫下论坛
I am developing a winsocket program. when I finished the development, i tested it on win98, it runs well. But when I tested it on WinNT, it always waits for a long time then fails. The details r as followings:
1) first, I used no-blocking mode to degisn the program, that is an event mode. Simply and technologily speaking, the event mode is that when the TCP/IP connect is setup, an event is created by the system. I just wanna capture the event then send my data.
2) I think the connection is already setup, but I donot understand why the event isnot created. Because I set a limited time for connection. If the connection is over the time, error message will be hinted, otherwise, the event should be dispatched.
3) blocking mode is OK. I mean the connection can be created and signal can be return and event can be created. But why isnot NO-BLOCKING mode OK?
4) BAck to the point, it runs well in WIN98 and failed in WinNT? what the essential difference between 98 and NT? I know there are diference which express in the MACRO defined by WIN32 SDK
Plz [red]EXPERT[/red] help me!
The dead line is COMING!!!
更多精彩文章及讨论，请光临枫下论坛. 网址: rolia.net/zh