equal
deleted
inserted
replaced
29 |
29 |
30 typedef void (* IncomingDataFunc) (LmSocket *socket, |
30 typedef void (* IncomingDataFunc) (LmSocket *socket, |
31 const gchar *buf, |
31 const gchar *buf, |
32 gpointer user_data); |
32 gpointer user_data); |
33 |
33 |
|
34 typedef void (* SocketClosedFunc) (LmSocket *socket, |
|
35 LmDisconnectReason reason, |
|
36 gpointer user_data); |
|
37 |
|
38 typedef void (* ConnectResultFunc) (LmSocket *socket, |
|
39 gboolean result, |
|
40 gpointer user_data); |
|
41 |
34 gboolean lm_socket_output_is_buffered (LmSocket *socket, |
42 gboolean lm_socket_output_is_buffered (LmSocket *socket, |
35 const gchar *buffer, |
43 const gchar *buffer, |
36 gint len); |
44 gint len); |
37 void lm_socket_setup_output_buffer (LmSocket *socket, |
45 void lm_socket_setup_output_buffer (LmSocket *socket, |
38 const gchar *buffer, |
46 const gchar *buffer, |
40 gint lm_socket_do_write (LmSocket *socket, |
48 gint lm_socket_do_write (LmSocket *socket, |
41 const gchar *buf, |
49 const gchar *buf, |
42 gint len); |
50 gint len); |
43 |
51 |
44 LmSocket * lm_socket_create (GMainContext *context, |
52 LmSocket * lm_socket_create (GMainContext *context, |
45 IncomingDataFunc func, |
53 IncomingDataFunc data_func, |
|
54 SocketClosedFunc closed_func, |
|
55 ConnectResultFunc connect_func, |
46 gpointer user_data, |
56 gpointer user_data, |
47 LmConnection *connection, |
57 LmConnection *connection, |
48 gboolean blocking, |
58 gboolean blocking, |
49 const gchar *server, |
59 const gchar *server, |
50 guint port, |
60 guint port, |