Non Locking, Non-Multithreaded Multiple Client TCP Server
Author |
Message |
jernst
|
Posted: Fri Apr 04, 2008 8:02 am Post subject: Non Locking, Non-Multithreaded Multiple Client TCP Server |
|
|
Heres some code I used for an assignment in a networks class. Maybe some one will have some use for it. It uses select() to switch between clients. It was a requirement that we could not fork a new thread for each client so this is another way to handle multiple clients. I have also attached the sample client program to make it easier to understand. The client requests a file and the server sends it back. From what I remember it only handles text files.
Description: |
|
Download |
Filename: |
client.c |
Filesize: |
2.39 KB |
Downloaded: |
1992 Time(s) |
Description: |
|
Download |
Filename: |
server_select.c |
Filesize: |
4.68 KB |
Downloaded: |
2915 Time(s) |
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
computer112
|
Posted: Wed Oct 15, 2008 10:10 am Post subject: Re: Non Locking, Non-Multithreaded Multiple Client TCP Server |
|
|
These files just some of the examples, !
I saw some files were more complex than these! But anyway thanks for the topic!
|
|
|
|
|
|
Zeroth
|
Posted: Wed Oct 15, 2008 2:05 pm Post subject: Re: Non Locking, Non-Multithreaded Multiple Client TCP Server |
|
|
Pretty nice Jason. Very small, looks pretty decent.
|
|
|
|
|
|
coolgod
|
Posted: Sat Aug 07, 2010 2:18 am Post subject: Re: Non Locking, Non-Multithreaded Multiple Client TCP Server |
|
|
why non multi-threaded?
|
|
|
|
|
|
|
|