blogjava-凯发k8网页登录
blogjava-凯发k8网页登录http://www.blogjava.net/nokiaguy/category/38517.html假如这个世界上只剩下你一个人,当你正坐在屋子里的时候,这时突然响起了敲门声,那么会是谁呢?zh-cnfri, 09 oct 2009 01:47:00 gmtfri, 09 oct 2009 01:47:00 gmt60- java网络编程从入门到精通(34):读写缓冲区中的数据---使用get和put方法按顺序读写单个数据http://www.blogjava.net/nokiaguy/archive/2009/10/09/297494.html银河使者银河使者fri, 09 oct 2009 01:34:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/10/09/297494.htmlhttp://www.blogjava.net/nokiaguy/comments/297494.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/10/09/297494.html#feedback0http://www.blogjava.net/nokiaguy/comments/commentrss/297494.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/297494.html阅读全文
]]> - java网络编程从入门到精通(33):非阻塞i/o的缓冲区(buffer)http://www.blogjava.net/nokiaguy/archive/2009/08/31/293249.html银河使者银河使者mon, 31 aug 2009 00:49:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/08/31/293249.htmlhttp://www.blogjava.net/nokiaguy/comments/293249.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/08/31/293249.html#feedback0http://www.blogjava.net/nokiaguy/comments/commentrss/293249.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/293249.html阅读全文
]]> - java网络编程从入门到精通(32):一个非阻塞i/o的例子 http://www.blogjava.net/nokiaguy/archive/2009/08/21/292051.html银河使者银河使者fri, 21 aug 2009 01:08:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/08/21/292051.htmlhttp://www.blogjava.net/nokiaguy/comments/292051.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/08/21/292051.html#feedback3http://www.blogjava.net/nokiaguy/comments/commentrss/292051.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/292051.html阅读全文
]]> - java网络编程从入门到精通(31):非阻塞i/o简介http://www.blogjava.net/nokiaguy/archive/2009/08/16/291329.html银河使者银河使者sun, 16 aug 2009 02:46:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/08/16/291329.htmlhttp://www.blogjava.net/nokiaguy/comments/291329.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/08/16/291329.html#feedback1http://www.blogjava.net/nokiaguy/comments/commentrss/291329.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/291329.html阅读全文
]]> - java网络编程从入门到精通(30):定制accept方法http://www.blogjava.net/nokiaguy/archive/2009/08/15/291274.html银河使者银河使者sat, 15 aug 2009 08:57:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/08/15/291274.htmlhttp://www.blogjava.net/nokiaguy/comments/291274.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/08/15/291274.html#feedback4http://www.blogjava.net/nokiaguy/comments/commentrss/291274.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/291274.html阅读全文
]]> - java网络编程从入门到精通(29):服务端socket的选项http://www.blogjava.net/nokiaguy/archive/2009/08/12/290828.html银河使者银河使者wed, 12 aug 2009 06:50:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/08/12/290828.htmlhttp://www.blogjava.net/nokiaguy/comments/290828.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/08/12/290828.html#feedback1http://www.blogjava.net/nokiaguy/comments/commentrss/290828.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/290828.html
1. so_timeout: 设置accept方法的超时时间。
2. so_reuseaddr:设置服务端同一个端口是否可以多次绑定。
3. so_recbuf:设置接收缓冲区的大小。
]]> - java网络编程从入门到精通(28):获取serversocket信息的方法及ftp原理http://www.blogjava.net/nokiaguy/archive/2009/08/12/290820.html银河使者银河使者wed, 12 aug 2009 06:27:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/08/12/290820.htmlhttp://www.blogjava.net/nokiaguy/comments/290820.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/08/12/290820.html#feedback1http://www.blogjava.net/nokiaguy/comments/commentrss/290820.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/290820.html阅读全文
]]> - java网络编程从入门到精通(27):关闭服务端连接http://www.blogjava.net/nokiaguy/archive/2009/08/04/289706.html银河使者银河使者tue, 04 aug 2009 01:26:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/08/04/289706.htmlhttp://www.blogjava.net/nokiaguy/comments/289706.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/08/04/289706.html#feedback3http://www.blogjava.net/nokiaguy/comments/commentrss/289706.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/289706.html阅读全文
]]> - java网络编程从入门到精通(26):在服务端接收和发送数据http://www.blogjava.net/nokiaguy/archive/2009/07/20/287462.html银河使者银河使者mon, 20 jul 2009 05:53:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/07/20/287462.htmlhttp://www.blogjava.net/nokiaguy/comments/287462.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/07/20/287462.html#feedback1http://www.blogjava.net/nokiaguy/comments/commentrss/287462.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/287462.html阅读全文
]]> - java网络编程从入门到精通(25):创建serversocket对象http://www.blogjava.net/nokiaguy/archive/2009/07/12/286472.html银河使者银河使者sun, 12 jul 2009 11:40:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/07/12/286472.htmlhttp://www.blogjava.net/nokiaguy/comments/286472.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/07/12/286472.html#feedback2http://www.blogjava.net/nokiaguy/comments/commentrss/286472.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/286472.htmlpublic serversocket() throws ioexception
public serversocket(int port) throws ioexception
public serversocket(int port, int backlog) throws ioexception
public serversocket(int port, int backlog, inetaddress bindaddr) throws ioexception
在上面的构造方法中涉及到了三个参数:port、backlog和bindaddr。其中port是serversocket对象要绑定的端口,backlog是请求队列的长度,bindaddr是serversocket对象要绑定的ip地址。
]]> - java网络编程从入门到精通(24):实现http断点续传下载工具(附源代码)http://www.blogjava.net/nokiaguy/archive/2009/07/02/285225.html银河使者银河使者thu, 02 jul 2009 10:11:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/07/02/285225.htmlhttp://www.blogjava.net/nokiaguy/comments/285225.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/07/02/285225.html#feedback1http://www.blogjava.net/nokiaguy/comments/commentrss/285225.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/285225.html阅读全文
]]> - java网络编程从入门到精通(23):http消息头字段http://www.blogjava.net/nokiaguy/archive/2009/06/23/283723.html银河使者银河使者tue, 23 jun 2009 05:04:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/06/23/283723.htmlhttp://www.blogjava.net/nokiaguy/comments/283723.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/06/23/283723.html#feedback0http://www.blogjava.net/nokiaguy/comments/commentrss/283723.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/283723.html阅读全文
]]> - java网络编程从入门到精通(22):实现http模拟器http://www.blogjava.net/nokiaguy/archive/2009/06/09/280837.html银河使者银河使者tue, 09 jun 2009 04:16:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/06/09/280837.htmlhttp://www.blogjava.net/nokiaguy/comments/280837.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/06/09/280837.html#feedback11http://www.blogjava.net/nokiaguy/comments/commentrss/280837.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/280837.html
1. 可以手工输入http请求,并向服务器发送。
2. 接收服务器的响应消息。
3. 消息头和实体内容分段显示,也就是说,并不是象telnet等客户端一样将http响
应消息全部显示,而是先显示消息头,然后由用户决定是否显示实体内容。
4. 集中发送请求。这个http模拟器和telnet不同的是,并不是一开始就连接服务器,而是将域名、端口以及http请求消息都输完后,才连接服务器,并将这些请求发送给服务器。这样做的可以预防服务器提前关闭网络连接的现象。
5. 可以循环做上述的操作。
]]> - java网络编程从入门到精通(21):http消息的格式http://www.blogjava.net/nokiaguy/archive/2009/06/08/280688.html银河使者银河使者mon, 08 jun 2009 09:22:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/06/08/280688.htmlhttp://www.blogjava.net/nokiaguy/comments/280688.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/06/08/280688.html#feedback3http://www.blogjava.net/nokiaguy/comments/commentrss/280688.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/280688.html阅读全文
]]> - java网络编程从入门到精通(20):http协议简介http://www.blogjava.net/nokiaguy/archive/2009/06/07/280399.html银河使者银河使者sun, 07 jun 2009 01:38:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/06/07/280399.htmlhttp://www.blogjava.net/nokiaguy/comments/280399.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/06/07/280399.html#feedback2http://www.blogjava.net/nokiaguy/comments/commentrss/280399.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/280399.html阅读全文
]]> - java网络编程从入门到精通(19):套接字(socket)的异常http://www.blogjava.net/nokiaguy/archive/2009/06/02/279500.html银河使者银河使者tue, 02 jun 2009 00:19:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/06/02/279500.htmlhttp://www.blogjava.net/nokiaguy/comments/279500.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/06/02/279500.html#feedback2http://www.blogjava.net/nokiaguy/comments/commentrss/279500.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/279500.html阅读全文
]]> - java网络编程从入门到精通(18):socket类的getter和setter方法(2)http://www.blogjava.net/nokiaguy/archive/2009/06/01/279436.html银河使者银河使者mon, 01 jun 2009 09:31:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/06/01/279436.htmlhttp://www.blogjava.net/nokiaguy/comments/279436.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/06/01/279436.html#feedback0http://www.blogjava.net/nokiaguy/comments/commentrss/279436.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/279436.html阅读全文
]]> - java网络编程从入门到精通(17):socket类的getter和setter方法(1)http://www.blogjava.net/nokiaguy/archive/2009/05/29/278373.html银河使者银河使者fri, 29 may 2009 01:43:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/05/29/278373.htmlhttp://www.blogjava.net/nokiaguy/comments/278373.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/05/29/278373.html#feedback2http://www.blogjava.net/nokiaguy/comments/commentrss/278373.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/278373.html阅读全文
]]> - java网络编程从入门到精通(16):客户端套接字(socket)的超时http://www.blogjava.net/nokiaguy/archive/2009/05/26/277925.html银河使者银河使者tue, 26 may 2009 00:48:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/05/26/277925.htmlhttp://www.blogjava.net/nokiaguy/comments/277925.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/05/26/277925.html#feedback0http://www.blogjava.net/nokiaguy/comments/commentrss/277925.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/277925.html阅读全文
]]> - java网络编程从入门到精通(15):为什么要使用socketaddress来管理网络地址http://www.blogjava.net/nokiaguy/archive/2009/05/22/277225.html银河使者银河使者fri, 22 may 2009 01:02:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/05/22/277225.htmlhttp://www.blogjava.net/nokiaguy/comments/277225.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/05/22/277225.html#feedback0http://www.blogjava.net/nokiaguy/comments/commentrss/277225.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/277225.html阅读全文
]]> - java网络编程从入门到精通(14):多种多样的建立网络连接的方式http://www.blogjava.net/nokiaguy/archive/2009/05/18/271221.html银河使者银河使者mon, 18 may 2009 01:01:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/05/18/271221.htmlhttp://www.blogjava.net/nokiaguy/comments/271221.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/05/18/271221.html#feedback2http://www.blogjava.net/nokiaguy/comments/commentrss/271221.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/271221.html阅读全文
]]> - java网络编程从入门到精通(13):使用socket类接收和发送数据http://www.blogjava.net/nokiaguy/archive/2009/05/14/270549.html银河使者银河使者thu, 14 may 2009 02:21:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/05/14/270549.htmlhttp://www.blogjava.net/nokiaguy/comments/270549.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/05/14/270549.html#feedback3http://www.blogjava.net/nokiaguy/comments/commentrss/270549.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/270549.html阅读全文
]]> - java网络编程从入门到精通(12):使用isreachable方法探测主机是否可以连通http://www.blogjava.net/nokiaguy/archive/2009/05/08/269521.html银河使者银河使者fri, 08 may 2009 01:00:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/05/08/269521.htmlhttp://www.blogjava.net/nokiaguy/comments/269521.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/05/08/269521.html#feedback0http://www.blogjava.net/nokiaguy/comments/commentrss/269521.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/269521.html阅读全文
]]> - java网络编程从入门到精通(11):使用networkinterface类获得网络接口信息http://www.blogjava.net/nokiaguy/archive/2009/05/08/269518.html银河使者银河使者fri, 08 may 2009 00:53:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/05/08/269518.htmlhttp://www.blogjava.net/nokiaguy/comments/269518.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/05/08/269518.html#feedback7http://www.blogjava.net/nokiaguy/comments/commentrss/269518.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/269518.html阅读全文
]]> - java网络编程从入门到精通(10):inet4address类和inet6address类http://www.blogjava.net/nokiaguy/archive/2009/05/04/268874.html银河使者银河使者mon, 04 may 2009 11:13:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/05/04/268874.htmlhttp://www.blogjava.net/nokiaguy/comments/268874.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/05/04/268874.html#feedback0http://www.blogjava.net/nokiaguy/comments/commentrss/268874.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/268874.html阅读全文
]]> - java网络编程从入门到精通 (9):使用isxxx方法判断地址类型http://www.blogjava.net/nokiaguy/archive/2009/04/26/267589.html银河使者银河使者sun, 26 apr 2009 10:07:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/04/26/267589.htmlhttp://www.blogjava.net/nokiaguy/comments/267589.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/04/26/267589.html#feedback2http://www.blogjava.net/nokiaguy/comments/commentrss/267589.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/267589.html阅读全文
]]> - java网络编程从入门到精通(8):用getaddress方法获得ip地址http://www.blogjava.net/nokiaguy/archive/2009/04/21/266732.html银河使者银河使者tue, 21 apr 2009 04:41:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/04/21/266732.htmlhttp://www.blogjava.net/nokiaguy/comments/266732.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/04/21/266732.html#feedback0http://www.blogjava.net/nokiaguy/comments/commentrss/266732.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/266732.html阅读全文
]]> - java网络编程从入门到精通(7):用gethostaddress方法获得ip地址http://www.blogjava.net/nokiaguy/archive/2009/04/21/266730.html银河使者银河使者tue, 21 apr 2009 04:33:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/04/21/266730.htmlhttp://www.blogjava.net/nokiaguy/comments/266730.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/04/21/266730.html#feedback0http://www.blogjava.net/nokiaguy/comments/commentrss/266730.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/266730.html阅读全文
]]> - java网络编程从入门到精通(6):使用getcanonicalhostname方法获得主机名http://www.blogjava.net/nokiaguy/archive/2009/04/14/265404.html银河使者银河使者tue, 14 apr 2009 00:56:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/04/14/265404.htmlhttp://www.blogjava.net/nokiaguy/comments/265404.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/04/14/265404.html#feedback0http://www.blogjava.net/nokiaguy/comments/commentrss/265404.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/265404.html
]]> - java网络编程从入门到精通(5):使用inetaddress类的gethostname方法获得域名http://www.blogjava.net/nokiaguy/archive/2009/04/14/265400.html银河使者银河使者tue, 14 apr 2009 00:42:00 gmthttp://www.blogjava.net/nokiaguy/archive/2009/04/14/265400.htmlhttp://www.blogjava.net/nokiaguy/comments/265400.htmlhttp://www.blogjava.net/nokiaguy/archive/2009/04/14/265400.html#feedback0http://www.blogjava.net/nokiaguy/comments/commentrss/265400.htmlhttp://www.blogjava.net/nokiaguy/services/trackbacks/265400.html
]]>