C# socket server using producer/consumer logic
This project received 38 bids from talented freelancers with an average bid price of $170 AUD.Get free quotes for a project like this
Project Budget$30 - $250 AUD
I need an C# developer with TCP socket server experience to develop a socket server application.
The socket server will receive TCP connections from multiple clients at the same time. Each connection will contain multiple lines of text. Each text line is a separate record. The application needs to add each record to a queue to be processed by a second thread. The second thread will read and process each message in the queue in the correct order.
Therefore there will be two main parts -
1) Main (producer) thread - load server, accept connections from clients, receive messages, add complete messages to a queue, inform background (consumer) thread of new message in queue. On close of application, cleanly close client connections, cleanly close the background thread.
2) Background (consumer) thread - sleep until informed of new message in queue, read string from queue, process string (write string to text file), delete string from queue, if queue count = 0, go to sleep
If you have experience working with TCP sockets and experience working with producer/consumer model please make a bid. If you have questions please let me know.
Browse Related Skills
Other things people do on Freelancer
Looking to make some money?
- Set your budget and the timeframe
- Outline your proposal
- Get paid for your work
Hire Freelancers who also bid on this project
Looking for work?
Work on projects like this and make money from home!Sign Up Now
- The New York Times
- Wall Street Journal
- Times Online