java聯(lián)網(wǎng)斗地主源代碼
這是紙牌游戲斗地主,算法完整,可以單機(jī),網(wǎng)絡(luò)連線玩.-This is the card game that point, the algorithm integrity, a stand-alone, playing to CONNECT to the network.
Start it with this document[13 pages only] if you want to develop some good web application using Java instead of reading large books.
This document prepared by myself. Clearly explains what is JDBC. and how you can CONNECT to a particular database through JSP and Servlets. Examples are given.
Copy the code into your your JSP directory under /usr/local/etc/httpd/htdocs/html/LOGIN. You will need to change the xxxxxx of "con=DriverManager.getCONNECTion["jdbc:mysql://localhost/"+db,user,"xxxxxxx"] " to reflect your MySQL password. Copy the HTML form above to the same directory above or to your public_html directory and use it CONNECT to your database via the JSP code. Replace the test418 with your database name and the URL with your JSP URL.
client socket
include <sys/types.h>
include <sys/socket.h>
include <stdio.h>
include <netinet/in.h>
include <arpa/inet.h>
include <unistd.h>
int main()
{
int sockfd
int len
struct sockaddr_in address
int result
char ch = A
sockfd = socket(AF_INET, SOCK_STREAM, 0)
address.sin_family = AF_INET
address.sin_addr.s_addr = inet_addr("127.0.0.1")
address.sin_port = 9734
len = sizeof(address)
result = CONNECT(sockfd, (struct sockaddr *)&address, len)
if(result == -1) {
perror("oops: client")
exit(1)
}
write(sockfd, &ch, 1)
read(sockfd, &ch, 1)
printf("char from server = c\n", ch)
close(sockfd)
exit(0)
}
* 1. Run the Advanced Evaluation Board (AEB) Control software program
* (Start>AudioCodes IPM-260 SDK>).
* 2. CONNECT the Evaluation Board s E1 CONNECTor to the IPM-260 s first E1
* interface (E1 - 0), using the supplied cross CONNECT E1 cable,
* according to the following scheme
While faster processors, larger memory, and powerful graphics are fundamental requirements for workstations, users
are also demanding a low-cost, solution-based approach wrapped around a standards-based technology. The Sun UltraTM
20 Workstation, which leverages the AMD OpteronTM processor with Direct CONNECT Architecture based on AMD64
technology, provides multiple operating system choices and leading nVidia graphics, delivers a platform that offers
flexibility and performance in a cost-effective package with solutions to benefit customers across the board.
The book uses a task-oriented structure that allows you to work through the steps necessary to install
MySQL 4.1 on Linux and Windows platforms, create and manage MySQL databases, query and manipulate
data stored in those databases, administer the MySQL database management system, and CONNECT to
MySQL databases from your PHP, JSP/Java, and ASP.NET/C# applications.
The next section, which describes the book’s structure, provides additional details about the specifics of
what the book covers.