Re: C code to post through NNTP

From: Phil Carmody (thefatphil_demunge_at_yahoo.co.uk)
Date: 02/27/05

  • Next message: Bjorn Reese: "Re: C code to post through NNTP"
    Date: Sun, 27 Feb 2005 01:57:56 +0200
    
    

    On Sat, 26 Feb 2005 20:21:45 +0000, omni wrote:
    > On Sat, 26 Feb 2005 17:32:09 +0000 (UTC), infobahn
    > <infobahn@btinternet.com> wrote:
    >>> Can someone point me to some C code to post an article through NNTP
    >>> server? The code would connect, login to the server, authenticate if
    >>> necessary, deal with prompts to post the article, and quit.
    >>>
    >>> This is not difficult and I could write some code to do it, but it
    >>> would save time if someone else has already. Thanks.
    >>
    >>None of the newsgroups to which you posted is a "sources wanted"
    >>newsgroup. But since you asked so nicely:
    >>
    >> http://www.mozilla.org/download.html
    >
    > I was hoping not to get mired in thousands of lines of code.... I was
    > hoping there might be a library or discrete function to do it.

    C has the system function, and if running on a POSIX/etc. environment,
    the fork and exec* functions. Why write in C what has already been written
    a multitude of times if you can simply offload the work onto another
    process?

    What you want to do can almost certainly be done in a few lines of Perl,
    so have you considered using other languages instead?

    Phil


  • Next message: Bjorn Reese: "Re: C code to post through NNTP"

    Relevant Pages

    • Re: C code to post through NNTP
      ... > hoping there might be a library or discrete function to do it. ... What you want to do can almost certainly be done in a few lines of Perl, ... so have you considered using other languages instead? ... Phil ...
      (comp.programming)
    • Re: C code to post through NNTP
      ... > hoping there might be a library or discrete function to do it. ... What you want to do can almost certainly be done in a few lines of Perl, ... so have you considered using other languages instead? ... Phil ...
      (comp.lang.c)