It is currently February 20th, 2020, 5:19 pm

Need help with creating a plugin

Share and get help with Plugins and Addons
User avatar
Altairka
Posts: 1
Joined: March 11th, 2016, 6:51 pm

Need help with creating a plugin

Post by Altairka »

Hi. I need to create a plugin with next c# code:

Code: Select all

byte[] bytes = new byte[1024];

            IPEndPoint ipEndPoint = new IPEndPoint(IPAddress.Parse(IP), Port);

            Socket Sender = new Socket(IPAddress.Parse(IP).AddressFamily, SocketType.Stream, ProtocolType.Tcp);

            try
            {
                Sender.Connect(ipEndPoint);

                byte[] msg = Encoding.UTF8.GetBytes(message);

                int bytesSend = Sender.Send(msg);

                int bytesRec = Sender.Receive(bytes);

                string receive = Encoding.UTF8.GetString(bytes, 0, bytesRec);

                return receive;

            }
            catch (Exception ex)
            {
                return null;
            }
But i don't understand rainmeter documentation about it. Can you help me?