Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Good libraries for network programming (not asynchronous)

0 views
Skip to first unread message

Tvrtko

unread,
Sep 23, 2009, 8:29:43 PM9/23/09
to
Hello,

Is there any good alternative to twisted for network programming which
doesn't involve asynchronous programming? I don't really like the
asynchronous model because it is hard to incorporate all other
blocking libraries that I have to use. And the code doesn't look nice.
I recently found the diesel project which is much nicer, but still
asynchronous.

I'm looking for something that will manage all threads and connections
and be between me and a raw socket.

I know about the socketserver from standard library and I'm asking if
there is anything else.

Thanks,
Tvrtko

Jeff McNeil

unread,
Sep 23, 2009, 10:36:44 PM9/23/09
to

I know this probably isn't overly helpful, but Twisted allows you to
defer a blocking call to a thread using a 'deferToThread' construct.
It exists so that you can run otherwise synchronous calls in an async.
manner.

--
Thanks,

Jeff
mcjeff.blogspot.com

Tvrtko

unread,
Sep 23, 2009, 11:02:40 PM9/23/09
to
On Sep 24, 4:36 am, Jeff McNeil <j...@jmcneil.net> wrote:
> I know this probably isn't overly helpful, but Twisted allows you to
> defer a blocking call to a thread using a 'deferToThread' construct.
> It exists so that you can run otherwise synchronous calls in an async.
> manner.

I'm already using this, but the larger issue still remains.

0 new messages