smtp.h

tmi2_fluffos_v2/lib/include/net/smtp.h · 498 B

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

// smtp include, based on Truilkan's smtp include

#ifndef __SMTP_H
#define __SMTP_H

#define PORT_SMTP (__PORT__ - 4)

#define LOG_SMTP "smtp"
#define LOG_SMTP_ERR "smtp_errors"

#define SMTP_DEBUG(y) do { \
    if (find_player(DEBUGGER)) tell_object(find_player(DEBUGGER),y); \
} while (0)

void listen_callback(int fd);
void write_callback(int fd);
void read_callback(int fd, string str);
static private void smtp_send(int fd, string code);
void close_connection(int fd);

#endif /* __SMTP_H */

Site Stats

Snippets: 1791
Codebases: 571