folly::netops::shutdown

Shuts down part or all of a full-duplex connection.

Synopsis

Declared in <folly/net/NetOps.h>

int
shutdown(
    NetworkSocket s,
    int how);

Return Value

0 on success, or -1 on error.

Parameters

NameDescription
sThe socket to shut down.
howWhich directions to shut down.