projects
/
NextIRCd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added some code
[NextIRCd.git]
/
src
/
ircd_client.c
diff --git
a/src/ircd_client.c
b/src/ircd_client.c
index 6fddf0966bbee8e2d5ab2b20dc144ce85526f54f..088d4c4da24700ad4d9873478977d1b016d04c3e 100644
(file)
--- a/
src/ircd_client.c
+++ b/
src/ircd_client.c
@@
-20,14
+20,17
@@
#include "struct_connection.h"
#include "struct_auth.h"
#include "ircd_config.h"
#include "struct_connection.h"
#include "struct_auth.h"
#include "ircd_config.h"
-#include "ircd_auth.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#define CLIENT_MAXLEN 512
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#define CLIENT_MAXLEN 512
-void client_printf(struct Connection *conn, const char *text, ...) {
+void client_connected(struct Auth *auth) {
+
+}
+
+void client_printf(struct Client *client, const char *text, ...) {
va_list arg_list;
char sendBuf[CLIENT_MAXLEN];
int pos;
va_list arg_list;
char sendBuf[CLIENT_MAXLEN];
int pos;
@@
-38,15
+41,12
@@
void client_printf(struct Connection *conn, const char *text, ...) {
if (pos < 0 || pos > (CLIENT_MAXLEN - 2)) pos = CLIENT_MAXLEN - 2;
sendBuf[pos] = '\n';
sendBuf[pos+1] = '\0';
if (pos < 0 || pos > (CLIENT_MAXLEN - 2)) pos = CLIENT_MAXLEN - 2;
sendBuf[pos] = '\n';
sendBuf[pos+1] = '\0';
- socket_send(conn, sendBuf, pos+1);
+ socket_send(c
lient->c
onn, sendBuf, pos+1);
}
}
-void client_connected(struct Connection *conn) {
- struct Auth *auth = auth_new(conn);
+void client_exit(struct Client *client, char *reason) {
+ if(client->conn) {
+
+ }
- auth_start_dnsreverse(auth);
-}
-
-void client_disconnected(struct Connection *conn) {
-
}
}