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

Chris Angelico rosuav at gmail.com
Fri Oct 25 21:09:10 EDT 2013


On Sat, Oct 26, 2013 at 11:48 AM, ray <yehrayyeh at 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



More information about the Python-list mailing list