locked Re: Decoding UDP messages from WSJT-X


Bill Somerville
 

On 23/12/2019 14:25, UR5FCM Kii wrote:
private void Send(byte[] bytes)
        {

            sender = new UdpClient();


            IPEndPoint endPoint = new IPEndPoint(remoteIPAddress,localPort);

            try
            {

                sender.Send(bytes, bytes.Length, endPoint);
            }
            catch (Exception ex)
            {

            }
            finally
            {

                sender.Close();
            }
        }
OM,

it is not necessary to create a new socket for every send. What are remoteIPAddress and localPort, specifically localPort sounds wrong, you must send replies to the sender address and port discovered from a previous message *from* a WSJT-X instance.

73
Bill
G4WJS.

Join main@WSJTX.groups.io to automatically receive all group messages.