CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - how to establish socket connention through java in
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - how to establish socket connention through java in - List
[
JSP/Java
]
chengxu
DL : 0
服务器与客户间通过套接口Socket(TCP)连接。在java中使用套接口相当简单,Java API为处理套接口的通信提供了一个类java.net.Socket.,使得编写网络应用程序相对容易.服务器采用多线程以满足多用户的请求,通过JDBC与后台数据库连接,并通过创建一个ServerSocket对象来监听来自客户的连接请求,默认端口为8080,然后无限循环调用accept()方法接受客户程序的连接-Between server and client through the socket Socket (TCP) connection. In java using a very simple set of interfaces, Java API to handle socket communications category provides a java.net.Socket., Makes the preparation of web applications is relatively easy. Server used to meet the needs of multi-threaded multi-user request, through the JDBC database connection with the background and, through the creation of a ServerSocket object to monitor connection requests from clients, the default port is 8080, and then infinite loop calling accept () method to accept client connection
Update
: 2025-03-15
Size
: 161kb
Publisher
:
达瓦
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.