The following FlashBASIC C Functions are presented:
Extracts the first connection on the queue of pending connections, creates a new socket, and allocates a new file descriptor. |
|
Calls the %accept() function to extract the first connection on the queue of pending connections, and then it creates a new socket. Thereafter, the function will wait for a TLS/SSL client to initiate the TLS/SSL handshake, and then create a secure SSL connection. |
|
Instructs the alarm clock of the calling process to send the signal SIGALRM to the calling process. |
|
Binds a socket to a named resource. In case of a network, the resource would be an access point into the system. |
|
Allocates and frees dynamic memory. |
|
Changes the current directory to the one in the specified string. |
|
Changes the mode of the file specified in the string to the value specified in the specified mode. |
|
Changes the owner-ID and group-ID of the file specified in the string to the specified in owner and group, respectively. |
|
Closes the UNIX file specified by the file descriptor returned by a previous call to %open(), %creat(), %dup(), %socket(), or %accept(). |
|
Closes the socket specified by the file descriptor, as well as the secure connection specified by the SSL file descriptor. |
|
Closes all opened file-descriptors, including sockets. |
|
Closes an existing socket. |
|
Requests a connection between two sockets. |
|
Requests a secure connection between two sockets. |
|
Creates a new host OS file or prepares to rewrite an existing host OS file designated by the specified string for write only. |
|
Decrypts a string. |
|
Returns a new file descriptor associated to the same file as the one associated with the specified file descriptor. |
|
Encrypts a string. |
|
Writes the character specified by the character on the named output stream. |
|
Associates a stream with the file descriptor obtained from an %open(), %dup(), or %creat(). |
|
Returns the next character from the named input stream. |
|
Reads characters from the named input stream into the variable until n-1 characters are read or a new line character is read and transferred to the string. |
|
Opens the host OS file designated by the string and associates a stream with it. |
|
Writes formatted output on the stream under control of the format. |
|
Writes the specified character on the named output stream. |
|
Writes the specified string on the named output stream. |
|
Binary stream input/output. |
|
Frees a block of memory allocated by a call to %malloc(). |
|
Substitutes the named file specified by the string in place of the opened stream. |
|
Returns the size in bytes of the file associated to the opened file descriptor returned by a previous call to %open() or %creat(). |
|
Binary stream input/output. |
|
Front end to the socket %getaddrinfo() function. |
|
Searches the environment for a string of the form name=value and returns a pointer to the value in the current environment if such a string is present, otherwise, a null is returned. |
|
Allows a FlashBASIC application to retrieve the unique 32-bit identifier for the current host. |
|
Retrieves the standard host name for the local computer. |
|
Front end to the socket %gethostbyname() function. |
|
Returns the D3 performance counters. |
|
Returns the UNIX process group ID of the calling process. |
|
Returns the Process-ID (PID) of the calling process. |
|
Returns the UNIX parent Process-ID of the calling process. |
|
Retrieves a socket option. |
|
Converts a string containing an IPv4 dotted-decimal address into a proper address for the IN_ADDR structure. |
|
A general purpose control function that passes the request and arg arguments to the device designated by the file descriptor. |
|
Controls the I/O mode of a socket. |
|
Sends the specified signal to the specified process. |
|
Marks the specified socket as accepting incoming connections and limits the number of outstanding connections in the system queue. |
|
Moves the read/write pointer. |
|
Allocates a memory block of the specified size in bytes and returns the address of this block. |
|
Copies the memory area. |
|
Scans memory for a character, |
|
Copies characters from the specified memory area into another, stopping after the first occurrence of the specified character has been copied, or after the number of characters specified by the length have been copied, whichever comes first. |
|
Copies the specified number of characters from one specified memory to another. |
|
Copies a specified number of characters from a specified memory area into another, and converts each input character into two ASCII hexadecimal characters 0 through 9 and A through F. |
|
Opens the specified host OS file and sets the file status flags. |
|
Suspends the calling process until it receives a signal. |
|
Closes the specified stream opened by a %popen() and returns the exit status of the command. |
|
Returns the UNIX Process-ID (PID) associated to the D3 process line. |
|
Creates a pipe between the calling process and the command to be executed. |
|
Formatted output conversion. |
|
Makes the value of the environment variable name equal to the value designated by str, by altering an existing variable or by creating a new one. |
|
Reads the specified number of bytes into the variable from the specified file, converting each byte into two ASCII hexadecimal characters. |
|
Reads the specified number of bytes into the variable from the specified file. |
|
Reads the specified number of bytes into the variable from the Secure connection specified by the SSL file descriptor. |
|
Retrieves string values from the registry. |
|
Resizes the memory buffer specified to the specified size in bytes and returns a pointer to the resized buffer. |
|
Receives data from a connected socket or a bound connectionless socket. |
|
Receives a datagram from a bound socket and stores the information on the sender. If no errors occur, the number of bytes received is returned. |
|
Performs semaphore control operations. |
|
Creates a semaphore set. |
|
Performs an array of semaphore operations on a set of semaphores. |
|
Sends data on a connected socket. |
|
Sends data to a specified destination. |
|
Sets the flush periods. |
|
Sets a socket option. |
|
Executes the specified MS-DOS command and returns the exit code of the command. |
|
Executes the specified MS-DOS command and captures the result in the specified buffer variable, up to the maximum size. |
|
Attaches a shared memory segment associated with the shared memory identifier and returns the address of the segment. |
|
Allows the user to receive information on a shared memory segment, set the owner, group, and permissions of a shared memory segment, or destroy a segment. |
|
Detaches the shared memory segment located at the specified address. |
|
Creates a shared memory segment and returns a shared memory identifier. |
|
Disables sends or receives on a socket. |
|
Creates a socket in the specified address of the specified type. |
|
Formatted output conversion. |
|
Specifies that all input comes from the input file and all output goes to the output file. |
|
Stops all input and output to and from the file. |
|
Concatenates two strings. |
|
Copies a string. |
|
Calculates the length of a string. |
|
Returns a pointer to a static area containing the null terminated path name of the terminal device associated to the specified file descriptor. |
|
Removes the directory entry named by the specified path name. |
|
Returns the exit code of the child processes created by the current process. |
|
Writes to the specified file returned by a previous call to %open(), %creat(), or %dup() a string of bytes resulting from converting the ASCII string variable into binary. |
|
Writes the specified number of bytes from the variable to the specified file descriptor returned by a previous call to %open(), %creat(), or %dup(). |
|
Writes the specified number of bytes from the variable to the Secure connection specified by the SSL file descriptor. |