z/OS Cryptographic Services System SSL Programming
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Enable/disable non-blocking mode

z/OS Cryptographic Services System SSL Programming
SC14-7495-00

Once a socket is created using the socket() call, it may be set to non-blocking as follows:

    #include "sys/ioctl.h"
    int on =1;
    int off =0;

    //Enable non-blocking
    ioctl (mySocket, FIONBIO, &(on));
    //Disable non-blocking
    ioctl (mySocket, FIONBIO, (char *) &(off));

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014