# DKPort class documentation

niels.grewe@halbordnung.de
2010 Free Software Foundation, Inc.
Software documentation for the DKPort class
DBusKit/DKPort.h
DKPort is used by the Distributed Objects system to communicate with D-Bus. Unless you have special needs, don't create DKPort instances yourself, but use the interfaces provided by NSConnection instead. The default +port message will return a port connected to the session bus.
enableWorkerThread
This method should be called by an application that wants to make use of the multithreaded features of DBusKit. After this method has been called, it is no longer safe to call into DBusKit from +initialize methods, which might result in deadlock from the Objective-C runtime.
portForBusType:
type
Returns a port to the specified message bus without any specified remote side.
sessionBusPort
Returns a port to the session message bus.
systemBusPort
Returns a port to the system message bus.
initWithRemote:
remote
Return a DKPort instance connected to the specified D-Bus peer on the session message bus.
initWithRemote:
remote
onBus:
bus
Return a DKPort instance connected to the specified D-Bus peer on the specified message bus.