UDP listener
For a list of all members of this type, see UdpLstn Members.
System.Object
serial.UdpLstn
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
Listenes on a UDP port and sends the incoming bytes to a delefate.
[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.");
}
}
Namespace: serial
Assembly: map (in map.exe)
UdpLstn Members | serial Namespace