Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - tcp server client java
Search - tcp server client java - List
服务器与客户间通过套接口Socket(TCP)连接。在java中使用套接口相当简单,Java API为处理套接口的通信提供了一个类java.net.Socket.,使得编写网络应用程序相对容易.服务器采用多线程以满足多用户的请求,通过JDBC与后台数据库连接,并通过创建一个ServerSocket对象来监听来自客户的连接请求,默认端口为8080,然后无限循环调用accept()方法接受客户程序的连接-server and client presentation by Socket Interface (TCP) connections. Java use in presentation interface is quite simple, Java API sets to address the communications interface provides a type java.net.Socket. , Making the preparation of network applications relatively easily. Multi-threaded servers to meet the multi-user request, through JDBC and background database connections, and through the creation of a ServerSocket object from the client to monitor the connection request, the default port of 8080, then infinite loops call accept () method to accept client connections
Date : 2008-10-13 Size : 881.83kb User : 周海波
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.