nsmail.h
header file contains definitions, structures, and functions, used by the Messaging Access SDK Protocol APIs. nsStream.h
header file contains definitions for I/O streaming utilities. unsigned char boolean
.
Definition | Value |
Description
FALSE unsigned char boolean TRUE unsigned char boolean BOOLEAN
| |
---|
set_option
functions. Only one option is supported.
Option |
Definition
NSMAIL_OPT_IO_FN_PTRS
Option for setting specific I/O functionality. See |
---|
nsmail_io_fns_t |
nsmail_inputstream_t |
nsmail_outputstream_t |
include <nsmail.h>
typedef struct nsmail_io_fns
{
int (*liof_read)(int, char *, int);
int (*liof_write)(int, char *, int);
int (*liof_socket)(int, int, int);
int (*liof_select)(int, fd_set *,
fd_set *, fd_set *, struct timeval *);
int (*liof_connect)(int,
const struct sockaddr*, int);
int (*liof_close)(int);
} nsmail_io_fns_t;
smtp_set_option, imap4_set_option, pop3_set_option[Top] [Shared Structures]
include <nsmail.h>
typedef struct nsmail_inputstream
void *rock;
int (*read) (void *rock,
char *buf, unsigned size);
void (*rewind) (void *rock);
void (*close) (void *rock);
} nsmail_inputstream_t;
nsmail_outputstream_t, smtp_sendStream[Top] [Shared Structures]
include <nsmail.h>
typedef struct nsmail_outputstream
{
void *rock;
void (*write) (void *rock, const char *buf,
unsigned size);
void (*close) (void *rock);
} nsmail_outputstream_t;
void *rock; | |
void (*write) (void *rock, |
Writes CRLF-separated output in |
void (*close) (void *rock); |
nsmail_inputstream_t[Top] [Shared Structures]
file_inputStream_create |
buf_inputStream_create |
file_outputStream_create |
nsStream_free |
libcomm.so
file.
[Top]#include <nsStream.h>
int file_inputStream_create (char * in_fileName,
nsmail_inputstream_t ** out_ppRetInputStream);
in_fileName | Full path name of an existing file on which to create the input stream. |
out_ppRetInputStream |
NSMAIL_OK
(0).nsmail_inputstream_t
. The function implements the stream and the associated internal functions for read
, rewind
and close
.
buf_inputStream_create
nsmail_inputstream_t * pInputStream;
ret_value = file_inputStream_create (
<file-name>, &pInputStream);
ret_value = mime_basicPart_setDataStream (
BasicPart, pInputStream, boolean);
/* When done, close and free the stream. */
pInputStream->close (pInputStream->rock);
free (pInputStream); pInputStream = NULL;[Top] [Shared Functions]
#include <nsStream.h>
int buf_inputStream_create (
char * in_pDataBuf,
long in_data_size,
nsmail_inputstream_t ** out_ppRetInputStream);
in_pDataBuf | |
in_data_size | |
out_ppRetInputStream |
NSMAIL_OK
(0).nsmail_inputstream_t
. The function implements the stream and the associated internal functions for read
, rewind
and close
.
file_inputStream_create
.
file_inputStream_create[Top] [Shared Functions]
#include <nsStream.h>
int file_outputStream_create (
char * in_fileName,
nsmail_outputstream_t ** out_ppRetOutputStream);
in_fileName | |
out_ppRetOutputStream |
NSMAIL_OK
(0).nsmail_outputstream_t
.
file_inputStream_create, buf_inputStream_create
nsmail_outputstream_t * pOutputStream;
ret_value = file_outputStream_create (<file-name>,
&pOutputStream);
ret_value = mime_message_putByteStream (
<other-params>, pOutputStream);
/* When done, close and free the stream. */
pOutputStream->close (pOutputStream->rock);
nsStream_free (pOutputStream);
pOutputStream = NULL;[Top] [Shared Functions]
#include <nsStream.h>
void nsStream_free (void * pMem);
pMem |
NSMAIL_OK
(0).file_inputStream_create, buf_inputStream_create,[Top] [Shared Functions]
file_outputStream_create
Last Updated: June 3, 1998