summaryrefslogtreecommitdiffstats
path: root/source/cSocket.cpp
blob: d2489d48ecc0ad35e23bf40a62faf24d1b0d4118 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "cSocket.h"

cSocket::cSocket( xSocket a_Socket )
	: m_Socket( a_Socket )
{
}

cSocket::~cSocket()
{
}

cSocket::operator const cSocket::xSocket() const
{
	return m_Socket;
}

cSocket::xSocket cSocket::GetSocket() const
{
	return m_Socket;
}

bool cSocket::IsValid()
{
#ifdef _WIN32
	return ( m_Socket != INVALID_SOCKET);
#else
	return ( m_Socket >= 0);
#endif
}