|  |  | Linc Reference Manual |  | 
|---|
linc-protocol —
enum LINCProtocolFlags; void (*LINCProtocolSetupFunc) (int fd, LINCConnectionOptions cnx_flags); void (*LINCProtocolDestroyFunc) (int fd, const char *host_info, const char *serv_info); gboolean (*LINCProtocolGetSockInfoFunc) (const LINCProtocolInfo *proto, const struct sockaddr *sockaddr, gchar **hostname, gchar **service); struct LINCProtocolInfo; void linc_set_tmpdir (const char *dir);
typedef enum {
	LINC_PROTOCOL_SECURE     = 1<<0,
	LINC_PROTOCOL_NEEDS_BIND = 1<<1
} LINCProtocolFlags;
void        (*LINCProtocolSetupFunc)        (int fd,
                                             LINCConnectionOptions cnx_flags);
| fd : | |
| cnx_flags : | 
void        (*LINCProtocolDestroyFunc)      (int fd,
                                             const char *host_info,
                                             const char *serv_info);
| fd : | |
| host_info : | |
| serv_info : | 
gboolean (*LINCProtocolGetSockInfoFunc) (const LINCProtocolInfo *proto, const struct sockaddr *sockaddr, gchar **hostname, gchar **service);
| proto : | |
| sockaddr : | |
| hostname : | |
| service : | |
| Returns : | 
struct LINCProtocolInfo {
	const char                 *name;
	int                         family;
	int                         addr_len;
	int                         stream_proto_num;
	LINCProtocolFlags           flags;
	LINCProtocolSetupFunc       setup;
	LINCProtocolDestroyFunc     destroy;
	LINCProtocolGetSockAddrFunc get_sockaddr;
	LINCProtocolGetSockInfoFunc get_sockinfo;
	LINCProtocolIsLocal         is_local;
	/* This structure is private and may be extended in future */
	gpointer                    dummy[8];
};
| << Linc Reference Manual | LINCConnection >> |