1828581 Members
2203 Online
109982 Solutions
New Discussion

Re: C++ program

 
Ronit_1
Occasional Advisor

C++ program

I want to write one program stickly in C++ server/client and STL.


If client connect to server, server will inform the client which versions it supports, for example server will inform with a min version="9.2.1.1000" and max version "9.6.100.9999" . The client need to compare these version with its buid version. Let say client build version is 9.3.1.9999 , it will say its will connect or otherwise it will not connect or its not compatible.

7 REPLIES 7
Torsten.
Acclaimed Contributor

Re: C++ program

Where exactly is the problem?

What architecture do you want to use?
(there are many different frameworks available)

There are so many examples on the net, just try to search for example:

"c++ socket programing"

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Ronit_1
Occasional Advisor

Re: C++ program

It should be in C++/Linux. Program i have already posted

" If client connect to server, server will inform the client which versions it supports, for example server will inform with a min version="9.2.1.1000" and max version "9.6.100.9999" . The client need to compare these version with its buid version. Let say client build version is 9.3.1.9999 , it will say its will connect or otherwise it will not connect or its not compatible."
Torsten.
Acclaimed Contributor

Re: C++ program

Do you expect to get the complete source here?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
James R. Ferguson
Acclaimed Contributor

Re: C++ program

Hi:

This sure sounds like a homework assignment. I agree with Torsten, a Google search will yield lots of examples. In a search I performed, here are just two:

http://www.rites.uic.edu/~solworth/sockets.pdf

http://tldp.org/LDP/LG/issue74/tougher.html

Since you specifically mention Linux platforms, you will undoubtedly be using the GNU compiler instead of an HP-UX one. You might be better advised, therefore, to direct your questions to that forum, too.

Regards!

...JRF...
Torsten.
Acclaimed Contributor

Re: C++ program

Some other links for you:

http://en.wikipedia.org/wiki/Berkeley_sockets

http://en.wikipedia.org/wiki/Unix_domain_socket

http://en.wikipedia.org/wiki/Internet_socket

http://en.wikipedia.org/wiki/Remote_Procedure_Call

http://en.wikipedia.org/wiki/Common_Object_Request_Broker_Architecture

Come back if you need more ...

Have fun!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Ronit_1
Occasional Advisor

Re: C++ program

It would be great if someone provide with code,

I know am asking too much

Thanks.
James R. Ferguson
Acclaimed Contributor

Re: C++ program

Hi (again):

> It would be great if someone provide with code, I know am asking too much

Well, now, I suggest that you begin with some of the links provided already. There is code too, therein.

Regards!

...JRF...