/** * Send SYN and wait for ACK. * * @return true on success */ static inline bool Connect(Port &port) { return port.Write(SYN) && ExpectACK(port); }
/** * Send SYN and wait for ACK. * * @return true on success */ static inline bool Connect(Port &port, OperationEnvironment &env, unsigned timeout_ms=500) { return SendSYN(port) && ExpectACK(port, env, timeout_ms); }