Re: how to disable Default OBEX Server.
- From: "Peter Foot" <feedback@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 9 Apr 2008 07:06:05 +0100
You have to listen on the channel which is assigned when you register your service record. There is a description of the process of creating an SDP record and listening on a service in the SDK documentation. I'm assuming you are using C++ code? if not there is a shared-source .NETCF library which includes the ObexListener which already does what you need - http://inthehand.com/content/32feet.aspx
Peter
--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility
"prn" <pravin691983@xxxxxxxxx> wrote in message news:2a92ac2d-a648-4945-a003-c20c50ae8542@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Apr 8, 5:55 pm, "Peter Foot" <feedb...@xxxxxxxxxxxxxxxxxxxx> wrote:
The OBEX server runs as a service and so you must stop it. You can P/Invoke
CreateFile with the service identifier (think from memory it is OBX0:) and
ServiceIOControl with IOCTL_SERVICE_STOP to do this.
Peter
--
Peter Foot
Microsoft Device Application Development MVPwww.peterfoot.net|www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility
"prn" <pravin691...@xxxxxxxxx> wrote in message
news:c860c0c7-5521-4d29-a54b-ed3345f746b3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hello,
> I need to develop my own server over bluetooth using normal
> socket communication for windows mobile 6.0 device. Now there is a
> default obex server already running on the device, i need to disable
> this and get all the obex requests in my application. I tried by
> registering for OBEXFileTransferService and then listening on
> that..but i do
> not get the requests..it goes to the default obex server..How do i
> get
> my server running?
> Any help would be greatly appreciated..
> Waiting for your replies..please help.- Hide quoted text -
- Show quoted text -
******************************************************************************
Hi,
Thank you for your reply.
I have disabled the default obex server by making changes
Now,my server application is listening for OBEXFileTransferService,
but when i try to send any file from any device,
I dont get the connection request from the client..i am using
sockets.
What am i doing wrong? is there any port or something on which i shd
listen?
Waiting for your reply.
.
- Follow-Ups:
- Re: how to disable Default OBEX Server.
- From: prn
- Re: how to disable Default OBEX Server.
- References:
- how to disable Default OBEX Server.
- From: prn
- Re: how to disable Default OBEX Server.
- From: Peter Foot
- Re: how to disable Default OBEX Server.
- From: prn
- how to disable Default OBEX Server.
- Prev by Date: Re: GPRS Monitor
- Next by Date: Re: how to disable Default OBEX Server.
- Previous by thread: Re: how to disable Default OBEX Server.
- Next by thread: Re: how to disable Default OBEX Server.
- Index(es):
Relevant Pages
|
Loading