General Question about networkprogramming

This is a discussion on General Question about networkprogramming within the C++ Programming forums, part of the General Programming Boards category; Hi, i searched a bit and found some terms for networkprogramming, like RPC and Socket-programming. I want to code an ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    30

    General Question about networkprogramming

    Hi,

    i searched a bit and found some terms for networkprogramming, like RPC and Socket-programming.
    I want to code an interface for Data-Exchange, where other programs (even over the network) can hook into it, and retrieve the produced data from the mainprocess, which runs on linux.
    What do you suggest or what is commonly used for this kind of use? It should be codable in C++, not C.
    I need an advice, so i don't get stuck with old or uncommon used technics.

    Thanks in advance!

    Jan

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    Use a database like MySQL ?

    Your Linux based main process writes into the database (so you don't have to worry about network data sharing).

    Local (or indeed remote) apps can connect to the database and retrieve that data. Problems such as concurrent access are hidden from you by MySQL.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    30
    Thanks for the idea,

    i haven't thought of that, but i think, it isn't what i need.
    I want to use it, to get feedback from a process, so, if feedback is there, it triggers the sending/getting. It needs to be in realtime, without possible slowdowns of Databases.
    The best description would be like IPC but over the network, and not only on the same machine.

    Thanks in advance
    Jan

  4. #4
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    If you can't use a database, but must connect to another process and communicate with it, then you have to use sockets (or some network library which ends up using sockets).

  5. #5
    Registered User
    Join Date
    Oct 2002
    Posts
    30
    Thanks!

    are there any recommended/commonly used libs for socket-programming?

    Cheers,
    Jan

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A general question aout programming?
    By bradt93 in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 03-26-2008, 11:00 AM
  2. winsock - general question
    By keira in forum Windows Programming
    Replies: 1
    Last Post: 09-28-2007, 01:56 PM
  3. another exercise question
    By luigi40 in forum C# Programming
    Replies: 3
    Last Post: 11-28-2005, 02:52 PM
  4. general programming compatability question
    By Metarectilinear in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 10-25-2002, 11:51 PM
  5. general question regarding a function parameter
    By mlupo in forum C Programming
    Replies: 7
    Last Post: 10-13-2002, 07:32 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21