/* getsock_tcp_mss - Returns the MSS size for TCP  */
int setnonblocking(int sock)
/* getsock_tcp_mss - Returns the MSS size for TCP  */
int setnonblocking(int sock)
{
    int       opts = 0;
    opts = (opts | O_NONBLOCK);
    if (fcntl(sock, F_SETFL, opts) < 0)
    {
        printf("fcntl(F_SETFL)");
        return -1;
    }
    return 0;
}