Wrong param in INETMGR_OnEvent? | developer.brewmp.com Wrong param in INETMGR_OnEvent? | developer.brewmp.com

Developer

Wrong param in INETMGR_OnEvent?

Forums:

0. I register to INetMgr events using INETMGR_OnEvent()
1. I create an ISockPort - address in memory 38375512
2. ISOCKPORT_Connect returns AEEPORT_WAIT
3. event NE_SO_OPENING notified (dwData=38375516)
4. event NE_SO_OPENING notified (dwData=38375516)
5. event NE_SO_CONNECTED notified (dwData=38375516)

What I find a bit surprising is that the dwParam is always 4 bytes offset to my ISockPort pointer address.
1. Why is that?
2. How can I know when an event is notified, that it is my ISockPort??

Please help.... :->