954,198 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Socket

hi,
How socket programming is done in c++ for window?
how to use port in c++?

mpkhadloya
Newbie Poster
1 post since Jun 2004
Reputation Points: 10
Solved Threads: 0
 
Dave Sinkula
long time no c
Team Colleague
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
 
hi, How socket programming is done in c++ for window? how to use port in c++?

Look at C++ stream-compatible TCP/IP sockets
* http://alexvn.freeservers.com/s1/sock.html
* http://sourceforge.net/projects/cpp-sockets/

Alex Vinokur
Newbie Poster
3 posts since Aug 2004
Reputation Points: 10
Solved Threads: 0
 
hi, How socket programming is done in c++ for window? how to use port in c++?


It depends on which platform u r going to do..if it is in windows, use winsock2
u have to include ws2_32.lib and
or in linux, bsd sockets...
if u want it in c++, write a generic class and in the methods, u wrap all winsoc apis like socket()-> use as a constructor and all others as member functions..thatzall dude.... :)

nallahp
Newbie Poster
2 posts since Sep 2004
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You