Solved
Printable View
Solved
Besides the fact that main is throwing exceptions instead of just placing the code inside of the try/catch block that you already have, it's not bad. Yeah, you have it: that is the basics of socket connections. Create an input stream, an output stream and go. I personally use the ObjectOutputStream and ObjectInputStream when I do socket implementations, but that's just me.
Have you tried to run it? What do you get?
When I run it nothing happens, so I'm confused... not sure what the problem could be. >.<
I'm suppose to get a String returned from the server, not sure if it is a coding error on my end, or if the Server isn't sending it to me. When I send the new line character, I should be replied with the current time. What do you suggest?
Try reading the input stream until the end of stream is reached. When I ran your code the input stream contained a blank line before the data line.
When you've made as many mistakes as I have you get good at correcting them. :)Quote:
You catch these little things really well.
My pleasure.Quote:
Thank you so much Keang