CS 596: Client Server Programming
Listen() problems
San Diego State University -- This page last updated February 12, 1995
Problem
According to the manual, the Berkeley Socket Library call listen will
cause incoming connections to be queued up in a FIFO.
Rumor has it that this is not always the case, however! It is said that some
systems will actually put incoming connections in a stack (LIFO).
Assignment
The assignment is to investigate this rumor. Since you have two different types of
machines available, see if either of them has keeps incoming connections in a stack.
You will need to do the following:
- Describe what ramifications a stack has over a queue when dealing with incoming connections
- Design a test which can run on both rohan and saturn to see if they use a queue or stack
- Implement this test
- Report on the results