コード例 #1
0
        static void Main(string[] args)
        {
            Log l = new Log("DotnetClient", true);
            Log.Message(Name + " " + Version);
            Log.Message(Website);

            Client.Client client = new Client.Client();
            Server server = new Server();
            while (true)
            {
                if (!server.IsConnected)
                {
                    client.Connect(server);
                    System.Threading.Thread.Sleep(1000);
                    if (!server.IsAuthenticated) client.Disconnect(server);
                    else API.APIMain.Init();
                }
                System.Threading.Thread.Sleep(1000);
				//client.PakSender.SendTest(server);
            }
        }
コード例 #2
0
 public PacketBuilder(Client client)
 {
     _Client = client;
 }
コード例 #3
0
 public PacketProcessor(Client client)
 {
     _Client = client;
 }
コード例 #4
0
 public Client()
 {
     Instance = this;
     PakProcessor = new PacketProcessor(this);
     PakSender = new PacketBuilder(this);
 }
コード例 #5
0
 public OnCallbackReceivedEventArgs(Server server, Client client, string callbackname, DataStream data)
 {
     _Server = server;
     _Client = client;
     CallbackName = callbackname;
     Data = data;
 }
コード例 #6
0
 public OnPacketSentEventArgs(Server server, Client client, Packet pak)
 {
     _Server = server;
     _Client = client;
     Pak = pak;
 }
コード例 #7
0
 public OnFunctionRequestReceivedEventArgs(Server server, Client client, string funcname, string callbackname, string paramtypes, Object[] args)
 {
     Server = server;
     Client = client;
     FunctionName = funcname;
     CallbackName = callbackname;
     Paramtypes = paramtypes;
     Args = args;
 }
コード例 #8
0
 public NativeFunctionRequestor(Client client)
 {
     _Client = client;
 }