php and inetd

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Disco Plumber

    php and inetd

    I know this will probably sound weird to many of you, but I'm currently
    writing an NNTP server in PHP (using MySQL as the article storage). At
    the moment, the server is a single client handling script which is
    called by inetd/tcpd and uses stdin/stdout. I have read that in C, the
    usual function calls to get peer name et cetera will work on stdin in
    such a situation, as the client socket has been dup'd there, and file
    descriptors and sockets are treated the same in C. However, PHP won't
    let me do a socket_getpeern ame since the descriptor for stdin is not a
    "socket resource". Does anyone know of a way to get this information?

    /joe
    --
    /home/pr0n is ghetto. A muff is swift. Uni destroys the monochrome emo kid
    from IHOP.
Working...