MemCom Reference Manual > MemCom C API Manual Pages > Client/Server Functions > mcGetRemoteFD

Name

mcGetRemoteFD — Get the file descriptor of the connection to a MemCom server (C API)

Synopsis

#include <memcom.h>

int mcGetRemoteFD(int handle);

Description

mcGetRemoteFD returns the file descriptor (or TCP socket) of to a remote database. If the handle is not valid or the database is not remote, a negative error number is returned.

Parameters

handle

Database handle to the remote database (input).