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 5af6f1d2bf40d29864ad69d6619950e50d40e0cd..001548ebae5408424a74621694ada982993131ea 100644
(file)
--- a/
src/ircd_client.c
+++ b/
src/ircd_client.c
@@
-18,6
+18,7
@@
#include "ircd_client.h"
#include "ircd_sock.h"
#include "struct_connection.h"
#include "ircd_client.h"
#include "ircd_sock.h"
#include "struct_connection.h"
+#include "struct_client.h"
#include "struct_auth.h"
#include "ircd_config.h"
#include "struct_auth.h"
#include "ircd_config.h"
@@
-26,7
+27,12
@@
#include <stdarg.h>
#define CLIENT_MAXLEN 512
#include <stdarg.h>
#define CLIENT_MAXLEN 512
-void client_printf(struct Connection *conn, const char *text, ...) {
+struct Client *client_connected(struct Auth *auth) {
+
+ return NULL;
+}
+
+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;
@@
-37,15
+43,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) {
-
}
}