Establish a socket connection with the given foreign address and port.
Definition at line 184 of file PracticalSocket.cpp. References fillAddr(). Referenced by UDPSocket::disconnect(). 00185 { 00186 // Get the address of the requested host 00187 sockaddr_in destAddr; 00188 fillAddr(foreignAddress, foreignPort, destAddr); 00189 00190 // Try to connect to the given port 00191 if (::connect(sockDesc, (sockaddr *) &destAddr, sizeof(destAddr)) < 0) { 00192 throw SocketException("Connect failed (connect())", true); 00193 } 00194 }
Here is the call graph for this function:
|