Update ntrip.md

This commit is contained in:
Morten Nielsen 2020-01-28 22:42:32 -08:00 committed by GitHub
parent 768f39df69
commit a42b47fc63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,11 +60,14 @@ namespace Ntrip
private readonly int _port;
private string _auth;
private Socket sckt;
public Client(string host, int port, string authKey = null)
public Client(string host, int port)
{
_host = host;
_port = port;
_auth = authKey;
}
public Client(string host, int port, string username, string password) : this(host, port)
{
_auth = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(username + ":" + password));
}
public IEnumerable<NtripSource> GetSourceTable()
{