Path: csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(using': 0.05; 'socket': 0.05; 'happily': 0.07; 'python': 0.08; 'struct': 0.09; 'ideally': 0.15; 'subject:python': 0.15; 'c/c++.': 0.16; 'received:157': 0.16; 'socket.': 0.16; 'subject:Socket': 0.16; 'subject:between': 0.16; 'cheers,': 0.17; 'written': 0.20; 'trying': 0.22; "i'm": 0.28; 'implement': 0.29; 'received:gov': 0.30; 'all,': 0.30; 'server': 0.30; 'to:addr:python-list': 0.31; 'there': 0.34; 'where': 0.35; 'using': 0.35; 'data': 0.38; 'to:addr:python.org': 0.40; 'simple': 0.63; 'dear': 0.63; 'client?': 0.84 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: Socket connection between python and C Date: Wed, 9 Feb 2011 13:54:25 +1300 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Socket connection between python and C Thread-Index: AcvH8+Wlf4GVfsBGTLWTijZGX/AjtQ== From: "Williamson, Ross X. (Guest)" To: X-OriginalArrivalTime: 09 Feb 2011 00:58:44.0307 (UTC) FILETIME=[7FF79230:01CBC7F4] X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1297213437 news.xs4all.nl 81479 [::ffff:82.94.164.166]:34806 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:55833 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