Netduino Plus Socket Server Help
#1
Posted 10 July 2012 - 09:34 PM
#2
Posted 11 July 2012 - 09:14 AM
I would look at Stefan's excellent netmf toolbox particularly at the terminal server and simple socket classes. Typically with a socket I would use the events for connection and disconnection rather that the while loop you are currently using for detecting a connection. As it allows you greater control over the handling of such events.
Nak.
#3
Posted 12 July 2012 - 05:06 PM
Hi
I would look at Stefan's excellent netmf toolbox particularly at the terminal server and simple socket classes. Typically with a socket I would use the events for connection and disconnection rather that the while loop you are currently using for detecting a connection. As it allows you greater control over the handling of such events.
Nak.
Thanks for your reply Nakchak,
I have played around with Stefan's terminal server and it is awesome to say the least. I was modifying it to better suit my needs (removing some functionality) and then I realised that I still have a problem that when the client "loses" connection unexpectedly the server still thinks its connected and I cannot connect again. Eventually i would like to end up with a solution that will take action as soon as the client drops out (wireless router).
Could you please elaborate a bit more on the "events for connection and disconnection" you eluded to? Perhaps you could point me to some documetation that helps explain this a bit more.
And thank you for your earlier comments.
#4
Posted 14 July 2012 - 03:38 PM
#5
Posted 17 July 2012 - 06:16 AM
#6
Posted 15 January 2013 - 10:49 PM
Can anyone comment on nakchak's comment regarding the usage of events for connections / disconnections? While I'd love to do that, I've gone through the API reference and used Intellisense to peek at the members, and it sure looks to me like Poll is the only way to get incoming data.
#7
Posted 15 January 2013 - 11:31 PM
Hello,
I to would love to learn how to use the events for connection and disconnection rather than the while loop I'm currently using. I have looked around a bit over the last few months and I havent found a good example to learn from.
Thanks.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users