NmeaTcpServer Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A TCP Server bidirectional sink and source. Provides NMEA sentences to each connected client.
public class NmeaTcpServer : Iot.Device.Nmea0183.NmeaSinkAndSource
type NmeaTcpServer = class
inherit NmeaSinkAndSource
Public Class NmeaTcpServer
Inherits NmeaSinkAndSource
- Inheritance
Using this class in applications targeting .NET core 3.1 or earlier may cause deadlocks when closing the connection. It is recommended to target .NET 6.0 or above when using this class.
Nmea |
Creates a server with the given source name bound to the given local IP and port. This will not open the server yet. Use StartDecode() to open the network port. |
Nmea |
Creates a server with the given source name. The default network port is 10110. |
Interface |
Name of the interface (Inherited from NmeaSinkAndSource) |
Dispatch |
Forwards the given sentence to listeners, as needed. Use the current instance as source. (Inherited from NmeaSinkAndSource) |
Dispatch |
Forwards the given sentence to listeners, as needed. (Inherited from NmeaSinkAndSource) |
Dispose() |
Standard dispose method (Inherited from NmeaSinkAndSource) |
Dispose(Boolean) |
Dispose this instance (Inherited from NmeaSinkAndSource) |
Fire |
Fire an event informing about parser errors (Inherited from NmeaSinkAndSource) |
Send |
Send the given sentence to the interface. (Inherited from NmeaSinkAndSource) |
Send |
Sends the sentence to all our clients. If it is needed to make distinctions for what needs to be sent to which client, create multiple server instances. This will allow for proper filtering. |
Send |
Sends a list of messages at once (Inherited from NmeaSinkAndSource) |
Start |
Starts a network server with the settings provided by the constructor. |
Stop |
Stops sending or receiving messages from and to this interface. Any pending messages are discarded. |
On |
This is fired when a new position is available (Inherited from NmeaSinkAndSource) |
On |
This is fired on every new sentence (Inherited from NmeaSinkAndSource) |
On |
This is fired when the time is updated (Inherited from NmeaSinkAndSource) |
On |
This is fired when a message couldn't be parsed (Inherited from NmeaSinkAndSource) |
ผลิตภัณฑ์ | เวอร์ชัน |
---|---|
.NET IoT Libraries | 2.1.0, 2.2.0 |