// Create OutGauge object with the specified timeout.
using (OutGauge outgauge = new OutGauge(timeout)) {
// Attach event handler to packet-received event.
outgauge.PacketReceived += outgauge_PacketReceived;
outgauge.TimedOut += outgauge_TimedOut;
// Start listening for packets from LFS.
outgauge.Connect("127.0.0.1", 30000);
// Stop program from exiting while listening.
Console.ReadLine();
}
// Create OutGauge object with the specified timeout.
OutGauge outgauge = new OutGauge(timeout)
// Attach event handler to packet-received event.
outgauge.PacketReceived += outgauge_PacketReceived;
outgauge.TimedOut += outgauge_TimedOut;
// Start listening for packets from LFS.
outgauge.Connect("127.0.0.1", 30000);
// Stop program from exiting while listening.
Console.ReadLine();