Publicaciones sobre rater

2007-11-23 17:32

Se busca: programador C

Revisando mis proyectos semi-abandonados, encontré uno que está practicamente terminado, pero del que me había olvidado: rater

Para hacer que sea realmente útil, sin embargo, necesito un programador C que convierta este programa 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.exit(int(data.split(' ')[0]))

En una linda función que nunca falle y nunca pierda memoria (por supuesto debe retornar en vez de salir del programa, esto es un ejemplo ;-)

Si tengo eso, puedo liberar rater como una herramienta útil, que debería encontrar un hogar en muchas instalaciones de qmail (y tal vez también tenga otros usos)

2007-07-23 15:59

Rater progresses (slowly)

I am hacking a bit on rater my daemon/client to see if things are happening more often than they should (in other words, generic rate limiting).

I had to take a few days off, since my brother got married and we all went back to Santa Fe for that and a weekend, and then everyone else has sore throats and I am the only one healthy.

But hey, it works well enough already:

  • The simplistic protocol is done
  • The server works
    • It can take hours of gibberish without problems.
    • It can take hours of valid input without problems.
    • It does what it's supposed to do.
  • It's staying below 300SLOC, which was my goal.

Missing stuff:

  • Valgrind it.
  • Client library.
  • Generic CLI client.
  • A qmail-spp plugin that uses it.

And then, I can forget all about it.

Contents © 2000-2019 Roberto Alsina