Encerrado

C socket example

Basically what I need is an example of a server using sockets in C. The code would need to be compatible for Windows and Linux (if possible). The socket code should be in a separate class so the main program would be something like:

#include "yourclass"

void main(void)

{

socket_class first_server;

socket_class second_server;

[url removed, login to view](); // Creates the sockets, checks for errors

[url removed, login to view]();

[url removed, login to view](23); //Sets the 1st server port

[url removed, login to view](15);

first_server.other_settings(); // Sets other settings that I could've forgot

[url removed, login to view](); //Starts listening on this port

[url removed, login to view]();

return 0;

}

This would start both servers and the program would run until the user types Ctrl-C or something. The commands sent by the clients would be handled by the class using a switch...case.

ADDED Nov 13: It is important that the application's thread is not interrupted by starting the server. In the example above, the would be some more code between [url removed, login to view](); and return 0; that would need to run at the same time that the server will accept connections and deliver the needed messages to the clients.

That's about all I can think of for now. If you need details, don't hesitate to send me a mail.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.

3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).

## Platform

DOS, Linux (if possible)

Habilidades: Programação C, PHP

Ver mais: windows socket programming, types programming errors, thread programming, switch case programming, functional programming example, example php program, example bid, dos programming, programming example, checks mail, socket server, example, socket programming server, php windows socket server, listening program, source code socket programming, windows socket request, socket time server, server socket explained, windows socket, windows socket server application, socket example, thread example, socket explained, dos executable

Acerca do Empregador:
( 0 comentários ) Canada

ID do Projeto: #3008609

10 freelancers estão ofertando em média $9 para este trabalho

olegsavchuk

See private message.

$11.9 USD em 1 dia
(104 Comentários)
7.0
sabonzovw

See private message.

$8.5 USD em 1 dia
(26 Comentários)
5.3
ciphereye

See private message.

$11.05 USD em 1 dia
(16 Comentários)
2.7
headachevw

See private message.

$3.4 USD em 1 dia
(1 Comentário)
0.0
codeweavers

See private message.

$8.5 USD em 1 dia
(0 Comentários)
0.0
b1ackh0le

See private message.

$4.25 USD em 1 dia
(1 Comentário)
0.0
tanalis

See private message.

$11.05 USD em 1 dia
(1 Comentário)
0.0
nahual

See private message.

$10.2 USD em 1 dia
(0 Comentários)
0.0
elitesoftvw

See private message.

$12.75 USD em 1 dia
(0 Comentários)
0.0
supercashvw

See private message.

$4.25 USD em 1 dia
(0 Comentários)
0.0