4 Knowledge Base

 

 TelecomTrainning.net > Knowledge Base
 Viewing KB Article
Good Afternoon, - 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?
How do I monitor SS7 Traffic in spectra2?
what is the difference between E1 signal & Ethernet signal ?
Explain me the difference between a repeater, bridge and router? Relate this to the OSI model.
What is the difference between BRI & PRI ?
Can you tell me about PBGT?
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 demarc point?
What is BSC?
Can any one explain me how sms flow will work using ss7 network ?( from physical layer to application layer)
Explain SLTA and SLTM messages in MTP3?
why cellphone towers are painted in red and white?
Hi guys what is WAP?
what is EDAp? what is the functions of EDAP?
wat is the difference betweem MSC & GMSC, & MSS & GCS?
what is sdh?
What is a circuit id?

Explain the select function call in socket programming?
vijayr 26-October-2007 05:22:07 PM

Comments


www.faqs.org/faqs/unix-faq/socket
Posted by crouse


www.hiraeth.com/alan/tutorials/courses/tcpip.html - 13k -
Posted by waqasahmad


* int status = select(nfds, &readfds, &writefds, &exceptfds, &timeout);
- status: # of ready objects, -1 if error
- nfds: 1 + largest file descriptor to check
- readfds: list of descriptors to check if read-ready
- writefds: list of descriptors to check if write-ready
- exceptfds: list of descriptors to check if an exception is registered
- timeout: time after which select returns, even if nothing ready - can be 0 or ¥
(point timeout parameter to NULL for ¥)


* Recall select uses a structure, struct fd_set
- it is just a bit-vector
- if bit i is set in [readfds, writefds, exceptfds], select will check if file descriptor (i.e. socket) i is ready for [reading, writing, exception]
* Before calling select:
- FD_ZERO(&fdvar): clears the structure
- FD_SET(i, &fdvar): to check file desc. i
* After calling select:
- int FD_ISSET(i, &fdvar): boolean returns TRUE iff i is “ready”

Posted by peter186

Q&A Rating

Q&A Rating
Rate This Question and Answer

Related Questions
Friends frames relay interface Serial 0, what sub interface numbers would you use?
Hello, How to share a DSL connection between a pc and a Macintosh laptop?
What companies Manufacture RF Network Analyzer?
 


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