Are you able to write a Bash script that will download an HTTP resource from the web?
The inputs are:
$hostname
$port
$path
$output
You can't:
use external commands other than telnet (no sed, no awk, no wget, ...)
use other shells
You can:
use /dev/tcp pseudo devices
use telnet
Your MUST pass this test (you can cha...
Let's assume I want to send many messages between 2 programs made in java that use TCP sockets.
I think the most convienient way is to send objects like:
PrintStream ps = new PrintStream(s.getOutputStream());
ObjectOutputStream oos = new ObjectOutputStream(ps);
some_kind_of_object_here;
oos.writeObject(some_kind_of_object_here);...
I am using Objective-C and Java for this, but I think the question is language-neutral.
I have an iOS client that talks to a Java server over TCP/IP. Right now I need to tell at least one of the parties the IP address of the other. Is there a standard way that I can "discover" IP addresses (from one side or the other)?
Also, how would...