Age | Commit message (Collapse) | Author |
|
|
|
A script that can be installed on a remote machine and invoked with a
URL argument that will be opened by Hearurl locally.
For use with programs like the "openurl.pl" script for Irssi.
The script would function using this SSH command:
$ ssh -R 37705:localhost:34254 user@host
|
|
A few ideas for next steps now that we have the foundation working.
|
|
Remove the `match` call from efa7f80d962aa0f55f3addbac1da206538d9242e
and use `unwrap_or_else` instead since we don't need to do anything
extra in the `Ok` case.
|
|
Print all errors to STDERR.
|
|
Use the Mac OS X `open` command to open Opera and pass in the contents
of the TCP stream as an argument, assuming it to be a URL that should
be opened in the browser.
Only dealing with the `open` command for now. Will be extending this to
support user-customisable browsers, so that any GUI browser that can be
opened with `open` can be used.
|
|
The call to write to STDERR returns a `Result`. Wrap it in a `try!` to
handle the result and eliminate the "unused result" compilation
warning.
|
|
We only need the `TcpListener` for what we're doing.
|
|
|
|
Going with TCP as that seems like it will work well. Get rid of our UDP
code.
|
|
Replicate the TcpListener example from the Rust standard library docs.
Using TCP instead of UDP allows us to read directly to a string and read
arbitrary length streams.
Here we just print the stream input to the console.
|
|
Copies the example given at
https://doc.rust-lang.org/std/net/struct.UdpSocket.html to experiment
with receiving and sending data over the socket.
|
|
Rust v1.13.0.
$ cargo init --bin
|