Re: Questions about asyncore

2008-08-05 Thread Frank Millman
On Aug 5, 6:18 pm, Josiah Carlson <[EMAIL PROTECTED]> wrote: > > Giampaolo already offered up some information, but I will offer these > two little tidbits: > In your first client, your handle_read doesn't handle the case where > you have received multiple packets at one time. That is, imagine tha

Re: Questions about asyncore

2008-08-05 Thread Josiah Carlson
On Jul 29, 4:09 am, Frank Millman <[EMAIL PROTECTED]> wrote: > Hi all > > I have been using my own home-brewed client/server technique for a > while, using socket and select. It seems to work ok. The server can > handle multiple clients. It does this by creating a new thread for > each connection.

Re: Questions about asyncore

2008-07-31 Thread Frank Millman
On Jul 31, 10:39 pm, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote: > On 31 Lug, 08:30, Frank Millman <[EMAIL PROTECTED]> wrote: > > > I don't know why you find more convenient running asyncore.loop in a > separate thread but if your purpose is writing a test suite in which a > client checks respon

Re: Questions about asyncore

2008-07-31 Thread Giampaolo Rodola'
On 31 Lug, 08:30, Frank Millman <[EMAIL PROTECTED]> wrote: > On Jul 30, 7:50 pm, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote: > > > On 30 Lug, 09:49, Frank Millman <[EMAIL PROTECTED]> wrote: > > Thanks again, Giampaolo, your input is really appreciated. > > > > > I pretty much have the same overv

Re: Questions about asyncore

2008-07-30 Thread Frank Millman
On Jul 30, 7:50 pm, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote: > On 30 Lug, 09:49, Frank Millman <[EMAIL PROTECTED]> wrote: > Thanks again, Giampaolo, your input is really appreciated. > > I pretty much have the same overview I had before. > As far as I can tell the only reason you want to us

Re: Questions about asyncore

2008-07-30 Thread Giampaolo Rodola'
On 30 Lug, 09:49, Frank Millman <[EMAIL PROTECTED]> wrote: > On Jul 29, 3:40 pm, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote: > > > On 29 Lug, 13:09, Frank Millman <[EMAIL PROTECTED]> wrote: > > Thanks for the reply, Giampaolo. Glad to help. > > The benefit of asynchat is that it automatically

Re: Questions about asyncore

2008-07-30 Thread Frank Millman
On Jul 29, 3:40 pm, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote: > On 29 Lug, 13:09, Frank Millman <[EMAIL PROTECTED]> wrote: Thanks for the reply, Giampaolo. > > The benefit of asynchat is that it automatically handles the buffering > of both input and output. > Aside from set/found_terminator

Re: Questions about asyncore

2008-07-29 Thread Giampaolo Rodola'
On 29 Lug, 13:09, Frank Millman <[EMAIL PROTECTED]> wrote: > Firstly, having got asyncore working, I had a look at asynchat. As far > as I can see I get very little benefit from using it. I have already > set up a 'messaging' protocol between server and client, where all > messages consist of 5 di