日期:2014-05-20 浏览次数:20827 次
D_port_Calc_The_CustomerSysFuctionUserRightsCode cjco = new D_port_Calc_The_CustomerSysFuctionUserRightsCode();
String MyCustomerServiceOrdernum = cjco.getMyUserRights(MyUserRights);
System.out.println(MyCustomerServiceOrdernum);
SocketClient so = new SocketClient(MyObjIP,5555);
String mycustomerordernum = "6丗6丗"+"ok"+"丠"+"Cus"+"丠"+"99999999"+"丠"+"IneedOrders丮9" +"丗"+"D";
System.out.println("I'm Working on my task");
System.out.println("加油!!加油!!"+mycustomerordernum);
so.writeStr(mycustomerordernum, "ManageOurAuthorizeRightsConfirmCode");
so.getMyResourceBack();
SocketClient so = new SocketClient(MyObjIP,5555);
String str8 = "6丗6丗"+"SportNeedOrders"+"丠"+"Cus"+"丠"+"99999999"+"丠"+"IneedOrders丮9" +"丗"+"D";
so.writeStr(str8,"GetOurbrandServiceWorkValue");
so.getMyResourceBack();
System.out.println("加油!!加油!!"+str8);
System.out.println("OKay!!I'm Working on My task");
package d_port_package;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.Socket;
public class SocketClient {
public Socket getS() {
return s;
}
public void setS(Socket s) {
this.s = s;
}
private Socket s;
private InputStream in;
private OutputStream out;
private BufferedInputStream inByte;
private OutputStream outByte;
private BufferedReader inStr;
private PrintWriter outStr;
private long size = 0;
public SocketClient(String ip, int port) {
try {
s = new Socket(ip, port);
in = s.getInputStream();
out = s.getOutputStream();
inByte = new BufferedInputStream(in);
outByte = out;
inStr = new BufferedReader(new InputStreamReader(in));
outStr = new PrintWriter(new OutputStreamWriter(out));
} catch (Exception e) {
e.printStackTrace();