accesing socket at a lower level?

Cedric Adjih adjih at
Thu May 18 14:47:17 CEST 2000

Z 3 Penguin <z3penguin at> wrote:
> I am working on writing python code to access the AIM servers.  i have been
> looking at what my code sends out, and using something like

> from socket import +ACo-
> s.send(whateverstring)

  Assuming the missing "s.connect(hostname, port)"
(or "s.connect((hostname, port))"), your code looks correct.

> tacks on some extra bytes at the beggining.  this confuses the AIM servers.
> Any ideas? (Note: I am not good with C and am against having to write this
> in C)

Hmm... What told you there were some extra bytes at the beginning?

Are you sure:
- AIM servers use TCP?
- Python client is the problem?
- Python socket C code is properly working?
  (maybe try in somewhere in the library of Python
  -- /usr/lib/python1.5/test/ or whatever -- or try
  one of the socker examples).

-- Cedric

More information about the Python-list mailing list