start_rfcomm_server() and start_obex_server() sound very useful for a higher-level api. For me, the flexibility would be in providing a lower-level socket interface with the standard bsd socket functions like to create and bind sockets. Like having bluez sockets, but with obex functionality added that you can fit onto existing RFCOMM sockets.

The custom transport support in openobex is really useful, and I have been able to use that to use a custom serverfd; it would just be nice to set the serverfd so I could use the existing openobex bluetooth transport implementation instead. But I can see that in many cases you only need to tell a server what port to use, and not the details such as the file descriptor.

Bea


--__--__--

Message: 2
Date: Tue, 7 Mar 2006 20:09:03 +0300 (MSK)
From: Alex Kanavin <[EMAIL PROTECTED]>
To: [email protected]
Subject: Re: [openobex-users] Setting the serverfd for an OBEX server
Reply-To: [email protected]

On Tue, 7 Mar 2006, Bea Lam wrote:

I'd like to set the serverfd because I'm developing an API for RFCOMM and OBEX communication. The ideal approach would be to allow the programmer to create a RFCOMM server socket, bind to an available port, and then use that socket for either RFCOMM or OBEX communication as they see fit. This seems
more flexible and customisable than running an OBEX server on a port
designated through the openobex api. And since OBEX communication has an
underlying RFCOMM channel, and RFCOMM channels can be started on
user-designated ports, it seems to makes sense for my api to allow OBEX
services to be run on user-designated ports too.

What's wrong with providing

start_rfcomm_server(int port);
start_obex_server(int port);

in the API?

Where is the extra flexibility in allowing the application programmer to
create a socket himself, exactly?

Alexander

Homepage: http://www.sensi.org/~ak/



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to