--- author: '' category: '' date: 2007/11/23 17:32 description: '' link: '' priority: '' slug: BB659 tags: programming, qmail, rater, sysadmin title: 'Wanted: C programmer' type: text updated: 2007/11/23 17:32 url_type: '' --- Checking on my semi-dead projects, I found that one was almost finished but I had forgotten about it: rater_ In order to make it really useful, however, I need a C programmer that can turn this python program: .. code-block:: python #!/usr/bin/env python # -*- coding: utf-8 -*- import sys from socket import * serverHost = 'localhost' serverPort = 1999 s = socket(AF_INET, SOCK_STREAM) s.connect((serverHost, serverPort)) print "Sending: ",' '.join(sys.argv[1:]) s.send(' '.join(sys.argv[1:])+"\n") data = s.recv(1024) sys.stderr.write(data) sys.stderr.flush() sys.exit(int(data.split(' ')[0])) Into a nice function that never fails and never leaks memory (of course, it should return instead of exit, this is just example code ;-). If that's done, I can release rater as a useful tool, which should find a home in many qmail installations (and maybe other uses). .. _rater: http://rater.googlecode.com