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


Groups > comp.lang.python > #57587

Re: How to design:Use One TCPIP Client connection to Server and work concurrently

References <0626cc7c-d4fd-4d6e-ac3d-9a85a725b5fb@googlegroups.com> <3ba1ddfc-3a7a-4644-bf64-004382242627@googlegroups.com>
Date 2013-10-26 12:09 +1100
Subject Re: How to design:Use One TCPIP Client connection to Server and work concurrently
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1568.1382749754.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, Oct 26, 2013 at 11:48 AM, ray <yehrayyeh@gmail.com> wrote:
> Hi all,
>   Because the server only can accept ONE connect from client.
> If the client establish  connection with the server,the server can not accept other client.

Are you sure? If that's the case, you're stuck - you can't parallelize at all.

> One large batch transaction file come from user.
> client divide the large file to several smaller files.
> In my thinking:
> client have many seats.Each smaller files is thread.
> client manage which seat was avaiable,handle send to/recv from server.
> Any idea or suggestion?

A normal server setup would accept multiple connections at once. But
you'll need to look into what the server can actually do.

ChrisA

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


Thread

How to design:Use One  TCPIP Client connection to Server and work  concurrently ray <yehrayyeh@gmail.com> - 2013-10-25 03:06 -0700
  Re: How to design:Use One TCPIP Client connection to Server and work concurrently Chris Angelico <rosuav@gmail.com> - 2013-10-25 21:25 +1100
  Re: How to design:Use One  TCPIP Client connection to Server and work  concurrently ray <yehrayyeh@gmail.com> - 2013-10-25 17:48 -0700
    Re: How to design:Use One TCPIP Client connection to Server and work concurrently Chris Angelico <rosuav@gmail.com> - 2013-10-26 12:09 +1100
  Re: How to design:Use One  TCPIP Client connection to Server and work  concurrently ray <yehrayyeh@gmail.com> - 2013-10-25 20:22 -0700

csiph-web