Is safe to assume that the callbacks of an StreanSocket or StreamSocketListener object are dispatched by the same thread?
For example two successive ConnectionReceived events in a StreamSocketListener will be serialized in the same thread or they could arrive concurrently in different threads. I have not found any references to this in the documentation.
Which project type do you based on? If it is a Win32 application, I would suggest you to ask help in
Winsock Kernel (WSK). If your project is based on metro. You need use asynchronous mode in C++/CX. You can follow StreamSocket sample