C/C++ code snippet needed (sockets)

I need someone to write me a tiny client application. It will do the following: - run as a daemon (could be thru sleep() function) - wake up every minute and connect to 5 different servers, disconnect and go to sleep again - for each connection with a server it must fork! (i.e it needs to be multithreaded) - servers must be in array (i will add more later) - arbitrary timeout is a must!

basically, i need to know if a certain server is up and running. if you have a better solution - let me know.

most of the parameters should be constants: timeout, server port, sleep time, etc. all output can be to STD.

you can use any external socket classes or whatever. but i need to be able to install it on my server (RHE3). i can give you access to the server.

ATTN! never mind the "daemon" part. it does not need to be a daemon. i will use cron to run it every minute. therefore, the program only needs to fork and connect to a server in each fork. output results (if it connected or not) to the screen and exit.

Taidot: C-ohjelmointi

Näytä lisää: connect time server, i need someone to write my application, server code, write c++, std, socket server c, snippet, Sleep, port a c, my c, c++ server, c++ a, C# access, c access, access c#, client socket server, socket connect timeout, code function, connect timeout, know following

Tietoa työnantajasta:
( 0 arvostelua ) Cary, NC, United States

Projektin tunnus: #12326

4 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


I've done it many times before and i can do it can in 1 hour for you. Can do it with external config-file.

$50 USD 0 päivässä
(6 arvostelua)

This is basic socket programming. I have done hundreds ovre my 25+ years of UNIX programming.

$50 USD 1 päivässä
(4 arvostelua)

Consider ME IN! Consider IT Done!

$50 USD 1 päivässä
(2 arvostelua)

This is basic socket programming. I have done one over my 1 month of UNIX programming ;-)

$50 USD 1 päivässä
(0 arvostelua)