zsh_root
2024-01-02 7b595546af704983dbafcd0d385c8768ddacefc2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package jiekou;
import BaoWen.Udp_Out;
import Method.BaoWenShow;
import Netty.SendMessageToClient;
import VectroData.ForwardDatas;
import tcp.TcpClientOneToMany;
 
public class Gas_jiaozhun {    
    public static void zhuanfa_jiaozhun(String messgae,String tagid) {
        BaoWenShow.showbaowen4("debug",messgae, tagid);//ÏÔʾµ÷ÊÔÊý¾Ý
        SendMessageToClient.send(messgae.getBytes(),"127.0.0.1");//TCPת·¢Ð£×¼Êý¾Ý
        if(ForwardDatas .isHavezhuanfa()) {//Èç¹û´æÔÚÐèҪת·¢µÄÊý¾Ý            
            if(ForwardDatas.get_mou_tb_forword("UDP", "È«²¿Êý¾Ý").size() !=0) {//Èç¹û´æÔÚÈ«²¿×ª·¢Êý¾Ý
                Udp_Out.udp_out(messgae.getBytes(), messgae.length(),"È«²¿Êý¾Ý");
                BaoWenShow.show(messgae, "UDPת·¢",tagid);//ÏÔʾUDPת·¢µÄÊý¾Ý
            }else {
                Udp_Out.udp_out(messgae.getBytes(), messgae.length(),"λÖÃÊý¾Ý");
                BaoWenShow.show(messgae, "UDPת·¢",tagid);//ÏÔʾUDPת·¢µÄÊý¾Ý
            }
 
            if((ForwardDatas.have_tcp("λÖÃÊý¾Ý") || ForwardDatas.have_tcp("È«²¿Êý¾Ý"))) {
                TcpClientOneToMany.send(messgae);
                BaoWenShow.show(messgae, "TCPת·¢",tagid);//ÏÔʾUDPת·¢µÄÊý¾Ý
            }
        }
    }
}