GL Studio C++ Runtime API
license_util.h File Reference

Utility functions for licensing. More...

#include <string>
#include "FlxPublisher.h"
#include "FlxTypes.h"

Go to the source code of this file.

Functions

std::string GetFlexNetEmbeddedErrorString (const char *errString, FlxErrorRef error, bool logError=true, FlxErrorStatusRef errorStatus=NULL)
 
void LogFlexNetEmbeddedError (FlxErrorRef error)
 
void LogFlexNetEmbeddedErrorString (const std::string &errorString)
 
std::string GetMacAddressHostIds ()
 
FlxSize FlexNetEmbeddedHttpRequest (const char *serverName, int serverPort, const unsigned char *request, size_t requestSize, unsigned char **response, FlxErrorRef error)
 

Detailed Description

Utility functions for licensing.

Copyright Information

Copyright (c) 2017 by The DiSTI Corporation.
11301 Corporate Blvd; Suite 100
Orlando, Florida 32817
USA

All rights reserved.

This Software contains proprietary trade secrets of DiSTI and may not be reproduced, in whole or part, in any form, or by any means of electronic, mechanical, or otherwise, without the written permission of DiSTI. Said permission may be derived through the purchase of applicable DiSTI product licenses which detail the distribution rights of this content and any Derivative Works based on this or other copyrighted DiSTI Software.

NO WARRANTY. THE SOFTWARE IS PROVIDED "AS-IS," WITHOUT WARRANTY OF ANY KIND, AND ANY USE OF THIS SOFTWARE PRODUCT IS AT YOUR OWN RISK. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, DISTI AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE.

LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL DISTI OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF DISTI HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. DISTI'S ENTIRE LIABILITY AND YOUR EXCLUSIVE REMEDY SHALL NOT EXCEED FIVE DOLLARS (US$5.00).

The aforementioned terms and restrictions are governed by the laws of the State of Florida and the United States of America.

Function Documentation

FlxSize FlexNetEmbeddedHttpRequest ( const char *  serverName,
int  serverPort,
const unsigned char *  request,
size_t  requestSize,
unsigned char **  response,
FlxErrorRef  error 
)

Send a simple HTTP 1.1 request to a server and load the response Caller is responsible for deleting response buffer when finished.

Parameters
serverNameHost name of the server to send request to
serverPortPort of the server to send request to
requestBuffer request to send to the server
requestSizeSize of the buffer request to send to the server
responseResponse buffer to allocate and load response into
errorFlexNet Embedded Error object to track errors
Returns
size of response
std::string GetFlexNetEmbeddedErrorString ( const char *  errString,
FlxErrorRef  error,
bool  logError = true,
FlxErrorStatusRef  errorStatus = NULL 
)

Processes a FlexNet Embedded Error and returns the details of the error

Parameters
errStringGeneral error string used as fallback
errorFlexNet Embedded Error object to track errors
logErrorWhether to log this error into the error log
errorStatusFlexNet Embedded Error status object for errors with status
Returns
the full error string with FlexNet Embedded Errors if found
std::string GetMacAddressHostIds ( )

Gets a space delimited string of all found mac address host IDs for the current machine

void LogFlexNetEmbeddedError ( FlxErrorRef  error)

Logs a FlexNetEmbedded Error for tracking multiple errors

Parameters
errorFlexNet Embedded Error object to track errors
void LogFlexNetEmbeddedErrorString ( const std::string &  errorString)

Logs a generic FlexNetEmbedded Error that isn't associated directly with a FlexNetEmbedded function

Parameters
errorStringThe error string to log