C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

C++ Network Solution -- Where should I begin?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Tom
Guest





PostPosted: Sun Jan 29, 2006 9:00 am    Post subject: C++ Network Solution -- Where should I begin? Reply with quote



My skill level is intermediate in C and beginner in C++.

I need to learn how to create a centralized program to interface with
remote programs running over a local, hardwired network.

My scenario is the following:

The centralized program is the global accountant for the remote
computers. The remote computers are running independent optimization
programs that seek permission from the global accountant to initiate a
position in a financial instrument(commodity, index future, currency,
etc.). If permission is granted ... the remote computers periodically
report to the accountant the current profit/loss status of that
particular position.

My networking skill level is total novice. I need beginner level
examples and books so basic they even teach the nomenclature.

Please advise me about how and where to begin.

Perhaps there are some canned utility programs that provide the
backbone for this task? The logging on of a remote computer while
other clients are "in session" seems a daunting task for me. Maybe
this is what the dot.net stuff is all about?

Thank you in advance for any help and even for your time to have read
the above.

-- Tom
Back to top
Luke Meyers
Guest





PostPosted: Sun Jan 29, 2006 9:00 am    Post subject: Re: C++ Network Solution -- Where should I begin? Reply with quote



Tom wrote:
Quote:
My skill level is intermediate in C and beginner in C++.

I need to learn how to create a centralized program to interface with
remote programs running over a local, hardwired network.

Client/server model; gotcha.

Quote:
The centralized program is the global accountant for the remote
computers. The remote computers are running independent optimization
programs that seek permission from the global accountant to initiate a
position in a financial instrument(commodity, index future, currency,
etc.). If permission is granted ... the remote computers periodically
report to the accountant the current profit/loss status of that
particular position.

Okay, sounds straightforward. The clients send a task description to
the server, which responds by granting or denying permission. They
send a different type of message to report status. Season to taste.
Probably easiest with an event model driven by an in- and out-queue
for each client and for the server.

Quote:
My networking skill level is total novice. I need beginner level
examples and books so basic they even teach the nomenclature.

Andrew Tanenbaum's networking book is a classic introductory survey,
and it's pretty easy to find a cheap used copy. Check on amazon.

Quote:
Perhaps there are some canned utility programs that provide the
backbone for this task?

Certainly; there is a wide variety of networking libraries available.
However, you should make some decisions about your design before
getting too deep into the details. First learn enough to make an
informed decision about what kind of networking to use, then focus
your search on libraries specific to that technology.

Quote:
The logging on of a remote computer while
other clients are "in session" seems a daunting task for me.

In what sense would the clients be "in session?" From your
description, they sound fairly autonomous. Organize it in terms of
messages and queues and you'll have no problem.

Quote:
Maybe this is what the dot.net stuff is all about?

While .NET (like many things) partly involves network technology, it
is by no means "the way to do networking." There are plenty of
resources to tell you more about it, if you want to understand what it
is.
There are also many ways to do networking that have been around
a lot longer.

Luke
Back to top
loufoque
Guest





PostPosted: Sun Jan 29, 2006 4:00 pm    Post subject: Re: C++ Network Solution -- Where should I begin? Reply with quote



Tom a écrit :

Quote:
My networking skill level is total novice. I need beginner level
examples and books so basic they even teach the nomenclature.

You will need to learn about sockets.

You can use the C posix sockets library or C++ libraries like ASIO
(http://asio.sourceforge.net/)



Quote:
Maybe
this is what the dot.net stuff is all about?

..NET is a multi-language framework designed for win32 that interacts
very badly with C++, actually creating a totally different language :
C++/CLI.
If you want to do .NET stuff you'd better use C#, which was designed to
fit with that framework.
Back to top
Victor Bazarov
Guest





PostPosted: Sun Jan 29, 2006 6:00 pm    Post subject: Re: C++ Network Solution -- Where should I begin? Reply with quote

loufoque wrote:
Quote:
[..]
.NET is a multi-language framework designed for win32 that interacts
very badly with C++, actually creating a totally different language :
C++/CLI.

I think that your "totally different" statement is uncalled for.
C++ is just as "totally different" from C then. (Hint: it's not)
Back to top
Luke Meyers
Guest





PostPosted: Sun Jan 29, 2006 8:00 pm    Post subject: Re: C++ Network Solution -- Where should I begin? Reply with quote

Victor Bazarov wrote:
Quote:
loufoque wrote:
[..]
.NET is a multi-language framework designed for win32 that interacts
very badly with C++, actually creating a totally different language :
C++/CLI.

I think that your "totally different" statement is uncalled for.
C++ is just as "totally different" from C then. (Hint: it's not)

It's not? I suppose if you define "totally different" as "completely
lacking resemblance or commonality," then yes. But if what's meant is
"distinct, and different in many important or even fundamental ways,"
then I think it's perfectly accurate. C++ is a very different animal
from C. They share plenty of syntax, but the best approaches to C++
programming are far from possible in C; that's why C++ exists. C++/CLI
introduces a bunch of new constructs which some people find helpful,
and in many cases trades those off against some of C++'s benefits. The
Java-like use of a virtual machine, and the increased emphasis on
dynamic typing, are significant departures from C++ canon.

Lastly, because the name "C++/CLI" can be misleading, it's best to err
on the side of pointing out that it's not "the new C++" or anything
like that. Microsoft's own documentation makes this mistake regularly.

Luke
Back to top
Victor Bazarov
Guest





PostPosted: Sun Jan 29, 2006 9:00 pm    Post subject: Re: C++ Network Solution -- Where should I begin? Reply with quote

Luke Meyers wrote:
Quote:
Victor Bazarov wrote:
loufoque wrote:
[..]
.NET is a multi-language framework designed for win32 that interacts
very badly with C++, actually creating a totally different language
: C++/CLI.

I think that your "totally different" statement is uncalled for.
C++ is just as "totally different" from C then. (Hint: it's not)

It's not?

Of course it's not. Just read D&E.

Quote:
I suppose if you define "totally different" as "completely
lacking resemblance or commonality," then yes. But if what's meant is
"distinct, and different in many important or even fundamental ways,"

"Many important" is definitely much less than "totally". We can continue
this discussion in 'alt.english.usage'.

Quote:
[...]

V
Back to top
Luke Meyers
Guest





PostPosted: Sun Jan 29, 2006 10:00 pm    Post subject: Re: C++ Network Solution -- Where should I begin? Reply with quote

Victor Bazarov wrote:
Quote:
Luke Meyers wrote:
Victor Bazarov wrote:
I think that your "totally different" statement is uncalled for.
C++ is just as "totally different" from C then. (Hint: it's not)

It's not?

Of course it's not. Just read D&E.

I have. I maintain that C++/CLI is a different language than C++, and
that C++ is a different language than C. In all cases, there are
overlapping subsets of compatibility where semantics are preserved.
That doesn't make them the same. More importantly, the preferred
paradigms of each language are not particularly philosophically
compatible with those of the others. C++/CLI runs in many ways
contrary to the fundamental design values of C++.

In the original context, the purpose of the statement was that the OP's
offhand question about .NET was misguided, because the binding of C++
to .NET (C++/CLI) is not C++ at all, but a distinct language which does
not conform to the C++ standard or language philosophy. Debate the
subtleties or disagree if you want, but it's a perfectly "called for"
point to make.

Luke
Back to top
Jim Langston
Guest





PostPosted: Sun Jan 29, 2006 11:00 pm    Post subject: Re: C++ Network Solution -- Where should I begin? Reply with quote

"Tom" <Thomas-911 (AT) earthlink (DOT) net> wrote in message
news:molot1d8hn4im0n8sdr6uda0hnspkkn05j (AT) 4ax (DOT) com...
Quote:
My skill level is intermediate in C and beginner in C++.

I need to learn how to create a centralized program to interface with
remote programs running over a local, hardwired network.

My scenario is the following:

The centralized program is the global accountant for the remote
computers. The remote computers are running independent optimization
programs that seek permission from the global accountant to initiate a
position in a financial instrument(commodity, index future, currency,
etc.). If permission is granted ... the remote computers periodically
report to the accountant the current profit/loss status of that
particular position.

My networking skill level is total novice. I need beginner level
examples and books so basic they even teach the nomenclature.

Please advise me about how and where to begin.

Perhaps there are some canned utility programs that provide the
backbone for this task? The logging on of a remote computer while
other clients are "in session" seems a daunting task for me. Maybe
this is what the dot.net stuff is all about?

Thank you in advance for any help and even for your time to have read
the above.

-- Tom

It sounds like you need to do a bit of research on client/server
architecture. There are a number of ways to do what you want and you need
to determine which way you want to do it/which is best for you.

A few questions you'll need to ask yourself.
Are the remote computers going to be consitantly connected to the server or
are they going to connect, get request then disconnect?
If they are constantly connected, how are you going to handle disconnects?
If they are constantly connected, how do the clients (remote computers)
react when the main server goes down?
In what method are the remote computers going to state who they are to the
server?
Plus many more. Start searching for client/server on the internet and
looking at the different types of architectures. I did a quick search and
this one gives a rough breakdown on some of them:
http://www.sei.cmu.edu/str/descriptions/clientserver_body.html

Good luck.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.