Click here to Skip to main content
15,903,201 members
Home / Discussions / Linux Programming
   

Linux Programming

 
GeneralRe: Return indicates failure , errno indicates status? Pin
Vaclav_7-Mar-20 6:01
Vaclav_7-Mar-20 6:01 
GeneralRe: Return indicates failure , errno indicates status? Pin
Richard MacCutchan8-Mar-20 1:29
mveRichard MacCutchan8-Mar-20 1:29 
GeneralRe: Return indicates failure , errno indicates status? Pin
Member 1330167920-Dec-20 23:40
Member 1330167920-Dec-20 23:40 
GeneralRe: Return indicates failure , errno indicates status? Pin
Richard MacCutchan20-Dec-20 23:48
mveRichard MacCutchan20-Dec-20 23:48 
AnswerRe: Return indicates failure , errno indicates status? Pin
Member 1330167920-Dec-20 23:40
Member 1330167920-Dec-20 23:40 
QuestionUsing ba2str fails - why ? Pin
Vaclav_4-Mar-20 4:59
Vaclav_4-Mar-20 4:59 
AnswerRe: Using ba2str fails - why ? Pin
ZurdoDev4-Mar-20 5:14
professionalZurdoDev4-Mar-20 5:14 
GeneralRe: Using ba2str fails - why ? Pin
Vaclav_4-Mar-20 5:36
Vaclav_4-Mar-20 5:36 
AnswerRe: Using ba2str fails - why ? Pin
ZurdoDev4-Mar-20 5:48
professionalZurdoDev4-Mar-20 5:48 
GeneralRe: Using ba2str fails - why ? Pin
k50544-Mar-20 5:54
mvek50544-Mar-20 5:54 
AnswerRe: Using ba2str fails - why ? Pin
k50544-Mar-20 5:20
mvek50544-Mar-20 5:20 
AnswerRe: Using ba2str fails - why ? Pin
Richard MacCutchan4-Mar-20 5:34
mveRichard MacCutchan4-Mar-20 5:34 
GeneralRe: Using ba2str fails - why ? Pin
Vaclav_4-Mar-20 5:46
Vaclav_4-Mar-20 5:46 
GeneralRe: Using ba2str fails - why ? Pin
Richard MacCutchan4-Mar-20 6:16
mveRichard MacCutchan4-Mar-20 6:16 
AnswerSOLVED Re: Using ba2str fails - why ? Pin
Vaclav_4-Mar-20 6:33
Vaclav_4-Mar-20 6:33 
QuestionCan "cast looses precision " error be optioned out ? Pin
Vaclav_3-Mar-20 4:10
Vaclav_3-Mar-20 4:10 
AnswerRe: Can "cast looses precision " error be optioned out ? Pin
Richard MacCutchan3-Mar-20 4:43
mveRichard MacCutchan3-Mar-20 4:43 
AnswerRe: Can "cast looses precision " error be optioned out ? Pin
Daniel Pfeffer3-Mar-20 4:52
professionalDaniel Pfeffer3-Mar-20 4:52 
AnswerRe: Can "cast looses precision " error be optioned out ? Pin
k50543-Mar-20 5:52
mvek50543-Mar-20 5:52 
AnswerSOLVED Re: Can "cast looses precision " error be optioned out ? Pin
Vaclav_3-Mar-20 8:00
Vaclav_3-Mar-20 8:00 
GeneralRe: SOLVED Re: Can "cast looses precision " error be optioned out ? Pin
k50543-Mar-20 10:36
mvek50543-Mar-20 10:36 
GeneralRe: SOLVED Re: Can "cast looses precision " error be optioned out ? Pin
Vaclav_3-Mar-20 13:47
Vaclav_3-Mar-20 13:47 
QuestionBluetooth socket failures Pin
Vaclav_28-Feb-20 5:43
Vaclav_28-Feb-20 5:43 
AnswerRe: Bluetooth socket failures Pin
Richard MacCutchan28-Feb-20 6:32
mveRichard MacCutchan28-Feb-20 6:32 
GeneralRe: Bluetooth socket failures Pin
Vaclav_28-Feb-20 7:12
Vaclav_28-Feb-20 7:12 
Richard,
I have quit checking the actual file descriptor because perror gives a more information when it fails.
But after your post I added such check back.
I also replaced close with shutdown and still getting same results.

Since I still do not trust cerr /perror running on X86 I am going to switch to ARM where the cout / cerr "synchronization " is NOT an issue.

Interestingly , when I check the file descriptor on initial socket allocation , then the reallocated socket file descriptor is different.
I am not sure if that matter, but OS "should" always allocate lowest level file descriptor and that tells me that the original file descriptor is somehow still active.

One small note = I have to make sure perror actually reads the results of the socket call immediately after.

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.