Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #55833

Socket connection between python and C

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 <Ross.X.Williamson.Guest@usap.gov>
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)" <Ross.X.Williamson.Guest@usap.gov>
To <python-list@python.org>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.23.1297213437.1633.python-list@python.org> (permalink)
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

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Socket connection between python and C "Williamson, Ross X. (Guest)" <Ross.X.Williamson.Guest@usap.gov> - 2011-02-09 13:54 +1300
  Re: Socket connection between python and C Dan Stromberg <drsalists@gmail.com> - 2011-02-08 18:15 -0800
  Re: Socket connection between python and C Roy Smith <roy@panix.com> - 2011-02-08 20:41 -0500

csiph-web