R
Rob
I have built a little wireless restaurant point of sale system that
has been in real use for the last 3 months ( written in c# ). There
are about 5 ppc's submiting orders to a desktop pc. My first attempt
at communications was written using sockets. The ppc would create a
new socket for each request. One would be to send the order. Then it
would create a new socket every few seconds and poll the desktop
server ( also written in c# ) to see if the order was ready. Things
didn't work that bad. I had a few issues with dynamic ip addresses
and hibernating and sometimes things didn't connect correctly but for
the most part there were not any issues. I recently noticed 2
alternatives. 1. is having the desktop serve out webservices and 2.
is a new messaging artical on msdn
http://www.msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp09182003.asp.
I noticed that #2, the messaging example, creates and maintains 1
connection to pass messages. Both of these alternatives seem to be
more robust than my current method. Are webservices from the desktop
going to be more reliable and easier for me since I don't care about
latency? Or is the messaging example a better option?
I have one last question that is a bit off subject and related to the
ip address on the desktop. Since I have control over the desktop, is
it advisable to give it a static ip so I don't run into issues with
the pocket pc's finding the server? I know nothing about networking
so this is probably a very stupid and basic question.
Thanks for any help,
Rob
has been in real use for the last 3 months ( written in c# ). There
are about 5 ppc's submiting orders to a desktop pc. My first attempt
at communications was written using sockets. The ppc would create a
new socket for each request. One would be to send the order. Then it
would create a new socket every few seconds and poll the desktop
server ( also written in c# ) to see if the order was ready. Things
didn't work that bad. I had a few issues with dynamic ip addresses
and hibernating and sometimes things didn't connect correctly but for
the most part there were not any issues. I recently noticed 2
alternatives. 1. is having the desktop serve out webservices and 2.
is a new messaging artical on msdn
http://www.msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp09182003.asp.
I noticed that #2, the messaging example, creates and maintains 1
connection to pass messages. Both of these alternatives seem to be
more robust than my current method. Are webservices from the desktop
going to be more reliable and easier for me since I don't care about
latency? Or is the messaging example a better option?
I have one last question that is a bit off subject and related to the
ip address on the desktop. Since I have control over the desktop, is
it advisable to give it a static ip so I don't run into issues with
the pocket pc's finding the server? I know nothing about networking
so this is probably a very stupid and basic question.
Thanks for any help,
Rob