using System.Net.Sockets; using System.Text; namespace iMonitorApp { // Token: 0x02000009 RID: 9 public class SocketClient { // Token: 0x06000043 RID: 67 RVA: 0x0000324C File Offset: 0x0000144C public static void Send(string ip, int port, string text) { bool flag = !text.Contains(""); if (flag) { text += ""; } Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); socket.Connect(ip, port); byte[] bytes = Encoding.ASCII.GetBytes(text); int num = socket.Send(bytes); socket.Shutdown(SocketShutdown.Both); socket.Close(); } } }