I have been playing arround with web server examples and i thought i was starting to get an understanding of how it works until I found your example which works great but blew my understanding out the door.
Seems many people start the network like this:
Microsoft.SPOT.Net.NetworkInformation.NetworkInterface NI = Microsoft.SPOT.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces(); Socket serverSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
Yet with your example it was not done this way.
So now that i see there are 2 ways to start a listening socket, what are the pro’s and cons for each?
they both seem to work just fine, but i really dont understand yet just how you are doing what you are doing in there.