Advice needed on socket programming...

  • Thread starter Thread starter Sam Sungshik Kong
  • Start date Start date
S

Sam Sungshik Kong

Hello, C# gurus!

I and my friends are planning to make a socket program just for practice of
C# programming.
It will be made up of a client program and a server program using a specific
tcp port (e.g. 10000).
The client program will send a connection string and a sql statement to the
server program.
(The DB is on the server side, of course)
The server program will return the result set of the sql statement as a form
of either a comma-separated value or something like that.

My question is what is the most common spec of the messages for this
situation.
XML or just customized parsed string or just stream of the dataset object or
whatever?

I have no experience with socket programs.
I know just the basics of sockets.

Any advice will be greatly appreciated.

Sam
 
As this is a toy app, I would say stick to the K.I.S.S principle. Stay away
from XML (unless you want to learn XML also, which might be a good thing).

Send your SQL query as a string from the client to the server and return the
results delimited by commas or something similar
 
Back
Top