Re: Send Msg To Specific Tcp Client from Tcp Server Python

2016-08-10 Thread Anil reddy reddy M
On Thursday, August 11, 2016 at 11:36:47 AM UTC+5:30, dieter wrote: > Anil reddy reddy M writes: > > > I was written a simple tcp server in python, which is nicely communicating > > with multiple tcp clients. My Tcp Server can accept multiple clients at > > time, each c

Re: Send Msg To Specific Tcp Client from Tcp Server Python

2016-08-10 Thread dieter
Anil reddy reddy M writes: > I was written a simple tcp server in python, which is nicely communicating > with multiple tcp clients. My Tcp Server can accept multiple clients at time, > each client as a new thread. I want send message to specific tcp client after > some time. &g

Send Msg To Specific Tcp Client from Tcp Server Python

2016-08-10 Thread Anil reddy reddy M
I was written a simple tcp server in python, which is nicely communicating with multiple tcp clients. My Tcp Server can accept multiple clients at time, each client as a new thread. I want send message to specific tcp client after some time. I can client Address from connction, addr

How to use Tornado.gen.coroutine in TCP Server?

2015-07-11 Thread Zely Zon
hi ,evreyone! i want to know how to user tornado.gen.coroutine in Tcp server? here is my question link in stackoverflow. http://stackoverflow.com/questions/31353861/how-to-use-tornado-gen-coroutine-in-tcp-server thank you ! -- https://mail.python.org/mailman/listinfo/python-list

Re: Multi-threaded TCP server class for general use

2015-05-07 Thread Chris Angelico
On Fri, May 8, 2015 at 8:20 AM, wrote: > I needed to develop a highly scalable multi-threaded TCP server in Python and > when I started writing it in 2013 I could not find a suitable library that > would scale the way I needed but also easy to use. > > So I invented one - it&

Multi-threaded TCP server class for general use

2015-05-07 Thread mark . r . bannister
Hi, I needed to develop a highly scalable multi-threaded TCP server in Python and when I started writing it in 2013 I could not find a suitable library that would scale the way I needed but also easy to use. So I invented one - it's called Pyloom. If you want to take a look, it's p

Re: tcp server as windows service

2014-09-23 Thread Johannes Findeisen
Hi, On Tue, 23 Sep 2014 15:56:41 +0200 Arulnambi Nandagoban wrote: > Hello all, > > > > I developed a multithreaded tcp server with python and I converted into a > windows executable using pyinstaller. > > I would like to run the server as a windows service

tcp server as windows service

2014-09-23 Thread Arulnambi Nandagoban
Hello all, I developed a multithreaded tcp server with python and I converted into a windows executable using pyinstaller. I would like to run the server as a windows service so that server restarts whenever pc restarts without doing it manually . Help me out with some sample code

Re: Entreprise level python tcp server

2014-07-09 Thread Terry Reedy
> On 7/9/2014 3:36 AM, Arulnambi Nandagoban wrote: >> I like to convert the python script to windows application. The proper way to do asynchronous io on Windows is quite different from the proper way to do it on posix systems (more or less everything other than Windows). If you plan on using

Re: Entreprise level python tcp server

2014-07-09 Thread Emile van Sebille
of python server in enterprise application ? I already developed a tcp server in python as a prototype. Our requirement for tcp server to handle more than 1 connection simultaneously . Since, I am the only python fanatic in my company, it is difficult to make them convince. If you could provide

Re: Entreprise level python tcp server

2014-07-09 Thread INADA Naoki
the reliability level of python server in enterprise > application ? I already developed a tcp server in python as a prototype. > > Our requirement for tcp server to handle more than 1 connection > simultaneously . Since, I am the only python fanatic in my company, it is > difficult

Entreprise level python tcp server

2014-07-09 Thread Arulnambi Nandagoban
Hello all, Can anyone tell me the reliability level of python server in enterprise application ? I already developed a tcp server in python as a prototype. Our requirement for tcp server to handle more than 1 connection simultaneously . Since, I am the only python fanatic in my company

Re: Python Scalability TCP Server + Background Game

2014-01-21 Thread Philip Werner
> Looking a lot more normal and readable now. Thanks! > > Note that some people have experienced odd issues with Pan, possibly > relating to having multiple instances running simultaneously. You may > want to take care not to let it open up a duplicate copy of itself. > > ChrisA Thanks for the h

Re: Python Scalability TCP Server + Background Game

2014-01-19 Thread Chris Angelico
On Mon, Jan 20, 2014 at 5:53 AM, Philip Werner wrote: > On Sat, 18 Jan 2014 13:19:24 +, Mark Lawrence wrote: > >> On 18/01/2014 12:40, phi...@gmail.com wrote: >> >> [snip the stuff I can't help with] >> >> Here's the link you need to sort the problem with double spacing from >> google groups h

Re: Python Scalability TCP Server + Background Game

2014-01-19 Thread Philip Werner
On Sat, 18 Jan 2014 13:19:24 +, Mark Lawrence wrote: > On 18/01/2014 12:40, phi...@gmail.com wrote: > > [snip the stuff I can't help with] > > Here's the link you need to sort the problem with double spacing from > google groups https://wiki.python.org/moin/GoogleGroupsPython Thanks for the

Re: Python Scalability TCP Server + Background Game

2014-01-18 Thread Mark Lawrence
On 18/01/2014 12:40, phi...@gmail.com wrote: [snip the stuff I can't help with] Here's the link you need to sort the problem with double spacing from google groups https://wiki.python.org/moin/GoogleGroupsPython -- My fellow Pythonistas, ask not what our language can do for you, ask what you

Re: Python Scalability TCP Server + Background Game

2014-01-18 Thread phiwer
Den lördagen den 18:e januari 2014 kl. 13:13:47 UTC+1 skrev Asaf Las: > On Wednesday, January 15, 2014 8:37:25 PM UTC+2, phi...@gmail.com wrote: > > > My problem is as follows: > > > > > > 2) The network layer of the game server runs a separate process as well, > > > and my intention was

Re: Python Scalability TCP Server + Background Game

2014-01-18 Thread Asaf Las
On Wednesday, January 15, 2014 8:37:25 PM UTC+2, phi...@gmail.com wrote: > My problem is as follows: > > 2) The network layer of the game server runs a separate process as well, > and my intention was to use gevent or tornado (http://nichol.as/asynchronous- >servers-in-python). > 3) The game

Re: Python Scalability TCP Server + Background Game

2014-01-18 Thread phiwer
> (You're using Google Groups, which means your replies are > > double-spaced and your new text is extremely long lines. Please fix > > this, either by the fairly manual job of fixing every post you make, > > or the simple method of switching to a better client. Thanks.) > > > > My point was

Re: Python Scalability TCP Server + Background Game

2014-01-18 Thread Chris Angelico
On Sat, Jan 18, 2014 at 6:44 PM, wrote: >> Quick smoke test. How big are your requests/responses? You mention >> >> REST, which implies they're going to be based on HTTP. I would expect >> >> you would have some idea of the rough size. Multiply that by 50,000, >> >> and see whether your connectio

Re: Python Scalability TCP Server + Background Game

2014-01-17 Thread phiwer
> Quick smoke test. How big are your requests/responses? You mention > > REST, which implies they're going to be based on HTTP. I would expect > > you would have some idea of the rough size. Multiply that by 50,000, > > and see whether your connection can handle it. For instance, if you > > hav

Re: Python Scalability TCP Server + Background Game

2014-01-15 Thread Chris Angelico
On Thu, Jan 16, 2014 at 5:37 AM, wrote: > 3) The game server has a player limit of 5. My requirement/desire is to > be able to serve 50k requests per second (without any caching layer, although > the game server will cache data), so people don't get a poor user experience > during high pea

Python Scalability TCP Server + Background Game

2014-01-15 Thread phiwer
My problem is as follows: I'm developing an online game with the requirement of being able to handle thousands of requests every second. The frontend consists of web server(s) exposing a rest api. These web servers in turn communicate with a game server over TCP. When a message arrives at the

Re: Hosting a Python based TCP server

2010-12-23 Thread Jon Clements
On Dec 23, 12:01 pm, Oltmans wrote: > Hi all, > > I'm writing a very small TCP server(written in Python) and now I want > to host it on some ISP so that it can be accessed anywhere from the > Internet. I've never done that before so I thought I should ask for > some

Re: Hosting a Python based TCP server

2010-12-23 Thread Dan M
On Thu, 23 Dec 2010 04:01:03 -0800, Oltmans wrote: > Hi all, > > I'm writing a very small TCP server(written in Python) and now I want to > host it on some ISP so that it can be accessed anywhere from the > Internet. I've never done that before so I thought I should ask

Re: Hosting a Python based TCP server

2010-12-23 Thread Adam Tauno Williams
On Thu, 2010-12-23 at 04:40 -0800, bobicanprogram wrote: > On Dec 23, 7:01 am, Oltmans wrote: > > Hi all, > > I'm writing a very small TCP server(written in Python) and now I want > > to host it on some ISP so that it can be accessed anywhere from the > > Internet

Re: Hosting a Python based TCP server

2010-12-23 Thread python
Rolf, > I'm writing a very small TCP server (written in Python) and now I want to > host it on some ISP so that it can be accessed anywhere from the Internet. > I've never done that before so I thought I should ask for some advice. Do you > guys know any good ISP that ca

Re: Hosting a Python based TCP server

2010-12-23 Thread bobicanprogram
On Dec 23, 7:01 am, Oltmans wrote: > Hi all, > > I'm writing a very small TCP server(written in Python) and now I want > to host it on some ISP so that it can be accessed anywhere from the > Internet. I've never done that before so I thought I should ask for > some

Hosting a Python based TCP server

2010-12-23 Thread Oltmans
Hi all, I'm writing a very small TCP server(written in Python) and now I want to host it on some ISP so that it can be accessed anywhere from the Internet. I've never done that before so I thought I should ask for some advice. Do you guys know any good ISP that can let me do t

Re: simple turn-based multiplayer game via TCP server/client

2009-01-03 Thread alex goretoy
st OUTCOME > dict; >reports result >returns player dict with updated values """ >print(opponent['name'], 'chose %s.' % (MOVES[opponent['move']])) ># check lookout dict (OUTCOME dictionary) >result = OUTCOME[(pl

simple turn-based multiplayer game via TCP server/client

2009-01-03 Thread greyw...@gmail.com
elif result=='draw': print('%s - %s: no one wins. You draw.' % (MOVES[player ['move']], MOVES[opponent['move']])) player['drew'] += 1 else: print('%s loses to %s. You lose.' % (MOVES[player['move&

TCP Server

2008-09-18 Thread James Matthews
Dear List, I am looking to write a TCP socket server and was wondering what are the pros and cons of using twisted over the sockets modules bundled in python? Thanks James -- http://www.goldwatches.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: a simple tcp server sample

2007-11-07 Thread Tzury Bar Yochay
here is its: # a simple tcp server import SocketServer class EchoRequestHandler(SocketServer.BaseRequestHandler ): def setup(self): print self.client_address, 'connected!' self.request.send('hi ' + str(self.client_address) + '\n') def

Re: a simple tcp server sample

2007-11-07 Thread Tzury Bar Yochay
> See the SocketServer module, both the documentation and the source code. I firstly looked at this module and its __doc__, yet I still need an 'hello world' sample. and couldn't get it straight how can I write my own hello world sample with SocketServer objects. -- http://mail.python.org/mailm

Re: a simple tcp server sample

2007-11-07 Thread Tzury Bar Yochay
> Even simpler, use Twisted: I am afraid Twisted is not the right choice in my case. I am looking for smaller, simpler and minimal server sample. -- http://mail.python.org/mailman/listinfo/python-list

Re: a simple tcp server sample

2007-11-07 Thread Paul Rubin
Tzury Bar Yochay <[EMAIL PROTECTED]> writes: > In my case I need a simple server that can serve more than one client. > I couldn't find an example on how to do that and be glad to get a hint. See the SocketServer module, both the documentation and the source code. -- http://mail.python.org/mailma

Re: a simple tcp server sample

2007-11-07 Thread Jean-Paul Calderone
On Wed, 07 Nov 2007 18:54:39 -, Tzury Bar Yochay <[EMAIL PROTECTED]> wrote: >hi, the following sample (from docs.python.org) is a server that can >actually serve only single client at a time. > >In my case I need a simple server that can serve more than one client. >I couldn't find an example o

Re: a simple tcp server sample

2007-11-07 Thread Erik Jones
On Nov 7, 2007, at 12:54 PM, Tzury Bar Yochay wrote: > hi, the following sample (from docs.python.org) is a server that can > actually serve only single client at a time. > > In my case I need a simple server that can serve more than one client. > I couldn't find an example on how to do that and b

Re: a simple tcp server sample

2007-11-07 Thread Robert Hicks
On Nov 7, 1:54 pm, Tzury Bar Yochay <[EMAIL PROTECTED]> wrote: > hi, the following sample (from docs.python.org) is a server that can > actually serve only single client at a time. > > In my case I need a simple server that can serve more than one client. > I couldn't find an example on how to do t

a simple tcp server sample

2007-11-07 Thread Tzury Bar Yochay
hi, the following sample (from docs.python.org) is a server that can actually serve only single client at a time. In my case I need a simple server that can serve more than one client. I couldn't find an example on how to do that and be glad to get a hint. Thanks in advance import socket HOST =

Re: Maximum TCP Server Connections

2007-02-10 Thread fumanchu
On Feb 10, 4:52 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Sorry this question isn't strictly Python-related. Does any one know how > many simultaneous TCP connections it's practical to expect a TCP-based > server application to support (on the OS of your choice)? I'm looking > for the restricti

Re: [off-topic] Maximum TCP Server Connections

2007-02-10 Thread Grant Edwards
On 2007-02-10, Steve Holden <[EMAIL PROTECTED]> wrote: > Sorry this question isn't strictly Python-related. Does any one know how > many simultaneous TCP connections it's practical to expect a TCP-based > server application to support (on the OS of your choice)? I'm looking > for the restrictio

Re: [off-topic] Maximum TCP Server Connections

2007-02-10 Thread Paul Rubin
Steve Holden <[EMAIL PROTECTED]> writes: > Sorry this question isn't strictly Python-related. Does any one know > how many simultaneous TCP connections it's practical to expect a > TCP-based server application to support (on the OS of your choice)? > I'm looking for the restrictions imposed by the

[off-topic] Maximum TCP Server Connections

2007-02-10 Thread Steve Holden
Sorry this question isn't strictly Python-related. Does any one know how many simultaneous TCP connections it's practical to expect a TCP-based server application to support (on the OS of your choice)? I'm looking for the restrictions imposed by the operating environment rather than the applica

Re: TCP server

2005-01-24 Thread Pedro Werneck
A quick example for you: ### import SocketServer class EchoRequestHandler(SocketServer.BaseRequestHandler): def setup(self): print self.client_address, 'connected!' self.request.send('hi ' + str(self.client_address) + '\n') def handle(self): while 1:

TCP server

2005-01-24 Thread assaf
i am try to create a server what am i suppose to send to SocketServer.TCPServer what is the client_address ("127.0.0.1:80" ?) and BaseRequestHandler = ? thanks -- http://mail.python.org/mailman/listinfo/python-list