forked from SQream/cpp-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsocket.hxx
35 lines (26 loc) · 940 Bytes
/
socket.hxx
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
31
32
33
34
35
// ---------------------------------------------------------------------------------
//
// File: SOCK_CLI.HXX
//
//
// Notes: Socket client class inline functions
//
// ----------------------------------------------------------------------------------
#ifndef _SOCK_CLI_HXX
#define _SOCK_CLI_HXX
// --------------------------------------------------------------------
// to check if the class=>socket is properly initialized
// --------------------------------------------------------------------
bool TSocketClient::IsReady ( void )
{
// check if listener socket is ready
return ( TSocketClient::g_flgLibReady == 1 && vSocket != 0 ) ? true : false;
}
// --------------------------------------------------------------------
// get the last error that occured
// --------------------------------------------------------------------
inline const char* TSocketClient::GetErrMsg ( void )
{
return vszErrMsg;
}
#endif