Unix Socket Programming Interview Questions
Questions Answers Views Company eMail

What are raw sockets?

Axis Technologies,

4 10503

What is Mac, and how is it different from PC? Which one is better for professional users, and why

IBM, Evolving Systems,

1 2701

What is LILO?

2 2689




How do Sockets Work?

1 452

What is with the second parameter in bind()?

1 498

If bind() fails, what should I do with the socket descriptor?

1 489

When should I use shutdown()?

Wipro,

1 378

What are Sockets?

1 465




How can I tell when a socket is closed on the other end?

203

How do I get the port number for a given service?

1 561

How do I properly close a socket?

1 454

What is the difference between close() and shutdown()?

1 537

Explain the TIME_WAIT state.

1 562

How can I put a timeout on connect()?

1 483

Why does the sockets buffer fill up sooner than expected?

244


Post New Unix Socket Programming Questions






Un-Answered Questions { Unix Socket Programming }

How can I force a socket to send the data in its buffer?

293


How do I use TCP_NODELAY?

217


Whats the difference between select() and poll()?

433


What is the difference between SO_REUSEADDR and SO_REUSEPORT?

438


Why does the sockets buffer fill up sooner than expected?

244


How can I write a multi-homed server?

484


How can I set the timeout for the connect() system call?

295


What are the pros/cons of select(), non-blocking I/O and SIGIO?

255


How can I tell when a socket is closed on the other end?

203


system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?

420


Why does it take so long to detect that the peer died?

394


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?

257


What is the difference between read() and recv()?

611


How do I convert a string into an internet address?

167


Why do I get EPROTO from read()?

245