kodr
Programmer
- Dec 4, 2003
- 368
I've been putting off a project for a while now, that I really should get started (the new year seems like a good time to start.)
I'm just looking for any suggestions or guidance here, no specific code.
My goal is to build a basic framework for a Telnet, and maybe SSH capable application. I need to be able to log in to various pieces of network equipment and check for alarms, logs, etc.. This equipment is from multiple vendors, so at this point, I just want to build the framework that I could modify for each hardware type, then integrate them all together at a later point, once I have a better understanding of the whole process.
What I'm envisioning that I'll have to do is this:
Build a multi-threaded application. Have a thread dedicated to listening for incoming data. When data is received, set a flag so that another thread can process the data.
So the second thread would obviously be the data processing part.
A third thread would handle transmitting data to the equipment, a query on current alarms, login information, whatever.
I'm thinking that Sockets would be the best way to approach this also.
Anyone see any issues or have any comments? I'm willing to share any and all code for this as it progresses. What I'd like to end up with is a re-usable block of code that would be easy to modify for any similar type of application.
I know there are applications out there that do this, but my need requires a lot of custom responses based on the information received, and I wanted to use it as a learning experience.
Thanks.
I'm just looking for any suggestions or guidance here, no specific code.
My goal is to build a basic framework for a Telnet, and maybe SSH capable application. I need to be able to log in to various pieces of network equipment and check for alarms, logs, etc.. This equipment is from multiple vendors, so at this point, I just want to build the framework that I could modify for each hardware type, then integrate them all together at a later point, once I have a better understanding of the whole process.
What I'm envisioning that I'll have to do is this:
Build a multi-threaded application. Have a thread dedicated to listening for incoming data. When data is received, set a flag so that another thread can process the data.
So the second thread would obviously be the data processing part.
A third thread would handle transmitting data to the equipment, a query on current alarms, login information, whatever.
I'm thinking that Sockets would be the best way to approach this also.
Anyone see any issues or have any comments? I'm willing to share any and all code for this as it progresses. What I'd like to end up with is a re-usable block of code that would be easy to modify for any similar type of application.
I know there are applications out there that do this, but my need requires a lot of custom responses based on the information received, and I wanted to use it as a learning experience.
Thanks.