Exemplo n.º 1
0
 /**
  * Send SYN and wait for ACK.
  *
  * @return true on success
  */
 static inline bool
 Connect(Port &port)
 {
   return port.Write(SYN) && ExpectACK(port);
 }
Exemplo n.º 2
0
 /**
  * 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);
 }