Lines Matching defs:connection
144 int connection = socket(AF_INET, SOCK_DGRAM, 0);
145 if (connection < 0) {
152 if (sendto(connection, reinterpret_cast<char*>(&message),
162 close(connection);
168 FD_SET(connection, &waitForReceived);
177 status = select(connection + 1, &waitForReceived, NULL, NULL,
183 close(connection);
190 if (recvfrom(connection, reinterpret_cast<char*>(&message), sizeof(ntp_data), 0,
194 close(connection);
198 close(connection);