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); } }
public PacketBuilder(Client client) { _Client = client; }
public PacketProcessor(Client client) { _Client = client; }
public Client() { Instance = this; PakProcessor = new PacketProcessor(this); PakSender = new PacketBuilder(this); }
public OnCallbackReceivedEventArgs(Server server, Client client, string callbackname, DataStream data) { _Server = server; _Client = client; CallbackName = callbackname; Data = data; }
public OnPacketSentEventArgs(Server server, Client client, Packet pak) { _Server = server; _Client = client; Pak = pak; }
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; }
public NativeFunctionRequestor(Client client) { _Client = client; }