本文整理汇总了C++中network::closeConnection方法的典型用法代码示例。如果您正苦于以下问题:C++ network::closeConnection方法的具体用法?C++ network::closeConnection怎么用?C++ network::closeConnection使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类network
的用法示例。
在下文中一共展示了network::closeConnection方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CleanupExit
void CleanupExit()
{
if (NULL != _sessionManager)
{
delete _sessionManager;
_sessionManager = NULL;
}
g_AS3Network.closeConnection();
g_Connected = 0;
removeListeners();
delete _broadcaster;
delete _waveDetector;
delete _pushDetector;
delete _swipeDetector;
delete _steadyDetector;
delete _circleDetector;
delete _leftRightSlider;
delete _upDownSlider;
delete _inOutSlider;
delete _trackPad;
_context.Shutdown();
if(_featureSinglePoint) close(POINT_SOCKET);
if(_featureSlider) close(SLIDER_SOCKET);
if(_featureUserTracking) close(USER_TRACKING_SOCKET);
close(SESSION_SOCKET);
exit(1);
}