Travis

Travis

  • NA
  • 2
  • 0

Socket Question

Jul 5 2009 2:22 AM
Recently I have been asked to develop a Client-Server Application.  I am a decent C# coder, but I have never worked with Sockets.  Upon the request, I searched out tutorials and articles describing the process of creating a Client and a Server.  I found quite a few, but they mostly covered creating Chat programs for their examples.  I was asked to have the client send commands to the server and receive a response, either a bool value or a datablock.  For example; The client sends "Verify('Test', 'test')" and expects to receive a bool value back.  My problem is that I don't know how to let the server know that what it is being sent is a command.   How would I do so?  Also, how would I send an String Array though the Stream?


If you would, please include a simple example.  I seem to understand a concept better if I am both told and shown.


Thank you for your time.