473,498 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

An app without GUI

Hello to all,

I have to build a server app without GUI. This app must be an xml-rpc
server, so it has to be up all the time. I would control it through the
xml-rpc port from a web interface using php, sending parameters to
defined xml-rpc functions for running certain processes, like viewing
current connections, restart it or shutting it down, for example.

Actually, I have it implemented with wxPython. The GUI controls when
the xml-rpc server is running, so when I close the GUI, so does the
server and all the dependent threads.

I want to do something like the MainLoop(), but without GUI. I can sit
down and build all this stuff, but I would like to know if someone had
passed through this. Any tips?

Thanks

Daniel

Jan 10 '06 #1
1 1141

Daniel Crespo wrote:
Hello to all,

I have to build a server app without GUI. This app must be an xml-rpc
server, so it has to be up all the time. I would control it through the
xml-rpc port from a web interface using php, sending parameters to
defined xml-rpc functions for running certain processes, like viewing
current connections, restart it or shutting it down, for example.

Actually, I have it implemented with wxPython. The GUI controls when
the xml-rpc server is running, so when I close the GUI, so does the
server and all the dependent threads.

I want to do something like the MainLoop(), but without GUI. I can sit
down and build all this stuff, but I would like to know if someone had
passed through this. Any tips?

Thanks

Daniel

here is complete example - some words in french
note: this will open a dos box for std IO
#************************************************* ********************************
# -*- encoding: iso-8859-1 -*-
import os
import SimpleXMLRPCServer
import xmlrpclib

class mainServeur(object):
""" going to be the servicing object"""
def __init__(self):
pass

def testServeur(self):
return "i am a server"

monPort = 4089 # whatever
server = SimpleXMLRPCServer.SimpleXMLRPCServer(("127.0.0.1" , monPort))

def kill():
global quit
quit = 1
return "i am a dying server"

# Globales
quit = 0
activeController= mainServeur()

server.register_instance(activeController)
server.register_function(kill)

#Go into the main listener loop
print "llistening on port ",monPort
while not quit :
server.handle_request()
#************************************************* *********************************

Jan 10 '06 #2

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

Similar topics

19
2963
by: Pete | last post by:
I have form/select which executes a function using onchange. No problem. However, when I validate the page with a strict HTML 4.01 doctype at http://validator.w3.org, it demands either an action or...
14
11016
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
9
3153
by: WalterR | last post by:
This is my first time here, so there may be earlier relevant threads of which I am unaware. Though my experience with DB2 is not extensive, such as it is was under OS/390 or equ. My main...
33
5526
by: ankursinha | last post by:
Hi, Is it possible to write a C program that prints "Hello World" on screen without having a single semi-colon in the entire program? The extra constraint here is that u r not allowed to use...
4
36151
by: Dawn Minnis | last post by:
Hi When I compile my files I get the following: driver.c: In function `main': driver.c:49: warning: assignment makes integer from pointer without a cast driver.c:50: warning: assignment...
4
2005
by: Wal Turner | last post by:
Consider the following simple class: public class ClassA { public static string VAR = "hello"; } public void MethodA() { while(true)
5
2126
by: Pascal Cloup | last post by:
Hello, I just want to send an e-mail from my windows form application without specifying SmtpServer. On my computer, when i specify my smtpserver, SmtpMail.Send( aMail ) works fine, but...
7
6655
by: Ralf Gedrat | last post by:
Hello! I have some Vb.Net applications, which are terminated at indefinite times without message. If I call in the program regulated system.GC.Collect, then the program is terminated here...
5
7807
by: mmcd79 | last post by:
I built a VB.net application that makes use of a machine level DB connection string setting, and a user level starting location setting. The machine level setting and the default user based...
5
2912
by: Jonathan Kay | last post by:
Hi, I'd like to my WCF webservice to work both on SSL and without. Unfortunately searching has led to dead ends, references to changes that only work on the old previous beta versions and I...
0
7125
marktang
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,...
0
7165
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7205
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6887
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4910
isladogs
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...
0
4590
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...
0
3093
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...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1419
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 ...

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.