Telnet - sockets to a ServerIron load balancer
-
Hey, I have been working through many attempts to communicate with a ServerIron load balancer from a c#/ .Net app. I have tried an approach using a TcpClient, StreamReader and StreamWriter. Herein, I basically use a multithreaded approach and IAsyncResult callbacks. I have also tried a synchronous variation and a single threaded variation to reduce complexity in the face of continued lack of communication between my app and the load balancer. Alternatively I have tried using a Socket with my own read and write methods. I have searched and adopted a few other approaches from the web all to no avail. Basically, I am having issues where I cannot find a return of control from the ServerIron and/ or It pauses at odd places in the return stream. It will not recognize the terminating character variations be it; cr, lf or crlf. Apart from the specific implementation details, I am wondering if I am simply missing someting fundemental about telnet or about these machines. Others have recomended expect scripts, which I have looked at and effectively do the same thing I am attempting to do; read till you get a terminating character, then send data. I also do not want to leave the c# world at all, nor do I feel I should have to. I am not a beginner and I have several .Net apps in production. any help would be greatly appreciated. Thanks, Chris