473,395 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

I/O Multiplexing and non blocking socket

Hi guys,
I'm looking for a tutorial to make a client with a i/o multiplexing and
non blocking socket.

Anybody knows where is a tutorial?
Tnx

Dec 1 '06 #1
4 3838
Salvatore Di Fazio wrote:
I'm looking for a tutorial to make a client with a i/o
multiplexing and non blocking socket.

Anybody knows where is a tutorial?
Perhaps a bit of an overkill, but try this:

http://twistedmatrix.com/projects/co...o/clients.html

Regards,
Björn

--
BOFH excuse #30:

positron router malfunction

Dec 1 '06 #2

Jean-Paul Calderone ha scritto:
On 1 Dec 2006 06:07:28 -0800, Salvatore Di Fazio <sa***************@gmail.comwrote:
Hi guys,
I'm looking for a tutorial to make a client with a i/o multiplexing and
non blocking socket.

Anybody knows where is a tutorial?

http://twistedmatrix.com/projects/co...o/clients.html

Jean-Paul
Thank you guys, but I would like to use the standard libraries

Dec 1 '06 #3
Salvatore Di Fazio wrote:
Thank you guys, but I would like to use the standard libraries
Then I suggest you read a good book about Unix programming,
especially about the workings of read(), write() and select(). If
you've understood this doing it with python's read/write/select
will be easy.

Everyone may choose to reinvent the wheel :)

Regards,
Björn

--
BOFH excuse #180:

ether leak

Dec 1 '06 #4
Bjoern Schliessmann wrote:
Salvatore Di Fazio wrote:
Thank you guys, but I would like to use the standard libraries

Then I suggest you read a good book about Unix programming,
especially about the workings of read(), write() and select(). If
you've understood this doing it with python's read/write/select
will be easy.

Everyone may choose to reinvent the wheel :)
Or use Python's standard library features:

http://docs.python.org/lib/module-asyncore.html
http://docs.python.org/lib/module-asynchat.html

I have to confess, however, that I did reinvent the wheel recently
rather than use asyncore, although I may adopt that particular wheel
later on in the project concerned.

Paul

Dec 1 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bruce Vander Werf | last post by:
How can I cleanly stop a thread that is currently blocking on Socket.Receive? I don't want to use Thread.Abort, because I would like the thread method to exit cleanly, and the same code must run...
7
by: Michi Henning | last post by:
Hi, I'm using a non-blocking connect to connect to a server. Works fine -- the server gets and accepts the connection. However, once the connection is established, I cannot retrieve either the...
3
by: mp | last post by:
Code is at bottom. Basically, if I turn off socket blocking prior to connecting, I get a "Socket is not connected" error when I try to send data. However, if I do not turn off blocking, OR if I...
1
by: shailesh333 | last post by:
I have written a small piece of code in 'c' for a simple server However when I call the socket function , it returns the value -1. What could be the problem?? Any help will be appreciated......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.