sockets
-
Hi,
there are different types of sockets:
- Blocking
- Nonblocking
- I/O multiplexing
- Signal-driven I/O
- Asynchronous I/Owhat is it mean by...blocking sockets are single threaded and non blocking use select or multi-threading?
-
and how can i create them?
-
-
Hi,
This only mentions blocking sockets inc. select ...
Where can i read more about the other techniques?
-
I think these slides explain it great!
http://ube.ege.edu.tr/~erciyes/CENG322/notes/510_socket5.ppt
I look for more infos inc examples...
-
Jeff1 schrieb:
I think these slides explain it great!
http://ube.ege.edu.tr/~erciyes/CENG322/notes/510_socket5.ppt
I look for more infos inc examples...
Be careful - on a first glimpse, some slides seem to be misleading. Better check out some more reliable resources, too.
Slide 7 (I/O) multiplexing) states the process would block after calling
selectuntil a datagram was ready to read, which is wrong. It doesn't block longer than the timeout you give it, and that can be zero if you wish. Otherwise it would be pretty useless.Slide 15 suggests to abuse
selectas a millisecond timer. Wow, what a precision! Gee, there isusleepand you get a microsecond timer...