9swampy / Telnet

Published on Nuget at https://www.nuget.org/packages/Telnet

Home Page:http://www.nugetmusthaves.com/Package/Telnet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update function TryLoginAsync with Regex terminator string

crazy9x256 opened this issue · comments

Hi team,
I am using Telnet for login to multi vendor device, each vendor has one generic terminator string, default value terminator is ">". So Client.TryLoginAsync return fail with terminator start with "#".
Thanks you ./

TryLogin is just a convenience, if the "standard" doesn't work for your unit just long hand the correct implementation for your own device.

TerminatedRead & WriteLine with whatever terminators/linefeeds your device expects.