Click here to Skip to main content
15,868,141 members
Home / Discussions / Hosting and Servers
   

Hosting and Servers

 
AnswerRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Richard MacCutchan30-Dec-19 0:18
mveRichard MacCutchan30-Dec-19 0:18 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_30-Dec-19 7:09
Vaclav_30-Dec-19 7:09 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_1-Jan-20 5:07
Vaclav_1-Jan-20 5:07 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Richard MacCutchan1-Jan-20 5:22
mveRichard MacCutchan1-Jan-20 5:22 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_1-Jan-20 6:29
Vaclav_1-Jan-20 6:29 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_2-Jan-20 4:04
Vaclav_2-Jan-20 4:04 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Richard MacCutchan2-Jan-20 4:45
mveRichard MacCutchan2-Jan-20 4:45 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_2-Jan-20 6:22
Vaclav_2-Jan-20 6: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 6:35
mveRichard MacCutchan2-Jan-20 6:35 
GeneralRe: Help me to understand "hosts" file and socket communication via bluetooth Pin
Vaclav_2-Jan-20 6:52
Vaclav_2-Jan-20 6:52 
QuestionRemove a folder from TFS after it is checked into TFS Server Pin
simpledeveloper18-Dec-19 7:52
simpledeveloper18-Dec-19 7:52 
AnswerRe: Remove a folder from TFS after it is checked into TFS Server Pin
Richard MacCutchan18-Dec-19 21:54
mveRichard MacCutchan18-Dec-19 21:54 
Questionhost host a php application in windows system Pin
BhavaniSri6-Nov-19 2:07
BhavaniSri6-Nov-19 2:07 
AnswerRe: host host a php application in windows system Pin
jkirkerx7-Nov-19 9:34
professionaljkirkerx7-Nov-19 9:34 
QuestionSuggest Me Cloud Hosting For Our Website Pin
raja asad amin11-Oct-19 3:19
professionalraja asad amin11-Oct-19 3:19 
AnswerRe: Suggest Me Cloud Hosting For Our Website Pin
jkirkerx7-Nov-19 10:05
professionaljkirkerx7-Nov-19 10:05 
AnswerRe: Suggest Me Cloud Hosting For Our Website Pin
Khalequzzaman8-Nov-19 20:43
Khalequzzaman8-Nov-19 20:43 
QuestionWhats your code management setup? Pin
lineil8-Sep-19 3:50
lineil8-Sep-19 3:50 
AnswerRe: Whats your code management setup? Pin
MilesWeb9-Sep-19 1:52
professionalMilesWeb9-Sep-19 1:52 
GeneralRe: Whats your code management setup? Pin
lineil9-Sep-19 22:15
lineil9-Sep-19 22:15 
GeneralRe: Whats your code management setup? Pin
Deepak Vasudevan19-Sep-21 19:57
Deepak Vasudevan19-Sep-21 19:57 
QuestionIIS 7.5 Configuration Section encryption is not supported error in child application Pin
Member 114751138-Apr-19 13:26
Member 114751138-Apr-19 13:26 
AnswerRe: IIS 7.5 Configuration Section encryption is not supported error in child application Pin
Member 145194272-Jul-19 23:29
Member 145194272-Jul-19 23:29 
QuestionFile Transfer Methods Pin
T Gorman4-Mar-19 8:16
T Gorman4-Mar-19 8:16 
AnswerRe: File Transfer Methods Pin
jschell9-Mar-19 7:41
jschell9-Mar-19 7:41 

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.