public BListController(Socketserver server, string world) { protzones = new Protectionzones(false); this.server = server; parser = new XMLParser(); hitList = new ArrayList(); healList = new ArrayList(); strTop300 = getTop300(world); updateEnemys(); timerPickTarget.Elapsed += new ElapsedEventHandler(run); timerPickTarget.Interval = 1000; timerPickTarget.Start(); timerSendRadar.Elapsed += new ElapsedEventHandler(sendRadar); timerSendRadar.Interval = 1000; timerSendRadar.Start(); timerUpdateTargets.Elapsed += new ElapsedEventHandler(updateTargets); timerUpdateTargets.Interval = 100; timerUpdateTargets.Start(); timerUpdateManashield.Elapsed += new ElapsedEventHandler(updateManashield); timerUpdateManashield.Interval = 100; timerUpdateManashield.Start(); }
private void ButStartList_Click(object sender, MouseEventArgs e) { if (!started) { Log = "\n\n\n\n\n"; if (CBworld.SelectedItem != null) { world = (string)CBworld.SelectedItem; } ButStartList.Text = "Stop Listening"; server = new Socketserver((int)nuPort.Value, this); server.connect(); started = true; } else { Log = "\n"; ButStartList.Text = "Start Listening"; server.CloseSockets(); started = false; } }
public SocketPacket(int PintDatalength, Socketserver Pserver, Protocol protocol, int socketworkerid) { this.protocol = protocol; this.intDataLength = PintDatalength; this.intClientID = -1; this.server = Pserver; this.socketworkerid = socketworkerid; BAdatabuffer = new byte[intDataLength]; CABuffer = new Char[intDataLength]; strBuffer = ""; }