Server::SetInitSocketLib

Server::SetInitSocketLib
virtual void SetInitSocketLib(bool initSocketLib);
Description

SetInitSocketLib initializes the socket library to be used by the AMP for communication. If AMP is the only system using sockets, it will initialize the socket library and release it when it is done. 

Note that on some platforms, releasing the network library takes immediate effect, even if the library had been initialized more times than it has been released, and AMP may interfere with socket connections used in other parts of the application. If this is the case, AMP may be forced to skip socket initialization and use a previously initialized socket library by calling

GFx::AMP::Server::GetInstance().SetInitSocketLib(false).

This call needs to be performed before AMP has been initialized.

Parameters
Parameters 
Description 
bool initSocketLib 
A Boolean value of false indicates that AMP is going to use a previously initialized socket library. A value of true indicates that AMP is going to initialize the socket library.