473,722 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SimpleXMLServer meets inetd


I was thinking about connecting SimpleXMLRPCSer ver with inetd.. but I
haven't been able to replace the socket by sys.stdin and sys.stdout. Maybe
socket.fromfd(s ys.stdin.fileno ()) could help me, but I can't get it to
work, I always get connection refused. Any ideas?


Jul 18 '05 #1
0 1017

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Disco Plumber | last post by:
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...
by: Jan | last post by:
Hi all! I looked around a lot, but I didn't find a solution. I have to write an simple server application to do some jobs and return a result to a client. I tried SocketServer and this works really fine. But I didn't manage to get a script working that is started by inetd. So far I read about that I could use stdin and stdout for communication since inetd handles the socket. And I read that I could use socket.fromfd to get a socket...
by: Frank Wagner | last post by:
Hello NG! Though I´m not new to programming at all, i´m new to C++. got the following question/problem with it´s behaviour: - read number with *arbitrary number of digits* from keyboard (done) - then calculate average value and variety of digits the second sould be no problem, too, i think.
by: JT | last post by:
Hi, I'm sure this isn't a hard one, can someone help? I'm adding a new record to a MySQL database every x seconds. I need to be able to inspect the content of a certain field in this incoming record and, when a condition is met, send an email. I suppose I could have some script inspect the latest record every x seconds and use sendmail, but I'm unfamiliar with scripting daemons on
by: Scot Balfour | last post by:
I have an MS Access form that uses a tab control with multiple tabs. On each tab, there are various fields. How can I color-- or if easier add some simple icon--to a particular tab (say tab 2 of 5 in the tab control) if a field on tab 2 meets some generic criteria like salary field is > 50000. I'm trying to give the operator a visual cue that tab 2 contains important data that should be reviewed--so the operator does not have to visit...
by: Obi-Wan | last post by:
I'm trying to write a daemon in C that runs under (x)inetd that communicates over UDP. I'm trying to write a simple DNS server that returns the same IP for every query it receives. Things work just fine reading the request, but when I try to write(2) the response, it returns -1 with errno 89: "Destination address required". This seems to indicate the wrong setting on a socket. Here's my xinetd config paragraph: ...
by: Magnus | last post by:
I have a datatable (I will call it 'main' datatable) with records that have child rows. I need to select all the records from the main datatable where the record/row has a childrow that meets a search criteria. word to match="correctvalue" row___ |---- childrow1(wrongvalue1) |---- childrow2(wrongvalue2) |---- childrow3(correctvalue) MATCH
by: jm.suresh | last post by:
Hi, I have a list and I want to find the first element that meets a condition. I do not want to use 'filter', because I want to come out of the iteration as soon as the first element is found. I have implemented it this way, may be, there should be a built in hiding somewhere in the standard libraries? def exists(iterable, condition): ''' Return the first element in iterble that meets the condition.
by: Banfa | last post by:
Looking at man swat It has the line swat is run from inetd What is inetd?
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.