Forum Discussion
jcook_105986
Nimbostratus
May 20, 2008how do i check the connection status?
the following code initialize an iControl handle, and then
connects the hanlde to the BIG-IP server.
/////////////////////////////////////////////////
public iControl.Interfaces m_interfaces =
new iControl.Interfaces();
bool conSucess= m_interfaces.initialize
("000.000.000.000", "admin", "xxxx");
/////////////////////////////////////////////////
I am working on this big project, and my part of programming
is very small, thus I do not know other part of the project.
I have this global iControl handle called "m_interfaces".
question 1)
How do i know whether someone already has established a connection or not?
question 2)
Once a connection gets established, it seems like no matter how many times
i call "m_interfaces.initialize()" method, it does not affect the iControl handle.
So... is it ok to use "m_interfaces.initialize" method everytimes when
I am not sure whether the iControl handle has been established a connection or not?
2 Replies
- Nicolas_Menant
Employee
Hi,
You have a command m_interfaces.initialized which is set to true or false depending you're already connected or not.
I'm not sure you can retrieve information about other people being connected on the same box
HTH
N. - 1) Just as mnenant has said, there is the member "initialized" in the iControl.Interfaces class that get's set when you successfully initialize the class. This is the same boolean that is returned from the initialize call.
2) I'm a bit confused on what you are saying here? If you call initialize with correct parameters and get a returned value of "true" and then later call initialize with incorrect parameters and get a value of "false" the initialized member of the Interfaces class will be set to false. I'm looking at the code right here and that's what it should be doing so let me know if it is not and the exact calls you are making to make it not behave that way.
Hopefully that has answered your questions. If not, please feel free to repost any and all other questions you may have.
-Joe
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
