Support for network tunnelling. More...
#include "config.h"#include <errno.h>#include <fcntl.h>#include <stdbool.h>#include <string.h>#include <sys/types.h>#include <sys/wait.h>#include <unistd.h>#include "private.h"#include "mutt/lib.h"#include "config/lib.h"#include "core/lib.h"#include "connaccount.h"#include "connection.h"
Include dependency graph for tunnel.c:Go to the source code of this file.
Data Structures | |
| struct | TunnelSockData |
| A network tunnel (pair of sockets) More... | |
Functions | |
| static int | tunnel_socket_open (struct Connection *conn) |
| Open a tunnel socket - Implements Connection::open() -. | |
| static int | tunnel_socket_read (struct Connection *conn, char *buf, size_t count) |
| Read data from a tunnel socket - Implements Connection::read() -. | |
| static int | tunnel_socket_write (struct Connection *conn, const char *buf, size_t count) |
| Write data to a tunnel socket - Implements Connection::write() -. | |
| static int | tunnel_socket_poll (struct Connection *conn, time_t wait_secs) |
| Check if any data is waiting on a socket - Implements Connection::poll() -. | |
| static int | tunnel_socket_close (struct Connection *conn) |
| Close a tunnel socket - Implements Connection::close() -. | |
| void | mutt_tunnel_socket_setup (struct Connection *conn) |
| Sets up tunnel connection functions. | |
Support for network tunnelling.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file tunnel.c.
| void mutt_tunnel_socket_setup | ( | struct Connection * | conn | ) |
Sets up tunnel connection functions.
| conn | Connection to assign functions to |
Assign tunnel socket functions to the Connection conn.
Definition at line 242 of file tunnel.c.
Here is the call graph for this function:
Here is the caller graph for this function: