943,544 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 6682
  • C++ RSS
Jun 21st, 2004
0

Socket

Expand Post »
hi,
How socket programming is done in c++ for window?
how to use port in c++?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mpkhadloya is offline Offline
1 posts
since Jun 2004
Jun 21st, 2004
0

Re: Socket

Team Colleague
Reputation Points: 2780
Solved Threads: 312
long time no c
Dave Sinkula is offline Offline
4,790 posts
since Apr 2004
Aug 30th, 2004
0

Re: Socket

Quote 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/
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Alex Vinokur is offline Offline
3 posts
since Aug 2004
Sep 2nd, 2004
0

Re: Socket

Quote 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....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nallahp is offline Offline
2 posts
since Sep 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: compare
Next Thread in C++ Forum Timeline: problem reading text file to struct





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC