GnomeVFS - Filesystem Abstraction library | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
gboolean gnome_vfs_ssl_enabled (void); GnomeVFSResult gnome_vfs_ssl_create (GnomeVFSSSL **handle_return, const char *host, unsigned int port); GnomeVFSResult gnome_vfs_ssl_create_from_fd (GnomeVFSSSL **handle_return, gint fd); GnomeVFSResult gnome_vfs_ssl_read (GnomeVFSSSL *ssl, gpointer buffer, GnomeVFSFileSize bytes, GnomeVFSFileSize *bytes_read); GnomeVFSResult gnome_vfs_ssl_write (GnomeVFSSSL *ssl, gconstpointer buffer, GnomeVFSFileSize bytes, GnomeVFSFileSize *bytes_written); void gnome_vfs_ssl_destroy (GnomeVFSSSL *ssl); GnomeVFSSocket* gnome_vfs_ssl_to_socket (GnomeVFSSSL *ssl); |
gboolean gnome_vfs_ssl_enabled (void); |
Checks whether GnomeVFS was compiled with SSL support.
GnomeVFSResult gnome_vfs_ssl_create (GnomeVFSSSL **handle_return, const char *host, unsigned int port); |
Creates an SSL socket connection at handle_return to host using port port.
GnomeVFSResult gnome_vfs_ssl_create_from_fd (GnomeVFSSSL **handle_return, gint fd); |
Try to establish an SSL connection over the file descriptor fd.
GnomeVFSResult gnome_vfs_ssl_read (GnomeVFSSSL *ssl, gpointer buffer, GnomeVFSFileSize bytes, GnomeVFSFileSize *bytes_read); |
Read bytes bytes of data from the SSL socket ssl into buffer.
ssl : | SSL socket to read data from |
buffer : | allocated buffer of at least bytes bytes to be read into |
bytes : | number of bytes to read from ssl into buffer |
bytes_read : | pointer to a GnomeVFSFileSize, will contain the number of bytes actually read from the socket on return. |
Returns : | GnomeVFSResult indicating the success of the operation |
GnomeVFSResult gnome_vfs_ssl_write (GnomeVFSSSL *ssl, gconstpointer buffer, GnomeVFSFileSize bytes, GnomeVFSFileSize *bytes_written); |
Write bytes bytes of data from buffer to ssl.
ssl : | SSL socket to write data to |
buffer : | data to write to the socket |
bytes : | number of bytes from buffer to write to ssl |
bytes_written : | pointer to a GnomeVFSFileSize, will contain the number of bytes actually written to the socket on return. |
Returns : | GnomeVFSResult indicating the success of the operation |
void gnome_vfs_ssl_destroy (GnomeVFSSSL *ssl); |
Free resources used by ssl and close the connection.