RSS feed [root] /network /weblog /java



title search:


Mon Apr 06 21:51:03 HKT 2020


(google search) (amazon search)
download zip of files only

Mon Apr 06 21:51:19 HKT 2020 From /weblog/java/network


(google search) (amazon search)

Mon Jun 16 17:21:07 HKT 2014 From /weblog/java/network


Some advance usage of javamail and apache james smtp server... but I guess not much ppl will use this server, right? -[..]ment_variable_envelope_return_paths.html

Code sample of using auth required SMTP server -

Properties to prevent infinite timeout for all socket operations, in Java mail -[..]vamail-can-be-evil-and-force-you-to.html

(google search) (amazon search)

Wed Dec 04 19:27:37 HKT 2013 From /weblog/java/network


Guide of how to start and config jetty dynamic at code - , even change the config after the server started.

Websocket coding sample -[..]java-websockets-jsr-356-on-jetty-91.html

(google search) (amazon search)

Thu Nov 28 09:25:38 HKT 2013 From /weblog/java/network


Sockets Direct Protocol – Write Once, Run Everywhere …. and Run (Some Places) Blazingly -

(google search) (amazon search)

Fri Aug 31 09:57:58 HKT 2007 From /weblog/java/network

problem of host lookup

Prevent java to resort "c:/" -[..]05/12/22/flaky_file_urls_jdk_1_4_windows

DNS caching explain, in Java6, When a security manager is not set, the default behavior is to cache for 30 seconds. -

(google search) (amazon search)

Wed Jun 13 23:17:09 HKT 2007 From /weblog/java/network

Disassembling serializable object

Example of how to disassembling object get from RMI -[..]nus/archive/2007/06/disassembling_s.html

(google search) (amazon search)

Thu Mar 29 18:18:37 HKT 2007 From /weblog/java/network


2 nice blog about create and unit test custom IO stream -

(google search) (amazon search)

Tue Oct 31 17:16:31 HKT 2006 From /weblog/java/network

low level tomcat io

If you really stick to tomcat, then it might be useful for you

(google search) (amazon search)

Thu Oct 12 17:08:54 HKT 2006 From /weblog/java/network

post at java code

Optimizing HTTP downloads in Java through conditional GET and compressed streams


URL url = new URL(BASE_URL);
URLConnection con = url.openConnection();
// inform the connection that we will send output and accept input

// Don't use a cached version of URL connection.
con.setUseCaches (false);
con.setDefaultUseCaches (false);
con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
// define a new PrintWriter on the output stream
PrintWriter outWriter = new PrintWriter(con.getOutputStream());

// send data to the servlet

InputStream input = con.getInputStream();

(google search) (amazon search)

Tue Jul 25 19:50:13 HKT 2006 From /weblog/java/network

Setting user agents

(google search) (amazon search)

Wed Jan 04 17:10:06 HKT 2006 From /weblog/java/network

how to write jini service

(google search) (amazon search)

Tue Nov 01 18:58:33 HKT 2005 From /weblog/java/network

Setting up javamail with strict SSL relay servers

Short tutorial of how to enforce SSL with javamail[..]wn?entry=setting_up_javamail_with_strict

(google search) (amazon search)