You are not logged in.

#1 2012-04-03 04:11:15

Ibraheem
Webmaster
From: Capital
Registered: 2012-03-16
Posts: 23,095
Website

Unix Socket Programming Interview Questions And Answers

Operating Systems Windows Linux Unix and Mac :: Unix Socket Programming Job Interview Questions and Answers

Unix Socket Programming Interview Questions and Answers will guide us now that Unix domain socket or IPC socket is a data communications endpoint that is similar to an Internet socket, but does not use a network protocol for communication. It is used in POSIX operating systems for inter-process communication. The correct standard POSIX term is POSIX Local IPC Sockets. So learn Unix Socket Programming with the help of this Unix Socket Programming Interview Questions with Answers guide

1 ► How do Sockets Work?
2 ► What is with the second parameter in bind()?
3 ► If bind() fails, what should I do with the socket descriptor?
4 ► When should I use shutdown()?
5 ► Code Sample: a very simple client process.
6 ► What are Sockets?
7 ► How can I tell when a socket is closed on the other end?
8 ► How do I get the port number for a given service?
9 ► How do I properly close a socket?
10 ► What is the difference between close() and shutdown()?
11 ► Explain the TIME_WAIT state.
12 ► How can I put a timeout on connect()?
13 ► Why does the sockets buffer fill up sooner than expected?
14 ► How often should I re-transmit un-acknowleged messages?
15 ► How can I be sure that a UDP message is received?
16 ► of the socket? Does doing a connect() call affect the receive behaviour?
17 ► When should I use UDP instead of TCP?
18 ► How can I read only one character at a time?
19 ► What is the difference between SO_REUSEADDR and SO_REUSEPORT?
20 ► How do I get my server to find out the clients address / host- name?
21 ► What exactly does SO_KEEPALIVE do?
22 ► What exactly does SO_REUSEADDR do?
23 ► How can I make my server a daemon?
24 ► How come I get address already in use from bind()?
25 ► Why do I get connection refused when the server is not running?
26 ► How can I set the timeout for the connect() system call?
27 ► Why does connect() succeed even before my server did an accept()?
28 ► How do I convert a string into an internet address?
29 ► What are socket exceptions? What is out-of-band data?
30 ► Why do I keep getting EINTR from the socket calls?
31 ► 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?
32 ► How do I send [this] over a socket?
33 ► How come select says there is data, but read returns zero?
34 ► How can I force a socket to send the data in its buffer?
35 ► What are the pros/cons of select(), non-blocking I/O and SIGIO?
36 ► Why does it take so long to detect that the peer died?
37 ► Why do I get EPROTO from read()?
38 ► Where can a get a library for programming sockets?
39 ► Whats the difference between select() and poll()?
40 ► How do I use TCP_NODELAY?
41 ► What is the difference between read() and recv()?
42 ► After the chroot(), calls to socket() are failing. Why?
43 ► When will my application receive SIGPIPE?
44 ► How can I find the full hostname (FQDN) of the system I am running on?
45 ► How can my client work through a firewall/proxy server?
46 ► Why do I sometimes lose a servers address when using more than one server?
47 ► system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?
48 ► over the socket? Is there a way to have a dynamic buffer? What does one do when one does not know how much information is coming?
49 ► Why do not my sockets close?
50 ► How can I listen on more than one port at a time?
51 ► What exactly does SO_LINGER do?
52 ► How can I bind() to a port number < 1024?
53 ► How should I choose a port number for my server?
54 ► How can I write a multi-homed server?
55 ► What is the difference between connected and unconnected sockets?
56 ► How can I read ICMP errors from connected UDP sockets?
57 ► How can I be sure that UDP messages are received in order?
58 ► How come only the first part of my datagram is getting through?
59 ► How would I put my socket in non-blocking mode?

2012-04-03 04:11:15

Advertisement
Ads By Google

Re: Unix Socket Programming Interview Questions And Answers



Board footer