4 Interface org.neard.PHDC
7 Methods void RegisterAgent(dict values)
9 Register new PHDC agent.
11 PHDC Manager or Agent implementations calls this
12 method in order to register themselves against neard.
13 PHDC Managers will be notified through their
14 NewConnection method of new PHDC Agents connections.
15 PHDC Agents will be nnotified through their
16 NewConnection method when a connection to a PHDC Manager
19 Possible Errors: org.neard.Error.OutOfMemory
20 org.neard.Error.InvalidArguments
21 org.neard.Error.AlreadyExists
23 void UnregisterAgent(object path, string role)
25 Unregister an existing agent.
27 Possible Errors: org.neard.Error.OutOfMemory
28 org.neard.Error.InvalidArguments
33 "Agent" or "Manager" (mandatory)
37 Agent or Manager path (mandatory)
41 NFC urn to connect or to listen to
42 (default: "urn:nfc:sn:phdc").
45 PHDC Manager hierarchy
46 ======================
48 Interface org.neard.PHDC.Manager
49 Object path freely definable
52 Methods: void NewConnection(fd agent)
54 This method gets called when a PHDC Agent connects
55 using the p2p service name. The Phdc Manager uses
56 the given agent file descriptor to exchange data
59 void Disconnection(fd agent, error)
61 This method is called when a PHDC Agent closes the
66 This method is called when the service daemon
67 unregisters the agent. An agent can use it to do
69 There is no need to unregister the agent, because
70 when this method gets called it has already been
77 Interface org.neard.PHDC.Agent
78 Object path freely definable
80 Methods: NOT YET IMPLEMENTED