We have a little server application that sends data down to a client application via a TCP/IP socket over port 30006. These
applications are both written in C#. They have been working on our site for a couple of years. Now, we are trying to use these
applications at another site and we get an exception on the following line:-
Socket oRequest = new Socket(AddressFamily.InterNetwork,SocketType.Strea m,ProtocolType.Tcp);
The exception identifies itself as 10022 which is described as invalid argument.
My questions are
1) Is the Socket creation line an example of bad programming and we have been lucky to get away with it for 2 years?
1a) What is a better command to create a new Socket object to use over TCP/IP?
2) What are the circumstances in which the above line would fail? As far as we can see, the PCs have TCP/IP installed on them.
Internet explorer works for example.
Thanks for any help given.
--
Steve Walton