2
#include "../config/config"
4
void socketclose (int fd) {
5
PROFILE("socketclose");
8
debugmsg ((Mstr("Closing socket ") + fd) + "\n");
10
if (config.fastclose()) {
14
setsockopt (fd, SOL_SOCKET, SO_LINGER, &l, sizeof(l));
16
shutdown(fd, SHUT_RDWR);