Yattm - unified GTK instant-messaging client logo
   [Generated for version 0.2-17 - Mon Jan 6 19:01:23 GMT+1 2003]

Home - Main Page - Data Structures - File List - Data Fields - Globals

console_session.h File Reference

#include <gtk/gtk.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>

Include dependency graph for console_session.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

void console_session_init (gpointer data, gint source, GdkInputCondition condition)


Function Documentation

void console_session_init gpointer    data,
gint    source,
GdkInputCondition    condition
 

Definition at line 80 of file console_session.c.

References console_session_get_command().

00081 {
00082     struct sockaddr_un remote;
00083     int len;
00084     int sock;
00085     int * listener = g_new0(int, 1);
00086     
00087     sock = accept(source, (struct sockaddr *)&remote, &len);
00088     *listener = gdk_input_add(sock, GDK_INPUT_READ,
00089                     console_session_get_command, 
00090                     (gpointer)listener);
00091 }


Contact: Andy Maloney     [Documentation generated by doxygen]