Socket FAQ - [ Usenet FAQs | Web FAQs | Documents | RFC...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
[ Usenet FAQs | Web FAQs | Documents | RFC Index ] * Search the FAQ Archives [comp.unix.programmer] Unix-socket-faq for network programming There are reader questions on this topic! Help others by sharing your knowledge Newsgroups: comp.unix.programmer, comp.unix.answers From: vic@brutus.tlug.org (Vic Metcalfe) Subject: [comp.unix.programmer] Unix-socket-faq for network programming Message-ID: <1998Mar22.123227.1526@brutus.tlug.org> Date: Sun, 22 Mar 1998 12:32:27 GMT Summary: This posting offers answers to frequent questions about network programming in the unix environment using sockets. Archive-name: unix-faq/socket Posting-Frequency: monthly Last-modified: 1998/01/22 URL: http://www.ibrado.com/sock-faq/ Programming UNIX Sockets in C - Frequently Asked Questions Created by Vic Metcalfe, Andrew Gierth and other con- tributers January 22, 1998
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is a list of frequently asked questions, with answers about pro- gramming TCP/IP applications in unix with the sockets interface. ______________________________________________________________________ Table of Contents: 1. General Information and Concepts 1.1. About this FAQ 1.2. Who is this FAQ for? 1.3. What are Sockets? 1.4. How do Sockets Work? 1.5. Where can I get source code for the book [book title]? 1.6. Where can I get more information? 2. Questions regarding both Clients and Servers (TCP/SOCK_STREAM) 2.1. How can I tell when a socket is closed on the other end? 2.2. What's with the second parameter in bind()?
Background image of page 2
2.3. How do I get the port number for a given service? 2.4. If bind() fails, what should I do with the socket descriptor? 2.5. How do I properly close a socket? 2.6. When should I use shutdown()? 2.7. Please explain the TIME_WAIT state. 2.8. Why does it take so long to detect that the peer died? 2.9. What are the pros/cons of select(), non-blocking I/O and SIGIO? 2.10. Why do I get EPROTO from read()? 2.11. How can I force a socket to send the data in its buffer? 2.12. Where can a get a library for programming sockets? 2.13. How come select says there is data, but read returns zero? 2.14. Whats the difference between select() and poll()?
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2.15. How do I send [this] over a socket? 2.16. How do I use TCP_NODELAY? 2.17. What exactly does the Nagle algorithm do? 2.18. What is the difference between read() and recv()? 2.19. I see that send()/write() can generate SIGPIPE. Is there any advantage to handling the signal, rather than just ignoring it and checking for the EPIPE error? Are there any useful parameters passed to the signal catching function? 2.20. After the chroot(), calls to socket() are failing. Why? 2.21. Why do I keep getting EINTR from the socket calls? 2.22. When will my application receive SIGPIPE? 2.23.
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/11/2011 for the course SPCH 2402 taught by Professor Floyd,m during the Spring '09 term at Dallas Colleges.

Page1 / 85

Socket FAQ - [ Usenet FAQs | Web FAQs | Documents | RFC...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online