vb.net - Renci.SshNet ShellStream seems to be dropping characters -


after google, have not found answer matches exact situation. maybe more info care, think need set stage question. simple goal read , command cisco ios device either serial console or ssh. abstract "business logic" transport looking @ building stream. serial console, after creating serial port, use basestream , works well. fyi rosetta moment getting serial port streaming working. if must use .net system.io.ports.serialport adding ssh stream (for me) research took me sharps , renci ssh connection.i decided try renci first. downloaded , compiled dll (my project in vb.net). connected, created shell stream, passed stream same functions serial stream used. works except when "show run". have terminal length set 0 there no page breaks. output, when using ssh there missing parts in capture. theory @ serial speed (9600 baud) stream able keep up, @ lan speed (1 gig bit) overrunning buffer. captured little different, around same area text missing. small screen grabs such "show ip int br" works great. have increased "createshellstream" buffer size without change. started looking @ renci code, if understanding correctly, not seem pass buffer size anything. thoughts?

i had friend says, server example, of good, bad. have fall on sword , bad example. first bottom line buffer streaming call added , higher level read functions parsed buffer. i not protecting synclock.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -