4 Knowledge Base

 

 TelecomTrainning.net > Knowledge Base
 Viewing KB Article
Good Evening, - Please register or - log-in to your account.
Search
Search   Saved Questions   Ask a question
Keywords 
 
Available categories
LTE
100 of Questions in LTE
CCNA Certification
CCNA Sample Q & A (1000 + Q &A)
(Network +) Certification
(Network +) Sample Q & A (1000 + Q &A)
Networking
General/Interview Q& A on Networking
Home Networking
General/Interview Q& A on Networking
VOIP, SIP & Asterisk
Q & A on VOIP,Ethereal, SIP & Asterisk
Telecom Test Equipments
Q & A on Telecom Test Equipment
PSTN / Wireline
General / Interview Q & A on PSTN / Wireline
LTE, Wireless, 3G ,Diameter and HSS
General/Interview Q & A on LTE, Wireless, 3G ,Diameter and HSS
Telecom General
Any Q & A in Telecom in General

Top Questions
Friends, Describe Secure storage and distribution of A-Keys?
what is the difference between E1 signal & Ethernet signal ?
How do I monitor SS7 Traffic in spectra2?
Can you tell me about PBGT?
Explain me the difference between a repeater, bridge and router? Relate this to the OSI model.
What is the difference between BRI & PRI ?
Guys what is the purpose of Umbrella Cell Approach in GSM ?
how can we explain media gateway in MSc?
What is GGSN?
What is the difference between Electrical-tilt and Mechanical-tilt of an antenna?
What is BSC?
What is demarc point?
Can any one explain me how sms flow will work using ss7 network ?( from physical layer to application layer)
why cellphone towers are painted in red and white?
Explain SLTA and SLTM messages in MTP3?
Hi guys what is WAP?
wat is the difference betweem MSC & GMSC, & MSS & GCS?
what is EDAp? what is the functions of EDAP?
What is a circuit id?
what is sdh?

How to deal with blocking calls in socket programming?
fernando 26-October-2007 05:20:47 PM

Comments


www.developerfusion.com/.../socket-programming-in-c-part-1
Posted by crouse


www.amk.ca/python/howto/sockets
Posted by crouse


We can fix arguments, too, which is how you deal with loop control in Erlang. ? END_CHAR is 127, so if we call loop(Socket, 127) it first ...
Posted by waqasahmad


* Many of the functions we saw block until a certain event
- accept: until a connection comes in
- connect: until the connection is established
- recv, recvfrom: until a packet (of data) is received
- send, sendto: until data is pushed into socket’s buffer
* Q: why not until received?
* For simple programs, blocking is convenient
* For complex programs
- multiple connections
- simultaneous sends and receives
- simultaneously doing non-networking processing
* Options:
- use the select function call
- create multi-process or multi-threaded code
- turn off the blocking feature (e.g., using the fcntl file-descriptor control function)
* Select
- can be permanent blocking, time-limited blocking or non-blocking
- input: a set of file-descriptors
- output: info on the file-descriptors’ status
-i.e., can identify sockets that are “ready for use”: calls involving that socket will return immediately

Posted by jhon186

Q&A Rating

Q&A Rating
Rate This Question and Answer

Related Questions
Hi, Define Frame Relay?
 
Guys.How to avoid co-channel interference in Gsm Networks?
Friends, how to generate an Encryption Mask (VP Mask)?


Search questions via popularity
Top viewed questions  Top emailed questions  Most printed questions  Most saved questions
 
Copyright © Telecom Training, All Rights Reserved