Working compile copy.
This commit is contained in:
1 parent
41ff757f09
commit
f894f3fb66
54 files changed
+249
-355
No files matched your search
+1
-1
@@ -11,7 +11,7 @@ namespace core {
|
||||
|
||||
void TCPSocket::connect(IPAddress &address) {
|
||||
setDescriptor(socket(AF_INET, SOCK_STREAM, 0));
|
||||
if(::connect(getDescriptor(), (struct sockaddr *)&address.address, address.addressLength) == -1)
|
||||
if(::connect(getDescriptor(), (struct sockaddr *)&address.addr, address.addressLength) == -1)
|
||||
throw Exception("Error on connect to TCP socket.");
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user