Thread: General Question about networkprogramming

  1. #1
    Registered User
    Join Date
    Oct 2002

    General Question about networkprogramming


    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!


  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    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.

  3. #3
    Registered User
    Join Date
    Oct 2002
    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

  4. #4
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    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

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


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A general question aout programming?
    By bradt93 in forum A Brief History of
    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, 03:52 PM
  4. general programming compatability question
    By Metarectilinear in forum A Brief History of
    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