|
Yes, that is generally my understanding of "how to".
Sure makes using socket clearer then working with "HCI".
It seems that passing the parameters to "socket" call , especially the DOMAIN and PROTOCOL
"bypasses" the "bind" call.
I need to work on that.
But I got the basic doing expected stuff.
Addendum
How is this for laymen "definitions "?
socket is "high level layer" - overall manager of I/O .
bind attaches such socket to "local host" (address) - IP network in general , bluetooth address as option of general.
connect attaches such socket via "transmission patch " to "remote" hardware / host , again generally to network (using IP address) , bluetoooth as network specific option using bluetooth address.
modified 1-Jan-20 14:45pm.
|
|
|
|
|
I guess I have to establish "my model" first and use appropriate terminology.
The objective is to display data processed on "embedded hardware" ( Raspberry Pi ) on PC.
Hence (per attached note )
"Client (RPi ) requests a service ( display data passed to it ) from server."
" TCP/IP enables peer-to-peer communication."
Is very generic term used , however "peer-to- peer" is little misleading since it implies , to me , an equal function of each end of communication path - which "client / server " is NOT.
TCP/IP is ONE part of actual implementation of the "transmission path " ( a generic term of describing the actuall communication path) - in this case I have TCP/IP and Bluetoooth RF participating in the "transmission path ".
So in terminology of "communication " terms -
I have a source - client - RPi
communication / transmission path - TCP/IP and RF
destination - server
For simplicity I am going use SINGLE socket (DONE!) and the actaull communication - from source to destination can be also looked as "simplex" communication.
The actaull passing of information between terminal points ( source / destination ) can be reversed.
So much for theory.
I am still trying to decipher the INDIVIDUAL function of parameters passed to "socket"
Mainly the functions of DOMAIN parameter - either AF_x (Address family) or PF_x (Protocol family).
I am unable to find decent definition of "AF_BLUETOOTH" DOMAIN parameter.
(Time to find source code for "socket" function )
The puzzling part is PROTOCOL parameter by itself and its interaction with DOMAIN and TYPE.
The Client-Server Model
TCP/IP enables peer-to-peer communication.
Computers can cooperate as equals or in any desired way.
Most distributed applications have special roles. For example:
Server waits for a client request.
Client requests a service from server.
|
|
|
|
|
There are plenty of samples around the internet that contain the source code of a simple socket program. The key being that it shows the sequence of events for both server and client. Adapting such samples to your own requirements is a fairly simple process. I do not have a current copy but I used one in the past in my professional life.
|
|
|
|
|
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:54 :
../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.
|
|
|
|
|
|
Thanks.
Interestingly the simplest answer has no rating on site where rating the post is THE OBJECTIVE. .
|
|
|
|
|
Hi - I have a solution that I checked-in incorrectly the packages folder which I shouldn't have - its in Change set details, now can I change the Change set to eliminate this folder from it? or can I delete it form the source control without deleting it locally? and I want another solution also - how can I set this folder to be not part of the checkins for any future checkins? Thanks a lot any help please - thank you.
|
|
|
|
|
|
how to to deploy php application,
can i use xampp server for deployment.
which way i can deploy in windows system.
|
|
|
|
|
Years ago when I worked with PHP, it was called "LAMP", Linux, Apache, MySQL and PHP all running on a single Linux server. You could pick a Linux build, choose LAMP and it would just setup the whole server for you.
At the same period in time, to make a Windows Server that hosted a PHP web application, you had to install PHP on top of IIS web server, then program your PHP.ini file to customize it to your PHP app. Them add the PHP mime or extension to IIS and tell IIS how to process a PHP file. It was pretty straight forward.
One caveat however, it that is you development a PHP app in Linux, some functions will not work in Windows and vice versus. I personally would not waste money on a Windows server license to host a PHP website.
I suggest you use the link below and practice it a couple of times on a development machine and then your server.
How to Install PHP on Windows — SitePoint
[edit]
I had to read the question again, and saw the xampp. Guess LAMP is outdated and has been replaced with XAMPP.
Sounds likes you just download the app, and it installs the whole framework for you, and then code to it. Works on Linux, Windows, MacOS. Just remember to choose your environment first before you code so everything works.
To deploy you app in production, you'll need to use a cloud service like Amazon. There must be a package and deployment helper in XAMPP that uploads your project for you.
[Edit]
Since you didn't mention what version of Windows and PHP your using, You'll have to figure that part out yourself.
Choose your environment first before you code.
If it ain't broke don't fix it
Discover my world at jkirkerx.com
modified 7-Nov-19 15:51pm.
|
|
|
|
|
Hi all: we have a free classified website in WordPress currently we are using A2 web hosting services
they are proving great services but issue is they are very expensive when we go to renew their packages
so i am requesting can you please suggest me any good cloud hosting service provider that not be much expensive thanks
|
|
|
|
|
Well that's kind of how it works. You get discounts at first to attract you to the service such as A2, and they spend a great amount of time teaching you how to use the system. Then they raise the price as you renew. Usually it's the other way around where the upfront cost is higher, then it goes down.
You didn't mention what level of service your using, shared, dedicated and how much your paying, so I can't really offer a suggestion. GoDaddy was offering a special for a $1.00 USD a month for WordPress sites.
A2 Web Hosting Review & Rating | PCMag.com
Is Cheap Hosting Worth Your Time?
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
Grab your own VPS and host your website there!
|
|
|
|
|
I've always just used github. It does the job but I'm curious if there are nicer setups out there? Starting a new university project soon. Any tips? Whats your current setup and why?
|
|
|
|
|
I have implemented GitLab in a couple of places and have been using it for several months. GitLab is free as well as good for small private and public repos.
|
|
|
|
|
Okay but how does it compare to Github? I think of switching to something else because I dont think its that great, but first I'd like to know if changing providers is really worth it...
|
|
|
|
|
GitHub, GitLab and Azure Devops all have quite similar features and are equally good. You can compare the free version of Atlassian Jira too.
|
|
|
|
|
Hello,
I have a child .net 4 web application which is trying to inherit the parent .net 2 web.config file. That's caused some issues, but I've seemed to have resolved most with <clear>. However, in the parent web.config I have some encrypted sections, one of those being the system.net/mailsettings/smtp section. The child application is trying to inherit this but is getting the error "Configuration Section encryption is not supported". I can't seem to use <clear> or any other method to prevent inheritance from occurring in this situation.
The .Net 2 parent application is in the process of being replaced (as is the web server), but that is still a number of months away. Moving to a subdomain isn't an option as using SSL certificates on multiple sub domains doesn't seem to work in IIS7.5
Any ideas on how I can resolve this issue?
|
|
|
|
|
Nice information...!!!
https://www.elawoman.com/
|
|
|
|
|
I might be in the wrong forum. If so, please point me towards the right one.
I have a database application which generates reports. I would like to be able to send the reports to an off site location where they can be downloaded to a custom android app that will be developed to handle downloading and decryption.
Right now they are stored and encrypted in a directory on the local machine.
I'd like to perform the uploading through the program, ie. I don't want the user to have to do anything but select the reports for uploading and push a button.
Should I be looking to upload them to an sftp site or is there something else available as an alternative (google docs, dropbox etc.)
I'd like to perform the uploading through the program, ie. I don't want the user to have to do anything but select the reports for uploading and push a button.
TIA
|
|
|
|
|
Confused architecture.
You have a Server A which produces the reports.
You have a Server B where you want the reports to be.
So obviously you will need to move them. You will need some sort of scheduled process that moves them via some sort of protocol. I would suggest figuring out what you want to do with the file on Server A after you have successfully moved it also.
None of the above has anything to do with a user.
Now maybe the problem is that you have not actually identified yet that you even need a Server B.
But I suspect you probably would want that because "database application" suggests a "database" and myself I do not want anyone but my stuff touching the database server.
So given that you have a Server B then you need to define HOW you are going to serve those files (doesn't matter what is in them) to a user. There are all sorts of considerations. Some of the ones I can think of.
- How does the user know which file they are looking at
- How do you insure that user A doesn't see user B's reports
- How do you actually serve up the file. Do you just down load it or do you want do have it pop open?
- Are they downloading one file at a time or many?
- What happens to the old reports on Server B?
Notice that none of the above has anything to do with Server A.
|
|
|
|
|
Good day everyone!
Please, am having some difficulty in display site post on google results and other search engine results.
I have submitted my site to google and it has been crawled.
I know fully well that for instance if I Make a search for How to Send SMS in ASP.Net, many results will come up is then left for me to choose.
But in my case, if I have How to Send SMS in ASP.Net as a post in my site, my site will never show up in the searched results even if it is 1000 results.
My question is;
1. How are site posts saved?- In my case, I saved my site post in database
2. How do I make my site posts appear on search engine results?
3. Is saving forum post to database advisable?
I need advise here please.
Sorry if this is not the right forum!
Thanks in advance.
|
|
|
|
|
Search Engine Optimization (SEO) Starter Guide - Search Console Help[^]
Not one of the expensive guides, but simply Google's free documentation. I suggest you read it.
Otekpo Emmanuel wrote: 3. Is saving forum post to database advisable? Google cannot even see the difference. Your server returns an answer, and doesn't tell anyone whether it used a database or not to create that answer.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Thank you. But I quiet understood every step on google documentation. But it was never specified how you should save your forum post so that they can appear on searched results.
For instance, this question "Search Engine Optimization" I asked here in codeproject will appear on google searched if anyone search with related keywords.
How can I achieve this please?
|
|
|
|
|
Otekpo Emmanuel wrote: But it was never specified how you should save your forum post so that they can appear on searched results. Because that does not matter.
Otekpo Emmanuel wrote: For instance, this question "Search Engine Optimization" I asked here in codeproject will appear on google searched if anyone search with related keywords.
How can I achieve this please? Read the Google documentation, it is explained in detail on their site. Basically, you send them the URL to your site, the crawler reads your site, making copies of what it finds.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|