Find Jobs
Hire Freelancers

C socket example

$10-15 USD

Closed
Posted over 20 years ago

$10-15 USD

Paid on delivery
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; [login to view URL](); // Creates the sockets, checks for errors [login to view URL](); [login to view URL](23); //Sets the 1st server port [login to view URL](15); first_server.other_settings(); // Sets other settings that I could've forgot [login to view URL](); //Starts listening on this port [login to view URL](); 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 [login to view URL](); 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)
Project ID: 3008609

About the project

10 proposals
Remote project
Active 20 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
10 freelancers are bidding on average $9 USD for this job
User Avatar
See private message.
$11.90 USD in 1 day
5.0 (104 reviews)
7.0
7.0
User Avatar
See private message.
$8.50 USD in 1 day
3.1 (26 reviews)
5.3
5.3
User Avatar
See private message.
$11.05 USD in 1 day
3.8 (16 reviews)
2.7
2.7
User Avatar
See private message.
$3.40 USD in 1 day
0.0 (1 review)
0.0
0.0
User Avatar
See private message.
$8.50 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$4.25 USD in 1 day
0.0 (1 review)
0.0
0.0
User Avatar
See private message.
$11.05 USD in 1 day
0.0 (1 review)
0.0
0.0
User Avatar
See private message.
$10.20 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$12.75 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$4.25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of CANADA
Canada
0.0
0
Member since Jan 1, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.