Serial port and GPS

UdpLstn Class

UDP listener

For a list of all members of this type, see UdpLstn Members.

System.Object
   serial.UdpLstn

[Visual Basic]
Public Class UdpLstn
[C#]
public class UdpLstn

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Listenes on a UDP port and sends the incoming bytes to a delefate.

Example

[C#]

            using System;
            using System.Text;
            using serial;
            public class Test {
            private static void lstnfkt(byte[] b) {
            Console.WriteLine("Received {0}", Encoding.ASCII.GetString(b));
            }
            public static void Main() {
            UdpLstn udp;
            udp = new UdpLstn(Test.lstnfkt);
            udp.start(1234);
            Console.WriteLine("Started. Hit ENTER to break.");
            Console.ReadLine();
            udp.stop();
            Console.WriteLine("Finished.");
            }
            }
            

Requirements

Namespace: serial

Assembly: map (in map.exe)

See Also

UdpLstn Members | serial Namespace