view mcabber/src/utils.h @ 409:82064124324d

Fix a SIGPIPE issue when connecting to the server This change fixes a SIGPIPE when cw_nb_connect() is called too fast after make_nb_netsocket(). In this case getsockopt() reports a wrong value (no error) and the first jab_send_raw() in jconn.c gets a SIGPIPE. The delay in jabglue.c can then be removed.
author Mikael Berthe <mikael@lilotux.net>
date Sat, 27 Aug 2005 22:20:03 +0200
parents bd5638c21834
children 2f9852610cf4
line wrap: on
line source

#ifndef __UTILS_H__
#define __UTILS_H__ 1

void ut_InitDebug(unsigned int level, const char *file);
void ut_WriteLog(unsigned int flag, const char *data);

int checkset_perm(const char *name, unsigned int setmode);

int    to_iso8601(char *dststr, time_t timestamp);
time_t from_iso8601(const char *timestamp, int utc);

#endif