Searched refs:newSocket (Results 1 – 1 of 1) sorted by relevance
/frameworks/av/media/libstagefright/rtsp/fuzzer/ |
D | rtsp_connection_fuzzer.cpp | 227 int32_t RTSPConnectionFuzzer::checkSocket(int32_t newSocket) { in checkSocket() argument 234 FD_SET(newSocket, &rs); in checkSocket() 236 return select(newSocket + 1, &rs, nullptr, nullptr, &tv); in checkSocket() 239 void RTSPConnectionFuzzer::sendValidResponse(int32_t newSocket, int32_t cseq = -1) { in sendValidResponse() argument 247 send(newSocket, validResponse.c_str(), validResponse.size(), 0); in sendValidResponse() 250 void RTSPConnectionFuzzer::handleClientResponse(int32_t newSocket) { in handleClientResponse() argument 252 if (checkSocket(newSocket) == 1) { in handleClientResponse() 253 read(newSocket, buffer, kBufferSize); in handleClientResponse() 257 void RTSPConnectionFuzzer::handleConnection(int32_t newSocket) { in handleConnection() argument 259 send(newSocket, mFuzzData.c_str(), mFuzzData.size(), 0); in handleConnection() [all …]
|