Click here to Skip to main content
14,737,967 members
Home » Discussions » Linux Programming
   

Linux Programming

 
GeneralRe: Seeking professional advise... Pin
Richard MacCutchan10-Mar-20 6:48
mveRichard MacCutchan10-Mar-20 6:48 
AnswerRe: Seeking professional advise... Pin
Joe Woodbury9-Jul-20 8:41
professionalJoe Woodbury9-Jul-20 8:41 
QuestionUsing bluetooth connection asynchronously - C++ Pin
Vaclav_7-Mar-20 9:49
MemberVaclav_7-Mar-20 9:49 
AnswerMessage Closed Pin
11-May-20 0:57
MemberElen Grun11-May-20 0:57 
QuestionReturn indicates failure , errno indicates status? Pin
Vaclav_6-Mar-20 7:06
MemberVaclav_6-Mar-20 7:06 
AnswerRe: Return indicates failure , errno indicates status? Pin
k50546-Mar-20 7:34
mvek50546-Mar-20 7:34 
GeneralRe: Return indicates failure , errno indicates status? Pin
Vaclav_6-Mar-20 9:18
MemberVaclav_6-Mar-20 9:18 
GeneralRe: Return indicates failure , errno indicates status? Pin
Richard MacCutchan6-Mar-20 22:42
mveRichard MacCutchan6-Mar-20 22:42 
The "in progress" status is telling you that the local device is trying to complete some operation. If you then try to use it again it may well be returning "busy" because it is unable to accept your request.

The perror() function has been around for years and has always been fairly succinct in its output. The important information is the actual errno value. It is a fairly simple matter to write your own function to display the value and the error message (see strerror(3) - Linux manual page[^]).

What you really should do is get hold of the RFC documents for TCP/IP and Bluetooth, and study the protocol details. They should give you the exact sequence of events that are supposed to happen when the two endpoints try to communicate.
GeneralRe: Return indicates failure , errno indicates status? Pin
k50547-Mar-20 5:55
mvek50547-Mar-20 5:55 
GeneralRe: Return indicates failure , errno indicates status? Pin
Vaclav_7-Mar-20 7:01
MemberVaclav_7-Mar-20 7:01 
GeneralRe: Return indicates failure , errno indicates status? Pin
Richard MacCutchan8-Mar-20 2:29
mveRichard MacCutchan8-Mar-20 2:29 
GeneralRe: Return indicates failure , errno indicates status? Pin
Member 1330167921-Dec-20 0:40
MemberMember 1330167921-Dec-20 0:40 
GeneralRe: Return indicates failure , errno indicates status? Pin
Richard MacCutchan21-Dec-20 0:48
mveRichard MacCutchan21-Dec-20 0:48 
AnswerRe: Return indicates failure , errno indicates status? Pin
Member 1330167921-Dec-20 0:40
MemberMember 1330167921-Dec-20 0:40 
QuestionUsing ba2str fails - why ? Pin
Vaclav_4-Mar-20 5:59
MemberVaclav_4-Mar-20 5:59 
AnswerRe: Using ba2str fails - why ? Pin
ZurdoDev4-Mar-20 6:14
professionalZurdoDev4-Mar-20 6:14 
GeneralRe: Using ba2str fails - why ? Pin
Vaclav_4-Mar-20 6:36
MemberVaclav_4-Mar-20 6:36 
AnswerRe: Using ba2str fails - why ? Pin
ZurdoDev4-Mar-20 6:48
professionalZurdoDev4-Mar-20 6:48 
GeneralRe: Using ba2str fails - why ? Pin
k50544-Mar-20 6:54
mvek50544-Mar-20 6:54 
AnswerRe: Using ba2str fails - why ? Pin
k50544-Mar-20 6:20
mvek50544-Mar-20 6:20 
AnswerRe: Using ba2str fails - why ? Pin
Richard MacCutchan4-Mar-20 6:34
mveRichard MacCutchan4-Mar-20 6:34 
GeneralRe: Using ba2str fails - why ? Pin
Vaclav_4-Mar-20 6:46
MemberVaclav_4-Mar-20 6:46 
GeneralRe: Using ba2str fails - why ? Pin
Richard MacCutchan4-Mar-20 7:16
mveRichard MacCutchan4-Mar-20 7:16 
AnswerSOLVED Re: Using ba2str fails - why ? Pin
Vaclav_4-Mar-20 7:33
MemberVaclav_4-Mar-20 7:33 
QuestionCan "cast looses precision " error be optioned out ? Pin
Vaclav_3-Mar-20 5:10
MemberVaclav_3-Mar-20 5:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.