VALID_SO.C

LIB3/SECURE/MASTER/VALID_SO.C · 248 B

From the archive nm4dos.zip

Download the archive   « Back to the archive contents

int     valid_socket( object ob, string func, mixed *info )
{
    string  fname;

    fname = file_name( ob );
    switch( explode( fname, "/" )[ 0 ] )
    {
	case "net":
	case "secure":
	    return 1;
    }
    return 0;
}				/* valid_socket() */

Site Stats

Snippets: 1791
Codebases: 571