Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, March 28, 2024

File: [Platon] / dead / mail2sms / mail2sms.h (download)

Revision 1.12, Fri Nov 16 19:30:01 2001 UTC (22 years, 4 months ago) by host8


Changes since 1.11: +4 -1 lines

Patched bug in declaration/definition of global variable debug.

/*
 * Author: Lubomir Host 'rajo' <host8@kepler.fmph.uniba.sk>
 * $Log: mail2sms.h,v $
 * Revision 1.12  2001/11/16 19:30:01  host8
 * Patched bug in declaration/definition of global variable debug.
 *
 * Revision 1.11  2001/10/30 17:24:02  host8
 * New implementation of http request.
 *
 * Revision 1.10  2001/10/27 20:32:43  host8
 * mail2sms.c splited to multiple files.
 * Little improvements in Makefile.in.
 *
 * Revision 1.9  2001/10/25 20:05:28  host8
 * First implementation of login with password.
 *
 * Revision 1.8  2001/10/25 17:37:58  host8
 * Support only some sms-gates available.
 *
 * Revision 1.7  2001/10/24 19:24:49  host8
 * Added parameter -p (look for password).
 *
 * Revision 1.6  2001/10/02 16:24:47  jombik9
 * Added suport for Subject header.
 * Removed white characters in SMS message.
 * Minor bugfixies & lots of improvements.
 * Unneccessary files removed from CVS repository.
 */

#ifndef _MAIL2SMS_H
#define _MAIL2SMS_H

#define MAX_CONNECTS 10

//#define AZET_SMS_LEN 420
#define SMS_LEN 300
#define MESSAGE_LEN 4096
#define SCRATCH_LEN 4096
#define KEYBD_LEN 4096

#define SMS_SEPARATOR "/"

#define AZET 0
#define WHIZDIARY 1
#define SPISNET 2
#define GLOBTELNET 3
#define MTNSMS 4

#ifdef DEBUG
    extern int debug;
#endif

typedef struct GLOBALS_STRUCT {
    char *number;
    char text[SMS_LEN + 1];
    int is_mail:1;
    int reverse:1;
    int skipped_header:1;
    int is_header:1;
    int is_forwarded:1;
} GLOB;

typedef struct SERVER {
    int id;
    char *desc;
    char *ip;
    int port;
    int smslen;
} SERVER;

extern char *message, *scratch, *keybd;
extern GLOB g;
extern SERVER servers[];
extern int id; /* index to servers[] */

extern void void_read_at_exit(void);
extern void my_free(void *ptr);

#endif /* #ifndef _MAIL2SMS_H */


Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top