Displaying 2 results from an estimated 2 matches for "example_privates".
2005 Feb 02
0
Re: VFS calls after disconnect
...f the explorer to return back to the share and map
it to a network drive.
Is there some way that this data can be preserved irrespective of the number
of times that an already connected client tries a reconnection?
Any help is highly appreciated!
Thanks,
Chetana
static int connectCnt = 0;
struct example_privates {
char *some_string;
int db_connection;
};
static int example_connect(vfs_handle_struct *handle,
connection_struct *conn, const char *service,
const char* user)
{
struct example_privates *data = NULL;
if ( connectCnt > 0 ) {
DEBUG(0,("connection to client already exists\n"));...
2004 Feb 17
0
VFS module programmieren
...on a connection basis.
If NOT leave them as they are. (e.g. this could be the variable for
the private debug class.)
If YES pack all this data into a struct. You can use handle->data to
point to such a struct on a per connection basis.
e.g. if you have such a struct:
struct example_privates {
char *some_string;
int db_connection;
};
first way of doing it:
static int example_connect(vfs_handle_struct *handle,
connection_struct *conn, const char *service,
const char* user)
{
struct example_privates *data = NULL;
/* alloc our private data */
data = (struct example_privates *)...