Hello to all,
I am going to write code that should listen for TCPIP messages coming from GSM mobile phones via GPRS. In full time, I see that this works on a virtual private server, and it can process several messages every second.
I am a little virtuoso in network programming, so I did some research on the Internet and read some tutorials. The approach that I am currently considering is a Windows service that uses sockets to monitor the port. If my understanding is correct, do I need one socket to listen for connections with clients, and every time someone tries to connect to the port, will I be given a different socket with which to contact them? Does this mean more experienced ears?
I plan on using asynchronous communication, but for larger design issues, is it worth using streams or not. Threading is not what I really played with, and I am aware of several pitfalls - race conditions and debugging issues, but only two.
If I avoid threads, I know that I have to provide an object that acts as an identifier for a particular conversation. I thought of a GUID for this - any opinions?
Thanks in advance for any answers ...
Martin
c # networking tcp
Martin milan
source share