sdp_record_register()
Hi,
Function call:
err = sdp_record_register(session, record, 0);
returns zero and error is 'Illegal seek'.
Arguments should be ok (session is return value of successful call to sdp_connect() and record works ok with another function calls). What might be wrong?
-Ari
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel Holtmann
maintainerHi Ari,
Quoted 6 lines
Function call:
err =sdp_record_register(session, record, 0);
returns zero and error is 'Illegal seek'.
Arguments should be ok (session is return value of successful call tosdp_connect()and record works ok with another function calls). What might be wrong?
the sdp_connect() has been done to the local SDP server, right. You can't register SDP records for remote connections.
Regards
Marcel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Quoted 9 lines · Marcel Holtmann
Hi Ari,
Quoted 6 lines
Function call:
err =sdp_record_register(session, record, 0);
returns zero and error is 'Illegal seek'.
Arguments should be ok (session is return value of successful call tosdp_connect()and record works ok with another function calls). What might be wrong?
Quoted 3 lines
the
sdp_connect()has been done to the local SDP server, right. You can't register SDP records for remote connections.
In sdp_record_register() there is:
if (!session->local) {
errno = EREMOTE;
return -1;
}Did you mean this by the remote connection (the program passes this test)?
Anyway, it seems to be that the only way to sdp_record_register() return ESPIPE (Illegal seek) error is when call to sdp_send_req_w4_rsp() fails. Does this give any hint?
-Ari
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel Holtmann
maintainerHi Ari,
Quoted 13 lines
Quoted 10 lines
Quoted 6 lines
Function call:
err =sdp_record_register(session, record, 0);
returns zero and error is 'Illegal seek'.
Arguments should be ok (session is return value of successful call tosdp_connect()and record works ok with another function calls). What might be wrong?the
sdp_connect()has been done to the local SDP server, right. You can't register SDP records for remote connections.In
sdp_record_register()there is:
Quoted 7 lines
if (!session->local) { errno = EREMOTE; return -1; }Did you mean this by the remote connection (the program passes this test)?
Anyway, it seems to be that the only way tosdp_record_register()return ESPIPE (Illegal seek) error is when call tosdp_send_req_w4_rsp()fails. Does this give any hint?
make sure that sdpd process is running. Follow the examples from sdptool or pand.
Regards
Marcel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Quoted 20 lines · Marcel Holtmann
Hi Ari,
Quoted 18 lines
Quoted 10 lines
Quoted 6 lines
Function call:
err =sdp_record_register(session, record, 0);
returns zero and error is 'Illegal seek'.
Arguments should be ok (session is return value of successful call tosdp_connect()and record works ok with another function calls). What might be wrong?the
sdp_connect()has been done to the local SDP server, right. You can't register SDP records for remote connections.In
sdp_record_register()there is:if (!session->local) { errno = EREMOTE; return -1; }
Quoted 6 lines
Quoted 2 lines
Did you mean this by the remote connection (the program passes this test)?
Anyway, it seems to be that the only way tosdp_record_register()return ESPIPE (Illegal seek) error is when call tosdp_send_req_w4_rsp()fails. Does this give any hint?make sure that sdpd process is running. Follow the examples from sdptool or pand.
sdpd is running. In 'sdptool.c' there is no call to 'sdp_record_register()'. Is there any other examples of registering a service record?
-Ari
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Quoted 24 lines · Ari Paavilainen
Quoted 23 lines · Marcel Holtmann
Hi Ari,
Quoted 20 lines
Quoted 10 lines
Quoted 6 lines
Function call:
err =sdp_record_register(session, record, 0);
returns zero and error is 'Illegal seek'.
Arguments should be ok (session is return value of successful call tosdp_connect()and record works ok with another function calls). What might be wrong?the
sdp_connect()has been done to the local SDP server, right. You can't register SDP records for remote connections.In
sdp_record_register()there is:if (!session->local) { errno = EREMOTE; return -1; }Did you mean this by the remote connection (the program passes this test)?
Anyway, it seems to be that the only way tosdp_record_register()return ESPIPE (Illegal seek) error is when call tosdp_send_req_w4_rsp()fails. Does this give any hint?
Quoted 7 lines
Quoted 3 lines
make sure that sdpd process is running. Follow the examples from sdptool or pand.
sdpd is running. In '
sdptool.c' there is no call to 'sdp_record_register()'. Is there any other examples of registering a service record?
This is the code to register Obex push support for GNOME's Bluetooth utilities:
http://cvs.gnome.org/viewcvs/libbtctl/src/obexsdp.c?view=markup
---
Bastien Nocera <[email protected]>
How can you be so serious on a film where you are dodging explosions and running away with [...] an eight-foot monkey on this side, and the eight-foot monkey is the one flying the spaceship? -- Mark Hamill
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel