~ubuntu-branches/ubuntu/trusty/ginkgocadx/trusty

« back to all changes in this revision

Viewing changes to src/cadxcore/endpoint/endpoint.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-07-21 11:58:53 UTC
  • mfrom: (7.2.1 sid)
  • Revision ID: package-import@ubuntu.com-20130721115853-44e7n1xujqglu78e
Tags: 3.4.0.928.29+dfsg-1
* New upstream release [July 2013]
  + new B-D: "libjsoncpp-dev".
  + new patch "unbundle-libjsoncpp.patch" to avoid building bundled
    "libjsoncpp-dev".
  + new patch "fix-wx.patch" to avoid FTBFS due to missing
    "-lwx_gtk2u_html-2.8".
* Removed unnecessary versioned Build-Depends.
* Removed obsolete lintian override.
* Reference get-orig-source implementation for orig.tar clean-up and
  DFSG-repackaging.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
923
923
void Endpoint::Initialize()
924
924
{
925
925
 
926
 
#ifdef _WIN32
927
 
        WSADATA wsaData;
928
 
    // Need WinSock2 at least for raw sockets
929
 
    if (WSAStartup(MAKEWORD(2, 1), &wsaData) != 0)
930
 
    {
931
 
#ifdef _EP_DEBUG
932
 
        std::cout << "couldn't start!" << std::endl;
933
 
#endif
934
 
    }
935
 
#endif
936
926
}
937
927
 
938
928
bool Endpoint::Close()
1039
1029
{
1040
1030
  Close();
1041
1031
  CloseServer();
1042
 
#ifdef _WIN32
1043
 
  WSACleanup();
1044
 
  //g_initialized = false;
1045
 
#endif
1046
1032
}
1047
1033
 
1048
1034
int Endpoint::SetLastError()