MCPcopy Create free account
hub / github.com/davisking/dlib / disable_nagle

Method disable_nagle

dlib/sockets/sockets_kernel_2.cpp:356–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354// ----------------------------------------------------------------------------------------
355
356 int connection::
357 disable_nagle()
358 {
359 int flag = 1;
360 if(setsockopt( connection_socket, IPPROTO_TCP, TCP_NODELAY, (char *)&flag, sizeof(flag) ))
361 {
362 return OTHER_ERROR;
363 }
364
365 return 0;
366 }
367
368// ----------------------------------------------------------------------------------------
369

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected