9193
|
1 #ifndef _MSN_DIRECTCONN_H_
|
|
2 #define _MSN_DIRECTCONN_H_
|
|
3
|
|
4 typedef struct _MsnDirectConn MsnDirectConn;
|
|
5
|
|
6 #include "slplink.h"
|
|
7 #include "slp.h"
|
|
8 #include "msg.h"
|
|
9
|
|
10 struct _MsnDirectConn
|
|
11 {
|
|
12 MsnSlpLink *slplink;
|
|
13 MsnSlpCall *initial_call;
|
|
14
|
|
15 gboolean acked;
|
|
16
|
|
17 char *nonce;
|
|
18
|
|
19 int fd;
|
|
20
|
|
21 int port;
|
|
22 int inpa;
|
|
23
|
|
24 int c;
|
|
25 };
|
|
26
|
|
27 MsnDirectConn *msn_directconn_new(MsnSlpLink *slplink);
|
|
28 gboolean msn_directconn_connect(MsnDirectConn *directconn,
|
|
29 const char *host, int port);
|
|
30 void msn_directconn_listen(MsnDirectConn *directconn);
|
|
31 void msn_directconn_send_msg(MsnDirectConn *directconn, MsnMessage *msg);
|
|
32 void msn_directconn_parse_nonce(MsnDirectConn *directconn, const char *nonce);
|
|
33 void msn_directconn_destroy(MsnDirectConn *directconn);
|
|
34 void msn_directconn_send_handshake(MsnDirectConn *directconn);
|
|
35
|
|
36 #endif /* _MSN_DIRECTCONN_H_ */
|