Modular programming

This is a discussion on Modular programming within the Linux Programming forums, part of the Platform Specific Boards category; I nkow aI haven't been online for a while, but I'm back now, if anyone cares, heh. I was just ...

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    52

    Modular programming

    I nkow aI haven't been online for a while, but I'm back now, if anyone cares, heh.

    I was just wondering about something, I haven't been able to find this on the internet anywhere.

    I have been writing some IRC Services, as I was last time, and I have heard about people laoding them into memory after laoding each one as a module. Finally I decided to try it, and I think yuo have to use dlopen(). I've read manual pages and everything I can find, but I'm not sure exactly how to go about it.

    To explain a bit more of what I am talking about, say i have main.c and I compiled that, it connects to the IRC Daemon and does all the socket stuff, but each service, ChanServ, NickServ, etc, is a different module, a '.so' file. And instead of recompiling the entire program, I want to recompile the '.so' file, and then have a thing in the main.c or whatever to reload the module.

    If that makes sense. Please, if anyone can give me any sites at all, I would be VERY appreciative. Perhaps I am looking up the wrong things, I don't know.

    Thanks again,

    Daniel Wallace
    - Daniel Wallace

  2. #2
    Registered User
    Join Date
    Sep 2002
    Posts
    52

    Re: dlopen()

    Thank you very much for that FAQ you wrote, it helped perfectly, exactly what I was after
    - Daniel Wallace

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Modular Programming
    By St0rM-MaN in forum C Programming
    Replies: 7
    Last Post: 05-10-2007, 03:56 AM
  2. Modular
    By loopshot in forum Game Programming
    Replies: 7
    Last Post: 01-20-2006, 07:24 PM
  3. Modular math
    By PJYelton in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 10-01-2003, 09:35 AM
  4. Modular Division problem
    By Malek in forum C++ Programming
    Replies: 7
    Last Post: 05-24-2003, 07:08 PM
  5. Completely modular motherboards?
    By SMurf in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 02-23-2003, 12:56 PM

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