gnome-vfs-socket-buffer
gnome-vfs-socket-buffer —
Description
Details
gnome_vfs_socket_buffer_new ()
GnomeVFSSocketBuffer* gnome_vfs_socket_buffer_new
(GnomeVFSSocket *socket);
| socket : | socket to be buffered
|
| Returns : | a newly allocated GnomeVFSSocketBuffer
|
gnome_vfs_socket_buffer_destroy ()
GnomeVFSResult gnome_vfs_socket_buffer_destroy
(GnomeVFSSocketBuffer *socket_buffer,
gboolean close_socket);| socket_buffer : | buffered socket to destray
|
| close_socket : | if TRUE the socket being buffered will be closed too
|
| Returns : | GnomeVFSResult indicating the success of the operation
|
gnome_vfs_socket_buffer_read ()
GnomeVFSResult gnome_vfs_socket_buffer_read (GnomeVFSSocketBuffer *socket_buffer,
gpointer buffer,
GnomeVFSFileSize bytes,
GnomeVFSFileSize *bytes_read);
| socket_buffer : | buffered socket to read data from
|
| buffer : | allocated buffer of at least bytes bytes to be read into
|
| bytes : | number of bytes to read from socket into socket_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
|
gnome_vfs_socket_buffer_peekc ()
GnomeVFSResult gnome_vfs_socket_buffer_peekc
(GnomeVFSSocketBuffer *socket_buffer,
char *character);| socket_buffer : | the socket buffer to read from
|
| character : | pointer to a char, will contain a character on return from
a successful "peek"
|
| Returns : | GnomeVFSResult indicating the success of the operation
|
gnome_vfs_socket_buffer_write ()
GnomeVFSResult gnome_vfs_socket_buffer_write
(GnomeVFSSocketBuffer *socket_buffer,
gconstpointer buffer,
GnomeVFSFileSize bytes,
GnomeVFSFileSize *bytes_written);| socket_buffer : | buffered socket to write data to
|
| buffer : | data to write to the socket
|
| bytes : | number of bytes from buffer to write to socket_buffer
|
| 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
|
gnome_vfs_socket_buffer_flush ()
GnomeVFSResult gnome_vfs_socket_buffer_flush
(GnomeVFSSocketBuffer *socket_buffer);| socket_buffer : | buffer to flush
|
| Returns : | GnomeVFSResult indicating the success of the operation
|