The client has made the following changes to the job.
Client prefers freelancers from:
You are still able to submit a proposal for this job.
The client prefers freelancers from
a different location.
Write a TCP/IP threading socket server script to receive binary files and store the data in a MySQL table. Presently we use our webserver and small PHP script to accomplish this but we would like to cut out the overhead of HTTP by running our own listener/server.
The protocol is very simple. When a connection comes in the clients sends a (up to) 10 character user ID. The server checks the database if a table exists with this ID and if not it creates the table.
If the table exists the server sends the Epoch timestamp (4 bytes) of the last entry in the table otherwise it sends a 0.
The client then sends one or more data records of a fixed length (30 bytes in present setup, )started with the 4 byte epoch time and followed by a list on integers and single byte numbers, which then will be stored in the table.
When the client finishes sending data the server returns the current (GMT) epoch time stamp.
The script must be made in Python 2.x
It must run as a daemon and must be multi threa...
Sign in or Register to see more