I need your help about Socket.
Hi, I have a problem about socket. I'm using this source:
inStream = new BufferedReader(new InputStreamReader(connection.getInputStream()));
Re: I need your help about Socket.
Make sure the other end of Socket is flushing the Characters after you write
character to the Outputstream...
The InputStream can only receive the data only when the output is sent..from
the connected socket.. and since you are using Buffered Systems.. it hangs
on for the other end...
"claudio" <firstname.lastname@example.org> wrote:
>Hi, I have a problem about socket. I'm using this source:
>inStream = new BufferedReader(new InputStreamReader(connection.getInputStream()));
>System.out.println(inStream.readLine()); /*it stops here, it's waiting for
>system.out.println("prova"); // this isn't execute.
>How can i read a line from socket and go on with next step?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL