I Wrote A Server!

It is about 3am right now, and I just finished writing a server!

JAVA is freaking amazing!!! Literally 8 lines of code to create a server that makes a connection to a client, and sets up read/write buffers. I threw in a little loop and turned it into an echo server. So, any data the client sends the server gets sent right back.

In order to test this I had to write a client, which took 6 lines of code to write. And an additional while loop to capture user input and send it to the server, then to read what the server sent back (which was the original message).

I wish people were up right now, I’d get them to test it out for me, to see if it works over the internet. Right now its just doing it back and forth right on my pc through localhost.

There is no place like 127.0.0.1

Leave a Reply

%d bloggers like this: