Socket connection between python and C

Williamson, Ross X. (Guest) Ross.X.Williamson.Guest at usap.gov
Tue Feb 8 19:54:25 EST 2011


Dear All,

I'm trying to implement a server/client system where the server is written in python and the client has to be written in c/c++.  I can happily send simple text through the socket. Ideally I would like make say a struct (using python struct library) - and then read that in using C. Is there a better way to package data on the server in python to send down a socket to a C client? XML? Pickle?

Cheers,

Ross



More information about the Python-list mailing list