MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / accept

Method accept

tools/streamer_recorder/PracticalSocket.cpp:267–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267TCPSocket *TCPServerSocket::accept() throw(SocketException) {
268 int newConnSD;
269 if ((newConnSD = ::accept(sockDesc, NULL, 0)) < 0) {
270 throw SocketException("Accept failed (accept())", true);
271 }
272
273 return new TCPSocket(newConnSD);
274}
275
276void TCPServerSocket::setListen(int queueLen) throw(SocketException) {
277 if (listen(sockDesc, queueLen) < 0) {

Callers

nothing calls this directly

Calls 1

SocketExceptionClass · 0.85

Tested by

no test coverage detected