add: }
context: int netcat_socket_new(int domain, int type){  int sock, ret, sockopt = 0;  sock = socket(domain, type, 0);  if (sock < 0)    return -1;  /* fix the socket options */  ret = setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &sockopt, sizeof(sockopt));  if (ret < 0)    return -2;  return sock;}