兴趣是坚持一件事永不衰竭的动力
发布时间:2015-11-19 00:04:01
package com.ddChat.dao;import java.sql.Connection;import java.sql.PreparedStatement;import java.sql.ResultSet;import com.ddChat.model.UserInfoModel;public class UserInfoDao{public UserInfoDao(){}public int userInfoAdd(Connection con,UserInfoModel userInfo) throws Exception .........【阅读全文】
发布时间:2015-11-19 00:02:48
package com.ddChat.dao;import java.sql.Connection;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException;import com.ddChat.model.User;public class UserDao{ private User user; /** * 登录验证 .........【阅读全文】
发布时间:2015-11-19 00:00:55
package com.ddChat.utils;import java.sql.Connection;import java.sql.DriverManager;public class DbUtil{ public DbUtil() { super(); // TODO Auto-generated constructor stub }&n.........【阅读全文】
发布时间:2015-11-18 23:58:00
package com.test.view;import java.net.*;import java.io.*;public class ChatSocket{private ChatJFrame chatframe; // 聊天室的图形用户界面private Socket client; // 客户端Socket对象public ChatSocket(String host, int port, String name) // 主机名、端口号、网名{try{client = new Socket(host,.........【阅读全文】
发布时间:2015-11-18 23:55:13
package com.test.view;import java.net.*;import java.io.*;public class ChatServerSocket{private ChatJFrame chatframe; // 聊天室的图形用户界面private ServerSocket server; // 提供TCP连接服务的ServerSocket对象private Socket client; // 与客户端通信的Socket对象public ChatServerSocket(int por.........【阅读全文】