C Client Server code examples using Sockets.

September 16th, 2007 - 05:26 am ET by Nebbie With Passion | Report spam
Hello,

I'm looking for some client server examples using sockets that were written
in c language and can be run with Visual Studio 2005 ( i use the compile as c
code option) + windows xp.
did some googling and searches but most of the code samples are for unix
and/or for C++/C# etc.

for example from the MSDN:
http://msdn2.microsoft.com/en-us/li...37889.aspx

keep up the good work,
Nebbie With Passion
email Follow the discussionReplies 3 repliesReplies Make a reply

Similar topics

Replies

#1 Arkady Frenkel
September 17th, 2007 - 04:01 am ET | Report spam
Look at the examples from
http://www.tangentsoft.net/wskfaq/e...index.html
( even with cpp extention that really C programs )
Arkady

"Nebbie With Passion" <Nebbie With wrote
in message news:

Hello,

I'm looking for some client server examples using sockets that were
written
in c language and can be run with Visual Studio 2005 ( i use the compile
as c
code option) + windows xp.
did some googling and searches but most of the code samples are for unix
and/or for C++/C# etc.

for example from the MSDN:
http://msdn2.microsoft.com/en-us/li...37889.aspx

keep up the good work,
Nebbie With Passion



Replies Reply to this message
#2 Arkady Frenkel
September 17th, 2007 - 04:10 am ET | Report spam
BTW pure c code of server and client you have in PSDK example on
Samples\NetDS\WinSock\simple project
Arkady

"Arkady Frenkel" wrote in message
news:O2QGlCQ%
Look at the examples from
http://www.tangentsoft.net/wskfaq/e...index.html
( even with cpp extention that really C programs )
Arkady

"Nebbie With Passion" <Nebbie With
wrote in message
news:

Hello,

I'm looking for some client server examples using sockets that were
written
in c language and can be run with Visual Studio 2005 ( i use the compile
as c
code option) + windows xp.
did some googling and searches but most of the code samples are for unix
and/or for C++/C# etc.

for example from the MSDN:
http://msdn2.microsoft.com/en-us/li...37889.aspx

keep up the good work,
Nebbie With Passion







Replies Reply to this message
#3 Ben Voigt [C++ MVP]
September 17th, 2007 - 04:06 pm ET | Report spam
"Nebbie With Passion" <Nebbie With wrote
in message news:

Hello,

I'm looking for some client server examples using sockets that were
written
in c language and can be run with Visual Studio 2005 ( i use the compile
as c
code option) + windows xp.
did some googling and searches but most of the code samples are for unix
and/or for C++/C# etc.



The socket API is a standard (BSD sockets) so any unix examples will work.
Just use WSAStartup before calling any other functions...


for example from the MSDN:
http://msdn2.microsoft.com/en-us/li...37889.aspx

keep up the good work,
Nebbie With Passion



email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search