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 
Update
Start with
The “server” ( local PC) allocates a “socket” with parameters
s = socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM);

and is set ( waits ) to receive connection from “client”.

It is unclear , but logical that “client terminal “ should be specified - perhaps “client (host) bluetooth address – array of six entries should be entered somewhere – as a “remote address”.


I am using term “terminal X address “ to get away from confusing usage of “address” which can be IP (generic network) or bluetooth address.
So far the term “host” is associated with IP name / address and is really not specific to client or server.
The bluetooth address seems to have no relations to IP address.


Then

The “client” (Rpi) software allocates a “socket” with parameters
socket_descriptor_local = socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM);

the “client” - (Rpi ) software originates connection to server ( connect to server bluetooth terminal address ) when data is ready to be passed onto “server” . For now I am passing simple message(s) only.

It is also unclear how / where to specify “client terminal”.
Currently I have two bluetooth hardware (USB) of different class connected.
I do not see how "socket" cares about bluetooth class.
I managed to run both software and received expected errors.

Like to know WHO , not why, actually generates the "connection refused" - logically it should came from "connecting to RECEIVING terminal" , but I am not so sure how to identify that.
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 
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.