equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * socks5.c |
2 * s5b.c |
3 * |
3 * |
4 * Copyrigth (C) 2010 Nicolas Cornu <nicolas.cornu@ensi-bourges.fr> |
4 * Copyrigth (C) 2010 Nicolas Cornu <nicolas.cornu@ensi-bourges.fr> |
5 * |
5 * |
6 * This program is free software; you can redistribute it and/or modify |
6 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License as published by |
7 * it under the terms of the GNU General Public License as published by |
539 } |
539 } |
540 js5b->connection = conn; // we have a valid connection |
540 js5b->connection = conn; // we have a valid connection |
541 // TODO: send transport-info activated IQ |
541 // TODO: send transport-info activated IQ |
542 } |
542 } |
543 |
543 |
544 /** |
|
545 * @brief Handle any event on a sock |
|
546 */ |
|
547 static void handle_sock_io(GSocket *sock, GIOCondition cond, gpointer data) |
|
548 { |
|
549 switch (cond) { |
|
550 case G_IO_IN: |
|
551 break; |
|
552 case G_IO_OUT: |
|
553 break; |
|
554 case G_IO_ERR: |
|
555 break; |
|
556 case G_IO_HUP: |
|
557 break; |
|
558 default: |
|
559 ; |
|
560 // ?! |
|
561 } |
|
562 } |
|
563 |
|
564 static void _send(session_content *sc, gconstpointer data, gchar *buf, gsize size) |
544 static void _send(session_content *sc, gconstpointer data, gchar *buf, gsize size) |
565 { |
545 { |
566 return; |
546 return; |
567 } |
547 } |
568 |
548 |