Click here to Skip to main content
14,427,367 members

Hosting and Servers

 
PinnedWelcome to the Hosting and Server Forum PinPopular
Chris Maunder20-Jan-11 12:16
cofounderChris Maunder20-Jan-11 12:16 
QuestionHelp me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_29-Dec-19 8:54
MemberVaclav_29-Dec-19 8:54 
AnswerRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Richard MacCutchan30-Dec-19 1:18
communityengineerRichard MacCutchan30-Dec-19 1:18 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_30-Dec-19 8:09
MemberVaclav_30-Dec-19 8:09 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_1-Jan-20 6:07
MemberVaclav_1-Jan-20 6:07 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Richard MacCutchan1-Jan-20 6:22
communityengineerRichard MacCutchan1-Jan-20 6:22 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_1-Jan-20 7:29
MemberVaclav_1-Jan-20 7:29 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_2-Jan-20 5:04
MemberVaclav_2-Jan-20 5:04 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Richard MacCutchan2-Jan-20 5:45
communityengineerRichard MacCutchan2-Jan-20 5:45 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_2-Jan-20 7:22
MemberVaclav_2-Jan-20 7:22 
SUCCESS !
Richard, thanks for your support.
Learn few things about what now looks as easy coding.


Managed to pass text message from client to server via bluetooth
using socket with these parameters on BOTH ends:
s = socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM);

However, not home yet.
Some “behind the scenes" needs investigating.
Given up on local loopback test for now.

The complier complains about this assignment,
loc_addr.rc_bdaddr = *BDADDR_ANY;
but the application works as expected when the loc_addr.rc_bdaddr
is NOT assigned,


loc_addr.rc_family = AF_BLUETOOTH;
loc_addr.rc_bdaddr = *BDADDR_ANY;
loc_addr.rc_channel = (uint8_t) 1;

In file included from ../src/RPI_BT_SERVER.cpp:54Blush | :O :
../src/RPI_BT_SERVER.cpp: In function ‘int main()’:
../src/RPI_BT_SERVER.cpp:133:26: error: taking address of temporary [-fpermissive]
loc_addr.rc_bdaddr = *BDADDR_ANY;


BTW taken form RFCOMM example, like to know what is the reason for the "temporary" note.
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Richard MacCutchan2-Jan-20 7:35
communityengineerRichard MacCutchan2-Jan-20 7:35 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_2-Jan-20 7:52
MemberVaclav_2-Jan-20 7:52 
QuestionMessage Closed Pin
27-Dec-19 23:55
MemberMember 1452946027-Dec-19 23:55 
QuestionMessage Closed Pin
18-Dec-19 23:43
Memberemyliauk618-Dec-19 23:43 
QuestionRemove a folder from TFS after it is checked into TFS Server Pin
simpledeveloper18-Dec-19 8:52
Membersimpledeveloper18-Dec-19 8:52 
AnswerRe: Remove a folder from TFS after it is checked into TFS Server Pin
Richard MacCutchan18-Dec-19 22:54
communityengineerRichard MacCutchan18-Dec-19 22:54 
QuestionMessage Closed Pin
6-Dec-19 23:39
Memberappleau86-Dec-19 23:39 
Questionhost host a php application in windows system Pin
BhavaniSri6-Nov-19 3:07
MemberBhavaniSri6-Nov-19 3:07 
AnswerRe: host host a php application in windows system Pin
jkirkerx7-Nov-19 10:34
professionaljkirkerx7-Nov-19 10:34 
QuestionSuggest Me Cloud Hosting For Our Website Pin
raja asad amin11-Oct-19 4:19
professionalraja asad amin11-Oct-19 4:19 
AnswerRe: Suggest Me Cloud Hosting For Our Website Pin
jkirkerx7-Nov-19 11:05
professionaljkirkerx7-Nov-19 11:05 
GeneralMessage Closed Pin
6-Jan-20 1:14
MembereWebGuru_web hosting6-Jan-20 1:14 
AnswerRe: Suggest Me Cloud Hosting For Our Website Pin
Khalequzzaman8-Nov-19 21:43
MemberKhalequzzaman8-Nov-19 21:43 
QuestionWhats your code management setup? Pin
lineil8-Sep-19 4:50
Memberlineil8-Sep-19 4:50 
AnswerRe: Whats your code management setup? Pin
MilesWeb9-Sep-19 2:52
professionalMilesWeb9-Sep-19 2:52 

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.