![]() |
![]() |
![]() |
NNTPGrab Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define NNTPGRAB_GLUE_VERSION NntpgrabGlue * nntpgrab_glue_new (void
); void nntpgrab_glue_destroy (NntpgrabGlue *obj
); ngboolean nntpgrab_glue_connect (NntpgrabGlue *obj
,const char *hostname
,int port
,const char *username
,const char *password
,ngboolean use_ssl
,char **err
,char **warnings
); ngboolean nntpgrab_glue_get_is_connected (NntpgrabGlue *obj
); ngboolean nntpgrab_glue_get_is_standalone (NntpgrabGlue *obj
);
NntpgrabGlue * nntpgrab_glue_new (void
);
Creates a new instance of the NntpgrabGlue object. This is required for all other NNTPGrab functions
Returns : |
An instance of the NntpgrabGlue which need to be used for other NNTPGrab functions |
void nntpgrab_glue_destroy (NntpgrabGlue *obj
);
Cleanup the NNTPGrab Glue library. After this function is called, the NntpgrabGlue instance can't be used anymore
|
An instance of the NntpgrabGlue |
ngboolean nntpgrab_glue_connect (NntpgrabGlue *obj
,const char *hostname
,int port
,const char *username
,const char *password
,ngboolean use_ssl
,char **err
,char **warnings
);
Connect to an already running NNTPGrab Server OR start the standalone version of NNTPGrab Note that even if this function returns TRUE, the warnings argument MAY be set
|
An instance of the NntpgrabGlue |
|
The hostname where the NNTPGrab Server is running. If this is NULL, the standalone version of NNTPGrab will be started. In that case, the contents of the fields port, username, password and use_ssl are ignored. [allow-none] |
|
The port where the NNTPGrab Server is running |
|
The username of an user who is allowed to connect to the NNTPGrab Server. This feature isn't implemented yet, so keep it NULL for now. [allow-none] |
|
The password of an user who is allowed to connect to the NNTPGrab Server. This feature isn't implemented yet, so keep it NULL for now. [allow-none] |
|
Do we want to have an encrypted connection to the NNTPGrab Server. This feature isn't implemented yet, so keep it FALSE for now |
|
Pointer to a char*. If an errors occurs, the reason will be placed in this field. Needs to be freed using ngfree() . Can be NULL to ignore errors. [allow-none][out]
|
|
Pointer to a char*. If an (non-fatal) warning occurs, the reason will be placed in this field. Needs to be freed using ngfree() . Can be NULL to ignore errors. [allow-none][out]
|
Returns : |
TRUE on success, FALSE on failure |
ngboolean nntpgrab_glue_get_is_connected (NntpgrabGlue *obj
);
Find out is we are already connected to an NNTPGrab Server
|
An instance of the NntpgrabGlue |
Returns : |
TRUE if we are already connected, FALSE if not |