H A D | tstRTTcp-1.cpp | 21 RTTESTI_CHECK_RC_RET(RTTcpWrite(hSocket, "hello\n", sizeof("hello\n") - 1), VINF_SUCCESS, VERR_TCP_SERVER_STOP); local 23 RTTESTI_CHECK_RC_RET(RTTcpRead(hSocket, szBuf, sizeof("dude!\n") - 1, NULL), VINF_SUCCESS, VERR_TCP_SERVER_STOP); local 25 RTTESTI_CHECK_RET(strcmp(szBuf, "dude!\n") == 0, VERR_TCP_SERVER_STOP); local 32 RTTESTI_CHECK_RC_RET(RTTcpWrite(hSocket, szBuf, sizeof(szBuf)), VINF_SUCCESS, VERR_TCP_SERVER_STOP); local 36 return VERR_TCP_SERVER_STOP; 93 RTTESTI_CHECK_RC_RET(RTTcpWrite(hSocket, "hello\n", sizeof("hello\n") - 1), VINF_SUCCESS, VERR_TCP_SERVER_STOP); local 95 RTTESTI_CHECK_RC_RET(RTTcpRead(hSocket, szBuf, sizeof("dude!\n") - 1, NULL), VINF_SUCCESS, VERR_TCP_SERVER_STOP); local 97 RTTESTI_CHECK_RET(strcmp(szBuf, "dude!\n") == 0, VERR_TCP_SERVER_STOP); local 101 RTTESTI_CHECK_RC_RET(RTTcpRead(hSocket, szBuf, sizeof("byebye\n") - 1, NULL), VERR_NET_SHUTDOWN, VERR_TCP_SERVER_STOP); local 103 return VERR_TCP_SERVER_STOP; 146 RTTESTI_CHECK_RC_RET(RTTcpWrite(hSocket, "hello\\n", sizeof("hello\\n") - 1), VINF_SUCCESS, VERR_TCP_SERVER_STOP); local 147 RTTESTI_CHECK_RC_RET(RTTcpRead(hSocket, szBuf, sizeof("dude!\\n") - 1, NULL), VINF_SUCCESS, VERR_TCP_SERVER_STOP); local 149 RTTESTI_CHECK_RET(strcmp(szBuf, "dude!\\n") == 0, VERR_TCP_SERVER_STOP); local 152 RTTESTI_CHECK_RC_RET(RTTcpRead(hSocket, szBuf, sizeof("byebye\\n") - 1, NULL), VINF_SUCCESS, VERR_TCP_SERVER_STOP); local 154 RTTESTI_CHECK_RET(strcmp(szBuf, "byebye\\n") == 0, VERR_TCP_SERVER_STOP); local 155 RTTESTI_CHECK_RC_RET(RTTcpWrite(hSocket, "bye\\n", sizeof("bye\\n") - 1), VINF_SUCCESS, VERR_TCP_SERVER_STOP); local [all...] |