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

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.... :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.