Socket

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2004
Posts: 1
Reputation: mpkhadloya is an unknown quantity at this point 
Solved Threads: 0
mpkhadloya mpkhadloya is offline Offline
Newbie Poster

Socket

 
0
  #1
Jun 21st, 2004
hi,
How socket programming is done in c++ for window?
how to use port in c++?
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,461
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 254
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: Socket

 
0
  #2
Jun 21st, 2004
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 3
Reputation: Alex Vinokur is an unknown quantity at this point 
Solved Threads: 0
Alex Vinokur Alex Vinokur is offline Offline
Newbie Poster

Re: Socket

 
0
  #3
Aug 30th, 2004
Originally Posted by mpkhadloya
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/
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 2
Reputation: nallahp is an unknown quantity at this point 
Solved Threads: 0
nallahp nallahp is offline Offline
Newbie Poster

Re: Socket

 
0
  #4
Sep 2nd, 2004
Originally Posted by mpkhadloya
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 <winsock2.h>
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....
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum


Views: 5791 | Replies: 3
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC