Network I/O; Threads - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

Overview of NSAPI C Functions
system_fclose
system_fread
system_fwrite
system_fwrite_atomic
interference between simultaneous writes by multiple processes or threads.

Network I/O

Network I/O functions provide platform-independent, thread-safe network I/O
routines. These routines work with SSL when it's enabled.
netbuf_grab
netbuf_getc
net_write

Threads

Thread functions include functions for creating your own threads which are
compatible with the server's threads. There are also routines for critical sections
and condition variables.
systhread_start
systhread_sleep
crit_init
crit_enter
crit_exit
crit_terminate
condvar_init
condvar_notify
condvar_wait
condvar_terminate
prepare_nsapi_thread
like server-created threads.
126
Netscape Enterprise Server NSAPI Programmer's Guide • November 2001
closes a file.
reads from a file.
writes to a file.
locks the given file before writing to it. This avoids
reads from a network buffer's socket into the network buffer.
gets a character from a network buffer.
writes to the network socket.
creates a new thread.
puts a thread to sleep for a given time.
creates a new critical section variable.
gains ownership of a critical section.
surrenders ownership of a critical section.
disposes of a critical section variable.
creates a new condition variable.
awakens any threads blocked on a condition variable.
blocks on a condition variable.
disposes of a condition variable.
allows threads that are not created by the server to act

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents