Op vrijdag 14 juli 2006 21:32, schreef Sander Hoentjen: > On Fri, 2006-07-14 at 18:03 +0200, roelof wrote: > > Hi everyone, > > > > I've been quiet for some time, reading about Telepathy, the MSNP13 > > protocol and dbus. Things become more and more clear in my head (it was > > quite a jungle of all new terms, techniques, frameworks, etc. ;-)). I've > > made a first draft of what the msnlib design (API) will look like, I > > appreciate comments on it very much! The msnlib should communicate with > > the msn network (using the MSNP13 protocol) on the one side and the > > other side with the telepathy objects (connection manager, connections, > > channels) and should be used for aMSN2. > > I've a few questions on the end of the attached document. Maybe someone > > can help me with it. > > > > Roelof > > Roelof, > > just before I go on holiday i have the following remarks:
> 1) Are there any optional parameters? If so, how can we see the > difference? Example: > connect(account, password, server, initial_presence) > I can imagine that you just want to connect with the default server, so > you leave that empty Okay Sander, I'll catch this one before Roelof does! Optional parameters don't exist in C!!!! Parameters are always mandatory, but it is possible to have some value indicating 'not set', usually that is NULL if the parameter type is a pointer-type, in other cases it is some value that would be illegal (e.g. -1 if the type is int, and the value must be positive). And, it is very clear too that all these parameters need to be mandatory. Higher level code may have a default for server, and would then specify that default value when calling this one. Okay, Roelof, you take the rest :-P Btw. I did not study anything of the design in detail yet, I'm going to do that the next few hours!! > 2) disconnect(connection), first closes all SwitchBoard (SB) > connections, then closes the connection to the Notification Server (NS) > - I don't know if closing all the SB connections is a good idea. In amsn > i like being able to log off but continue to chat with certain people. > 3) start_conversation(connection, channel, account) > - why do you specify a connection here? You only need the channel and > the account i think. > 4) invite_into_conversation(connection, channel, account) > - I think this will be an exact copy of start_conversation, maybe you > can have just one function: invite_into_channel > 5) send_message(connection, channel) > - with this you imply the connection manager has to keep track of what > users are in what channel. Is that what you want, or do you want the lib > to keep track of that? > 6) a contact list has groups, so you need to be able to > add/move/copy/remove to group. > 7) send/receive winks, nudges, webcam, filetransfer > > answers to your questions: > 1) I'll leave this open for someone with c-knowledge > 2) doesn't really matter i think. What is more important is why you want > to get those lists. You could also view them as a property of a > pricipal. > 3) yes, i think you should add a group parameter. > > ok i have to go now, my flight leaves early tomorrow, so i want to get > some sleep. Good luck and I hope to see some real progress when I get > back ;) > Also I hope you get lots of feedback from the amsn project. Maybe you > can cross-post some stuff to the telepathy mailinglist as well, they > could be helpful too. > > Sander > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Amsn-devel mailing list > Amsn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/amsn-devel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel