Networking with C++

Hi...my name is eugene and i am currently looking for the coodings that will help me towards establishing connection between two PC on the network using C++.

For example : Computer A and Computer B

Both of this PC are connected to the network (LAN). I have an application :

Application :

MS-ACCESS is my database, I Created My front End Application Using AppWizard.
I have recordset and recordview. ODBC is my interface. The Operating System that i am using in college is Win NT 4.0.

Question:

I need the solution because i want to access the database from another computer using the networking method.


Regards

Eugene

eugene007Asked:
Who is Participating?
 
KishoreS78Connect With a Mentor Commented:
i agree with jhance.u need a listener
in the server side that will listen to some action from the client side
 well if u have working experience in unix check out named pipes and sockets.u could get those to communicate between the two machines.
i would advise if u r qute capable in unix handle database operations in files.just make a Bulk copy of DB in to files and do the processing using C++ coding .Hope this isnt a bad suggestion
0
 
jhanceCommented:
Sounds an awful lot like a homework problem.  Why don't you do some work on your own and then ask for help?
0
 
eugene007Author Commented:
Well..actually we haven learn about it at all......so i have 0 experince in it...it was just an opinion given to me by my lecturer...:)
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
eugene007Author Commented:
It sounds very intresting and i really dont know where to start and what to do.
0
 
jhanceCommented:
It's a classic client/server problem.  You need two programs, one for each computer.  On the server computer, you need a "listener" that accepts incoming requests from the network, processes the request, and sends the appropriate reply.  The ODBC stuff you mentioned is what is used to process the request.  To write a listener, check out the WINSOCK functions bind(), listen(), accept(), receive(), and send().

On the client computer, you need to take some user input and generate a network request to the server.  Again, check out the WINSOCK functions connect(), send(), and receive().

That's a start....
0
 
jhanceCommented:
Kishore,

Do you always copy other's comments and post them as your own answers?
0
 
eugene007Author Commented:
I am a person who is still learning...to be the champion of knowledge is to share knowledge..:)
0
All Courses

From novice to tech pro — start learning today.