i have created a metro style datagram server and a client using Windows.Networking.Sockets. i am doing code in c++
Than i tried to connect and send data from client to server.
but the problem i am facing is that, as windows metro application is totally asynchronous,my app starts to send data before connection being completed.
i want an approach through which my send function will send data after the connection completed.
msdn has provided a sample code for client server but they use a button to send data which takes time to operate meanwhile the connection is completed.Thats why the application runs well.
but i am trying to do client server communication in the main code without using send Button.