package jiekou; import BaoWen.Udp_Out; import Method.BaoWenShow; import VectroData.ForwardDatas; import tcp.TcpClientOneToMany; public class Tongji { public static void zhuanfa(String messgae,String tagid) { if(ForwardDatas .isHavezhuanfa()) {//Èç¹û´æÔÚÐèҪת·¢µÄÊý¾Ý if(ForwardDatas.get_mou_tb_forword("UDP", "È«²¿Êý¾Ý").size() !=0) {//Èç¹û´æÔÚÈ«²¿×ª·¢Êý¾Ý Udp_Out.udp_out(messgae.getBytes(), messgae.getBytes().length,"È«²¿Êý¾Ý"); BaoWenShow.show(messgae, "UDPת·¢",tagid);//ÏÔʾUDPת·¢µÄÊý¾Ý }else { Udp_Out.udp_out(messgae.getBytes(), messgae.getBytes().length,"ͳ¼ÆÊý¾Ý"); BaoWenShow.show(messgae, "UDPת·¢",tagid);//ÏÔʾUDPת·¢µÄÊý¾Ý } if((ForwardDatas.have_tcp("È«²¿Êý¾Ý") || ForwardDatas.have_tcp("ͳ¼ÆÊý¾Ý"))) { TcpClientOneToMany.send(messgae); BaoWenShow.show(messgae, "TCPת·¢",tagid); } } } }