Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!feeder2.cambriumusenet.nl!feed.tweaknews.nl!62.179.104.142.MISMATCH!amsnews11.chello.com!newsfeed.xs4all.nl!newsfeed5.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.027 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'socket': 0.04; 'function:': 0.09; 'server,': 0.12; 'def': 0.13; 'code?': 0.16; 'server?': 0.16; 'side.': 0.16; '\xa0what': 0.16; 'subject:Questions': 0.18; 'header:In-Reply-To:1': 0.22; 'code.': 0.26; 'received:209.85.220': 0.27; 'url:mailman': 0.28; 'message- id:@mail.gmail.com': 0.28; 'pass': 0.29; 'server': 0.30; 'objects.': 0.30; 'user.': 0.31; 'andrew': 0.32; 'objects': 0.32; 'url:listinfo': 0.32; 'to:addr:python-list': 0.34; 'thank': 0.35; 'running': 0.35; 'suggestions': 0.35; 'url:python': 0.36; 'file': 0.36; 'question': 0.36; 'example,': 0.37; 'provide.': 0.37; 'to:name:python-list': 0.37; 'list,': 0.37; 'received:google.com': 0.37; 'using': 0.38; 'allows': 0.38; 'received:209.85': 0.38; 'client': 0.39; 'url:org': 0.39; 'subject: (': 0.40; 'received:209': 0.40; 'to:addr:python.org': 0.40; 'hope': 0.61; 'back': 0.62; 'accepts': 0.64 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=ChqMD5PUS/ipyQSj6lKRvWeRJpvhl/azm/gjCt0diic=; b=OV+9x5+Oux62hTzMsuj4mLnK+gayEDEN4BuyZmN7r5mAx5RmMqIy6D5wQnTRnPr/JE ifhUZTdxLQYyVVxtI/Io5Mqq2VZrqgij+RldaSGxlMHWdIb+GEbpGId/OSubprMOTR+O veHPXJP164MSosyXsLcUPBvf7OorylP+UnFBM= MIME-Version: 1.0 In-Reply-To: <4c5cedc5-65e4-4bca-a7fe-7afffde79c88@s6g2000vbc.googlegroups.com> References: <4c5cedc5-65e4-4bca-a7fe-7afffde79c88@s6g2000vbc.googlegroups.com> Date: Mon, 21 Nov 2011 07:28:03 +0100 Subject: Re: Server Questions (2 of them) From: Nizamov Shawkat To: python-list Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1321856887 news.xs4all.nl 6915 [2001:888:2000:d::a6]:34815 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15984 2011/11/20 Andrew : > Hello List, > > How to do you create a server that accepts a set of user code? > > For example, > > I would like to send this function: > def addition(x,y): > =A0 return x+y > and have the socket server perform the operation and send is back to > the end user. > > Question 2: > On that same server, I want a user to be able to pass a file to the > server along with code. =A0What is the best way to pass file to the > server? > > > Thank you for any suggestions or resources you can provide. > > Andrew > -- > http://mail.python.org/mailman/listinfo/python-list > Check for Pyro - it allows creation of objects on client side while running them on server side. Pyro makes this process almost transparent using proxy objects. Hope it helps, S.Nizamov