/// <summary> /// Queries server to see if it is online /// </summary> /// <returns>A string response if online</returns> private string PollServer() { // LOG _log.Info(string.Format("Polling [{0}] on port [{1}]", Properties.Settings.Default.strSpynServ, SharpToolsTCPSocketServer.STSS_PORT)); // return(SharpToolsTCPSocketClient.StartClient("POLL", Properties.Settings.Default.strSpynServ, SharpToolsTCPSocketServer.STSS_PORT)); }
private void btnPoll_Click(object sender, EventArgs e) { //string serverIP = "localhost"; //string message = "Hello"; //Connect(serverIP, message); //EventLog.WriteEntry(elgSpynSvr.Log, "B1 Biches", EventLogEntryType.Information); SharpToolsTCPSocketClient.StartClient("POLL", "10.0.0.1", SharpToolsTCPSocketServer.STSS_PORT); }
private void btnTestRequest_Click(object sender, EventArgs e) { SharpToolsTCPSocketClient.StartClient(txtTestRequest.Text, "DPPCS", SharpToolsTCPSocketServer.STSS_PORT); }