By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,902 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

php and inetd

P: n/a
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_getpeername 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.
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.