This program will be used on linux. For someone that understands linux + golang, this is probably easy. Unfortunately I do not know golang.
The initial code is on github, so I'd appreciate if you fork the project and keep your code on github.
Websocketd is a small server program which will take incoming websocket connections and start a shell script with the stdin and stdout connected to the websocket like a pipe (code here: [login to view URL] ).
This is a very useful tool, but I would like it modified to allow me to send binary data.
Here is how I'd like the new binary data feature to work:
- instead of a text websocket, open a binary websocket (I am told this is supported by golang)
- when websocketd launches a program, it should create a socketpair (bidirectional pipe) and supply one end as fd=100 for the program. In what follows I will call this extra file descriptor the binfd because I will use it for binary data.
- when communicating with the browser (client), websocketd should send/recv binary messages in the format: type (byte), data (arbitrary length)
- when receiving from the client: if type=0, send the data to the program's stdin, any other type send as: dataLength(4 bytes), type (byte), data (of specified length) to the program's binfd
- when receiving from the program: For each line of text from stdout, send as a message to the client with format: type=0 (byte), data. From binfd, expect the format: dataLength(4 bytes), type (byte), data (of specified length). Send the message: type (byte), data, to the client.
I would also like a very simple example javascript "hello world" demonstration of this new feature.
When bidding please state if you have go language experience.
I need this in 3 days.
I have lots of experience with linux, websockets, and javascript. I can get started on this tonight and have it ready for you tomorrow. I don't have much experience with Go Language, but from my research, it looks pretty straight forward.
I've cloned the websocketd app and I'm running it on my linux box now, I'm assuming you have some html/javascript UI that connects to a websocketd running bash. How will the UI get the binary data? By opening a local file?
$266 USD en 1 día
0,0 (0 comentarios)
0,0
0,0
5 freelancers están ofertando un promedio de $232 USD por este trabajo
Hello, your project to execution is interesting to me!!
I understand that I am a beginner on freelancer.com but I very need work, I program about 15 years. If you give me mlenky chance to show on what I am capable, you won't be disappointed!