This implements an alterego of gtk-gnutella to access the local socket of gtk-gnutella.
|
Data Structures |
| struct | shell_buf |
| struct | line_buf |
Functions |
| | RCSID ("$Id: local_shell.c 13738 2007-05-25 12:38:56Z rmanfredi $") |
| int | read_data (int fd, struct shell_buf *sb) |
| | Attempts to fill the shell buffer from the given file descriptor, however, the buffer is not further filled before it is completely empty.
|
| int | read_data_with_readline (struct line_buf *line, struct shell_buf *sb) |
| | Attempts to fill the shell buffer using readline(), however, the buffer is not further filled before it is completely empty.
|
| int | write_data (int fd, struct shell_buf *sb) |
| | Attempts to flush the shell buffer to the given file descriptor.
|
| int | compat_poll (struct pollfd *fds, size_t n, int timeout) |
| int | wait_for_io (struct pollfd *fds, size_t n, int timeout) |
| | Sleeps until any I/O event happens or the timeout expires.
|
| int | local_shell_mainloop (int fd) |
| void | local_shell (const char *socket_path) |
| | A simple shell to speak to the local socket of gtk-gnutella.
|