Up

gdnc documentation

Authors

Richard Frith-Macdonald (richard@brainstorm.co.uk)

Copyright: (C) 1998 Free Software Foundation, Inc.


Contents -

  1. gdnc
  2. Software documentation for the GDNCClient class
  3. Software documentation for the GDNCNotification class
  4. Software documentation for the GDNCObserver class
  5. Software documentation for the GDNCServer class
  6. Software documentation for the NSDistributedNotificationCenterGDNCDummy class
  7. gdnc variables
  8. gdnc functions

gdnc

The gdnc daemon is used by GNUstep programs to send notifications and messages to one another, in conjunction with the Base library Notification-related classes.

Every user needs to have his own instance of gdnc running. While gdnc will be started automatically as soon as it is needed, it is recommended to start gdnc in a personal login script like ~/.bashrc or ~/.cshrc. Alternatively you can launch gpbs when your windowing system or the window manager is started. For example, on systems with X11 you can launch gdnc from your.xinitrc script or alternatively - if you are running Window Maker - put it in Window Maker's autostart script. See the GNUstep Build Guide for a sample startup script.

Please see the man page for more information.

Software documentation for the GDNCClient class

GDNCClient : NSObject

Declared in:
gdnc.m
Standards:

Description forthcoming.


Instance Variables



Instance Variables for GDNCClient Class

client

@public id client;

Description forthcoming.


observers

@public NSMutableArray* observers;

Description forthcoming.


suspended

@public BOOL suspended;

Description forthcoming.





Software documentation for the GDNCNotification class

GDNCNotification : NSObject

Declared in:
gdnc.m
Standards:
  • MacOS-X
  • OpenStep
  • GNUstep

Description forthcoming.


Instance Variables

Method summary

notificationWithName: object: data: 

+ (GDNCNotification*) notificationWithName: (NSString*)notificationName object: (NSString*)notificationObject data: (NSData*)notificationData;

Description forthcoming.




Instance Variables for GDNCNotification Class

info

@public NSData* info;

Description forthcoming.


name

@public NSString* name;

Description forthcoming.


object

@public NSString* object;

Description forthcoming.





Software documentation for the GDNCObserver class

GDNCObserver : NSObject

Declared in:
gdnc.m
Standards:
  • MacOS-X
  • OpenStep
  • GNUstep

Description forthcoming.


Instance Variables



Instance Variables for GDNCObserver Class

behavior

@public NSNotificationSuspensionBehavior behavior;

Description forthcoming.


client

@public GDNCClient* client;

Description forthcoming.


notificationName

@public NSString* notificationName;

Description forthcoming.


notificationObject

@public NSString* notificationObject;

Description forthcoming.


observer

@public unsigned int observer;

Description forthcoming.


queue

@public NSMutableArray* queue;

Description forthcoming.


selector

@public NSString* selector;

Description forthcoming.





Software documentation for the GDNCServer class

GDNCServer : NSObject

Declared in:
gdnc.m
Conforms to:
GDNCProtocol
Standards:
  • MacOS-X
  • OpenStep
  • GNUstep

Description forthcoming.


Instance Variables

Method summary

addObserver: selector: name: object: suspensionBehavior: for: 

- (void) addObserver: (unsigned long)anObserver selector: (NSString*)aSelector name: (NSString*)notificationName object: (NSString*)anObject suspensionBehavior: (NSNotificationSuspensionBehavior)suspensionBehavior for: (id)client;

Description forthcoming.


connection: shouldMakeNewConnection: 

- (BOOL) connection: (NSConnection*)ancestor shouldMakeNewConnection: (NSConnection*)newConn;

Description forthcoming.


connectionBecameInvalid: 

- (id) connectionBecameInvalid: (NSNotification*)notification;

Description forthcoming.


postNotificationName: object: userInfo: deliverImmediately: for: 

- (void) postNotificationName: (NSString*)notificationName object: (NSString*)notificationObject userInfo: (NSData*)d deliverImmediately: (BOOL)deliverImmediately for: (id)client;

Description forthcoming.


removeObserver: 

- (void) removeObserver: (GDNCObserver*)observer;

Description forthcoming.


removeObserver: name: object: for: 

- (void) removeObserver: (unsigned long)anObserver name: (NSString*)notificationName object: (NSString*)notificationObject for: (id)client;

Description forthcoming.


removeObserversForClients: 

- (void) removeObserversForClients: (NSMapTable*)clients;

Description forthcoming.


setSuspended: for: 

- (void) setSuspended: (BOOL)flag for: (id)client;

Description forthcoming.




Instance Variables for GDNCServer Class

allObservers

@protected NSHashTable* allObservers;

Description forthcoming.


conn

@protected NSConnection* conn;

Description forthcoming.


connections

@protected NSMapTable* connections;

Description forthcoming.


observersForNames

@protected NSMutableDictionary* observersForNames;

Description forthcoming.


observersForObjects

@protected NSMutableDictionary* observersForObjects;

Description forthcoming.





Software documentation for the NSDistributedNotificationCenterGDNCDummy class

NSDistributedNotificationCenterGDNCDummy : NSObject

Declared in:
gdnc.m
Conforms to:
GDNCClient
Standards:
  • MacOS-X
  • OpenStep
  • GNUstep

Description forthcoming.

Method summary

postNotificationName: object: userInfo: selector: to: 

- (oneway void) postNotificationName: (NSString*)name object: (NSString*)object userInfo: (NSData*)info selector: (NSString*)aSelector to: (unsigned long)observer;

Description forthcoming.


gdnc variables

ebuf

char ebuf;

Description forthcoming.


is_daemon

BOOL is_daemon;

Description forthcoming.


log_priority

int log_priority;

Description forthcoming.


gdnc functions

gdnc_log

void gdnc_log(int prio);

Description forthcoming.


ihandler

void ihandler(int sig);

Description forthcoming.



Up