| GnomeVFS - Filesystem Abstraction library |
|---|
GnomeVFSResult gnome_vfs_inet_connection_create (GnomeVFSInetConnection **connection_return, constgchar *host_name,guint host_port,GnomeVFSCancellation *cancellation);void gnome_vfs_inet_connection_destroy (GnomeVFSInetConnection *connection,GnomeVFSCancellation *cancellation);void gnome_vfs_inet_connection_free (GnomeVFSInetConnection *connection,GnomeVFSCancellation *cancellation);GnomeVFSSocket * gnome_vfs_inet_connection_to_socket (GnomeVFSInetConnection *connection);GnomeVFSSocketBuffer * gnome_vfs_inet_connection_to_socket_buffer (GnomeVFSInetConnection *connection);int gnome_vfs_inet_connection_get_fd (GnomeVFSInetConnection *connection); GnomeVFSResult gnome_vfs_inet_connection_create_from_address (GnomeVFSInetConnection **connection_return, GnomeVFSAddress *address,guint host_port,GnomeVFSCancellation *cancellation); GnomeVFSAddress* gnome_vfs_inet_connection_get_address (GnomeVFSInetConnection *connection);char * gnome_vfs_inet_connection_get_ip (GnomeVFSInetConnection *connection);
A
GnomeVFSResult gnome_vfs_inet_connection_create (GnomeVFSInetConnection **connection_return, constgchar *host_name,guint host_port,GnomeVFSCancellation *cancellation);
Creates a connection at connection_return to host_name using
port port.
connection_return : |
pointer to a pointer to a |
host_name : |
string indicating the host to establish an internet connection with. |
host_port : |
port number to connect to. |
cancellation : |
handle allowing cancellation of the operation. |
| Returns : | GnomeVFSResult indicating the success of the operation. |
void gnome_vfs_inet_connection_destroy (GnomeVFSInetConnection *connection,GnomeVFSCancellation *cancellation);
Closes/Destroys connection.
connection : |
connection to destroy. |
cancellation : |
handle for cancelling the operation. |
void gnome_vfs_inet_connection_free (GnomeVFSInetConnection *connection,GnomeVFSCancellation *cancellation);
Frees connection without closing the socket.
connection : |
connection to free. |
cancellation : |
handle for cancelling the operation. |
GnomeVFSSocket * gnome_vfs_inet_connection_to_socket (GnomeVFSInetConnection *connection);
Wrap connection inside a standard
connection : |
connection to be wrapped into a |
| Returns : | a newly created connection.
|
GnomeVFSSocketBuffer * gnome_vfs_inet_connection_to_socket_buffer (GnomeVFSInetConnection *connection);
Wrap connection inside a standard
connection : |
connection to be wrapped into a |
| Returns : | a newly created connection.
|
int gnome_vfs_inet_connection_get_fd (GnomeVFSInetConnection *connection);
Retrieve the UNIX file descriptor corresponding to connection.
connection : |
connection to get the file descriptor from. |
| Returns : | file descriptor. |
GnomeVFSResult gnome_vfs_inet_connection_create_from_address (GnomeVFSInetConnection **connection_return, GnomeVFSAddress *address,guint host_port,GnomeVFSCancellation *cancellation);
Creates a connection at connection_return to address using
port port.
connection_return : |
pointer to a pointer to a |
address : |
a valid GnomeVFSAddress. |
host_port : |
port number to connect to. |
cancellation : |
handle allowing cancellation of the operation. |
| Returns : | GnomeVFSResult indicating the success of the operation. |
Since 2.8
GnomeVFSAddress* gnome_vfs_inet_connection_get_address (GnomeVFSInetConnection *connection);
Retrieve the address of the other side of a connected connection.
connection : |
connection to get the address from. |
| Returns : | a GnomeVFSAddress containing the address. Since 2.8 |