I have a problem that is really getting on my nerves now and would really appreciate some help.
Two apps - one is a front end client, the other is a server. They are communicating via sockets.
At some stage the user will transmit a load of files sequentially from the client to the server. I am looping over the blocking method Socket.SendFile for this.
When the server receives the files it sends a status notification message to the client.
The client receives the status notification messages asynchronously in a different thread to the one used for sending files.
The problem is I keep getting the exception: A blocking operation was interrupted by a call to WSACancelBlockingCall at some arbitrary point the n'th iteration of the SendFile command.
I am assuming the socket cannot be sending and receiving at the same time, although any other suggestions would be welcome.