By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,101 Members | 1,416 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,101 IT Pros & Developers. It's quick & easy.

a socket programming problem

P: n/a
Hi everybody,

Here is a problem about socket programming, please help me to solve it.
thanx!!

************************************************** **********

Implement a server-side program that will accept client request,
compute the median of a
set of integers, and return the results in response. Implement a
client-side program to test the server.

Requirements:
1. The server should be able to accept multiple clients at the same
time.
2. The server should check the correctness of input.
3. The system should be able to handle different byte-order (big endian
vs little endian) and word length (32-bit vs 64-bit). That is, you
server-side program must be able to work with clients from different
platforms.
4. Server and client communicate using BSD sockets.
5. DO NOT use any libraries having similar functionalities, e.g.,
gsoap.

************************************************** **********

Mar 18 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
lu**********@gmail.com wrote:
Hi everybody,

Here is a problem about socket programming, please help me to solve it.
thanx!!

************************************************** **********

Implement a server-side program that will accept client request,
compute the median of a
set of integers, and return the results in response. Implement a
client-side program to test the server.

Requirements:
1. The server should be able to accept multiple clients at the same
time.
2. The server should check the correctness of input.
3. The system should be able to handle different byte-order (big endian
vs little endian) and word length (32-bit vs 64-bit). That is, you
server-side program must be able to work with clients from different
platforms.
4. Server and client communicate using BSD sockets.
5. DO NOT use any libraries having similar functionalities, e.g.,
gsoap.

************************************************** **********

No one one does homework here. Nor do they do homework on a group where
socket programming is topical.

--
Ian Collins.
Mar 18 '06 #2

P: n/a
On 18 Mar 2006 02:11:44 -0800, in comp.lang.c ,
"lu**********@gmail.com" <lu**********@gmail.com> wrote:
Hi everybody,

Here is a problem about socket programming, please help me to solve it.
thanx!!
This is actuallly two problems, neither of them topical here:
1) how to design some software
2) how to use sockets.

The latter is best asked in comp.unix.programming. The former in
comp.programming.

Also it looks very much like a homework problem. I strongly recommend
you have a go by yourself, then post when you need help with specific
issues.
************************************************* ***********

Implement a server-side program that will accept client request,
compute the median of a
set of integers, and return the results in response. Implement a
client-side program to test the server.

Requirements:
1. The server should be able to accept multiple clients at the same
time.
2. The server should check the correctness of input.
3. The system should be able to handle different byte-order (big endian
vs little endian) and word length (32-bit vs 64-bit). That is, you
server-side program must be able to work with clients from different
platforms.
4. Server and client communicate using BSD sockets.
5. DO NOT use any libraries having similar functionalities, e.g.,
gsoap.

************************************************* ***********

Mark McIntyre
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Mar 18 '06 #3

P: n/a
"lu**********@gmail.com" <lu**********@gmail.com> writes:
Here is a problem about socket programming, please help me to solve it.
thanx!!

[problem description snipped]

Give us your instructor's e-mail address so we can submit our
solutions directly.

Or do some work yourself.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Mar 18 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.