Linux fixes.
This commit is contained in:
@@ -270,7 +270,7 @@ ClientStateConnecting::Process(ClientThread &client)
|
|||||||
int retVal;
|
int retVal;
|
||||||
ClientData &data = client.GetData();
|
ClientData &data = client.GetData();
|
||||||
|
|
||||||
struct fd_set writeSet;
|
fd_set writeSet;
|
||||||
struct timeval timeout;
|
struct timeval timeout;
|
||||||
|
|
||||||
FD_ZERO(&writeSet);
|
FD_ZERO(&writeSet);
|
||||||
@@ -284,7 +284,7 @@ ClientStateConnecting::Process(ClientThread &client)
|
|||||||
{
|
{
|
||||||
// Check whether the connect call succeeded.
|
// Check whether the connect call succeeded.
|
||||||
int connectResult = 0;
|
int connectResult = 0;
|
||||||
int tmpSize = sizeof(connectResult);
|
socklen_t tmpSize = sizeof(connectResult);
|
||||||
getsockopt(data.sockfd, SOL_SOCKET, SO_ERROR, (char *)&connectResult, &tmpSize);
|
getsockopt(data.sockfd, SOL_SOCKET, SO_ERROR, (char *)&connectResult, &tmpSize);
|
||||||
if (connectResult != 0)
|
if (connectResult != 0)
|
||||||
throw ClientException(ERR_SOCK_CONNECT_FAILED, connectResult);
|
throw ClientException(ERR_SOCK_CONNECT_FAILED, connectResult);
|
||||||
|
|||||||
Reference in New Issue
Block a user