Complete client request processing D--- Serverthread

xiaoxiao2021-03-06  44

Import java.io.bufferedreader; import java.ioException; import java.io.printwriter; import java.sql.sqlexception;

Import util. *; / * * @Author zhang * complete client request processing * * / public class serverThread Extends thread {private factory int error = 0; // Query error private final int n_valide = 1; // ignored private final int VALIDE = 2; // lawful private angent angent; private PrintWriter out; private String userId; private String password; private ChatProtocol cp; public ServerThread (angent aangent) {angent = aangent; userId = angent.getUserId (); // Get the user's account password password = Angent.getPassword (); cp = new chatprotocol (angent); // build a protocol object based on chat content}

Public void Run () {INT i = isvalid (); out.println (i); / * Send verification information to the client * / if (i

转载请注明原文地址:https://www.9cbs.com/read-79364.html

New Post(0)