Input Output steams

0 Alex Sweps · October 12, 2014
Does anybody have any experience with javas networking libraries?  

I am creating a client server program and cannot get it to setup the input stream. It sets up the output stream but will not go any further when it gets to the input stream. Connecting to it from telnet gets me up to the input initialization and no further.

private void setupStreams() throws IOException{
System.out.println("Stream setup start");
output = new ObjectOutputStream(connection.getOutputStream());
input = new ObjectInputStream(connection.getInputStream()); //This is where it stops...
showMessage("\nSocket streams setup successfully");
System.out.println("Stream setup end");

Post a Reply


Oldest  Newest  Rating
0 Alex Sweps · October 12, 2014
Never mind I figured it out. Telnet doesn't send java the info its expecting. I created a client in java and now it works :D
  • 1

Java / Android Development


Very popular language used to create desktop applications, website applets, and Android apps.

Bucky Roberts Administrator