예제 #1
0
 /**
  * Send SYN and wait for ACK.
  *
  * @return true on success
  */
 static inline bool
 Connect(Port &port)
 {
   return port.Write(SYN) && ExpectACK(port);
 }
예제 #2
0
파일: Protocol.hpp 프로젝트: XCame/XCSoar
 /**
  * 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);
 }