This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kioslave & kdemain arguments

Tags: None
(comma "," separated)
fluca1978
Registered Member
Posts
81
Karma
0
OS

kioslave & kdemain arguments

Thu Mar 08, 2012 2:21 pm
Hi all,
experimenting with kioslave I found that the kdemain receives always four parameters (when called via kioclient):
0 => the slave executable name (kio_<protocol>)
1 => the protocol
2 => a local socket connected to klauncher
3 => a local socket connected to kioclient

Can anyone explain me what are the purposes of the last two sockets? If I get it right klauncher is waiting for incoming connections to serve via such socket, but how am I supposed to use them?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
In general you do not need to concern yourself with how the KIO infrastructure communicates commands and data.

You should follow the general guides on how to write a KIO slave, which are available on KDE Techbase.

My guess would be that these arguments are given to a generic launcher - which then loads the appropriate slave plugin and renames itself as kio_<protocol>

The two sockets are for communication purposes. The KLauncher socket is used to manage requests as slaves can be reused by more than one application. The second socket is for the transfer of the retrieved data (which only the application itself is interested in - sending it via KLauncher would be overkill)


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft