MySQL stored procedures
Created 17/02-2012 by Michael Bornholdt Nielsen
Java Socket programming

How can I read a binary file from a socket input stream which includes textual headers?

Read binary data from a socket

A Web Server in 150 Lines

Java Network Programming, 2nd Edition

How do I recognize EOF in Java Sockets?

Creating a simple java web server

Network programming in Java

 

BufferedReader in =new BufferedReader(
                          new InputStreamReader( Connection.getInputStream() ) );
String s=null;
while ( (s=in.readLine()) != null)  {
//Read HTTP header
     if (s.isEmpty()) break;//No more headers
   }
}

Tags : Java
Created 01/02-2012 by Michael Bornholdt Nielsen
Java Tips
Tags : Java
Created 30/01-2012 by Michael Bornholdt Nielsen
first page - previous page - next page
About
This site is used as a place to dump my ideas, links and other stuff I normaly forget.

Made by Michael Bornholdt Nielsen => Jarry.dk