Next Topic

Previous Topic

Book Contents

Open

bool Open(string sCommunity, int iPort=161)

Return values

Non zero if the function is successful; otherwise 0, and a specific error code can be retrieved by calling global function GetLastError.

Parameters

  • sCommunity - Name of the community, usually public
  • iPort (Optional) Specify the port number if you need to use a port other then the standard port (port 161).