DOC

java socket c++

By Sandra Nelson,2014-03-20 19:50
12 views 0
java socket c++

socket = new Socket(";ip";, port);

     in = new BufferedReader(new InputStreamReader(socket

     .getInputStream()));

     out = new PrintWriter(socket.getOutputStream(), true);

     //æ•?æ??包é•?åº? 89

     char[] pkgLen = getChar(8);

     pkgLen[0] ='8';

     pkgLen[1] ='9';

     //è??æ?‚ç??åž‹ 0

     char[] requestType = getChar(4);

     requestType[0]='0';

     //é”?è??ä??ç • 0000

     char[] errorCode = getChar(4);

     errorCode[0]='0';

     errorCode[1]='0';

     errorCode[2]='0';

     errorCode[3]='0';

     //è??æ?‚ç??åž‹ 0

     char[] queryType = getChar(1);

     queryType[0]='0';

     //æŸ?è??æ??ä??

     char[] queryCondi =getChar(64);

     //è?”回è??å?•æ•?

     char[] rsponseCount = getChar(8);

     rsponseCount[0]='1';

     rsponseCount[1]='0';

     rsponseCount[2]='0';

Report this document

For any questions or suggestions please email
cust-service@docsford.com