Unix API ?

This is a discussion on Unix API ? within the Linux Programming forums, part of the Platform Specific Boards category; I have no clue where to start. Im familiar w. C/C++ How would I go about this. Using C or ...

  1. #1
    Unregistered
    Guest

    Unix API ?

    I have no clue where to start.
    Im familiar w. C/C++

    How would I go about this.
    Using C or C++ to interact w. other windows/ programs.

    ie:

    If i wanted to create an irc bot.
    Have a bot sit online in a chat room running *****X or xchat or any irc client. View each line sent to chat by others, and then responded accordingly.
    How would I go about doing that?

    I believe in Windows I would use the Win32 api calls such as FindWindowEx etc etc.
    What about in Unix ?

    Thank you

  2. #2
    B26354 Deckard's Avatar
    Join Date
    Jan 2002
    Posts
    633
    If you are interested in writing an IRC bot, I suggest downloading the Eggdrop IRC bot and reviewing the source code (try searching for it at freshmeat.net).

    Cheers,
    Jason Deckard

  3. #3
    Unregistered
    Guest
    My question was in general.

    Using my program to deal w. other programs i/o.

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    202
    You're going to have to read up on fork and exec (doing a man on either one will tell you something of what you need to know), and then you'll need to study interprocess communication.

    Yes, it is do-able, but it can also be a bit tricky. Advanced Programming in the Unix Environment (Stevens) is probably one of the most detailed and in-depth guides you can find on these topics. Beginning Linux Programming (Wrox Press) also talks about it a little, if you're looking for a book. Ageneral lesson is a little too complicated to get in to here though.

    starX
    www.axisoftime.com

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,453
    This has some good stuff on unix programming
    http://www.cs.cf.ac.uk/Dave/C/CE.html

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to program in unix
    By Cpro in forum Linux Programming
    Replies: 21
    Last Post: 02-12-2008, 09:54 AM
  2. Setting up a Unix box
    By @nthony in forum Tech Board
    Replies: 6
    Last Post: 07-22-2007, 10:22 PM
  3. FILES in WinAPI
    By Garfield in forum Windows Programming
    Replies: 46
    Last Post: 10-02-2003, 06:51 PM
  4. pthread api vs win32 thread api
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 11-20-2001, 07:55 AM
  5. About Unix Programming - Making a career desision
    By null in forum C Programming
    Replies: 0
    Last Post: 10-14-2001, 07:37 AM

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