Forum Discussion

Brian_Schroeder's avatar
Brian_Schroeder
Icon for Nimbostratus rankNimbostratus
Jun 23, 2006

Redundant authentication

Hi, I'm coding an app to grab both statistics and performance data from a device. Since I'm using C, this involves my use of both SystemSystemInformation.cs and LocalLBVirtualServer.cs, among other files. In order to work with either of these classes as is, I have to separately pass credentials and the URL to both of them -- seemingly connecting to the same device twice, just because I want slightly different data. Does this add a lot of overhead? I want to keep pretty efficient.

 

 

Do you have any tips, if it would be better to authenticate only once, of how I could consolidate code from these two different libraries? It doesn't seem trivial to me. ...Or anything else I've failed to consider?

 

 

Thanks,

 

Brian

 

5 Replies

  • I know this is a bit off topic from your post, but I was wondering if you would be able to maybe post or share your C code. I am starting to work with an f5 and would love to be able to see some examples for version 9.

     

     

    Thanks!
  • As far as I know there is no way to share HTTP connection information across different classes. I wouldn't worry about it though as all each really is is a separate HTTP connection. Look at all the different HTTP connections your browser makes when hitting a website.

     

     

    Using a single interface with only one configuration has no more overhead on the BIG-IP than using two different interfaces.

     

     

    Actually within the same interface, subsequent method calls will make separate connections just as a second interface would.

     

     

    -Joe
  • Posted By djlos on 6/26/2006 6:48 AM

     

     

    I know this is a bit off topic from your post, but I was wondering if you would be able to maybe post or share your C code. I am starting to work with an f5 and would love to be able to see some examples for version 9.

     

     

    Thanks!

     

     

    Check out the CodeShare section of this site as well as the SDK. There's a bunch of C code in there.

     

     

    -Joe
  • Joe-

     

    Thanks a lot!

     

     

    djlos-

     

    All of my code is basically just using the sample code in the SDK in a different context. It would probably help you more just to look at that code, because it's in a general context, as opposed to my more-specific code. Check out the code located here in the SDK:

     

     

    ZIPFILE\iControl-9.2.2\sdk\samples\soap\c\microsoft\System\SystemInfo

     

     

    This is what I used as my foundation.

     

     

    Brian

     

  • Yea I was looking at some of the codeshare and the demo that you did actually for using Visual Studio. But I just was wondering if you did an updated version of that simple/sample app using the version 9 sdk.

     

     

    Thanks!