How to compile #3
-
hello,
what does that mean? when you say:
where should I place myself? in src/ there is a main.c but there is not FileServer.c so.. this command will not work. If I move to the hello world example this command is also incorrect. If I use the one on the bat file, I do manage to cross compile it but when I run it I get:
If would be great if you could clarify. Thanks a lot |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi fabriziotappero, I have updated the readme to try to make it a bit clearer. However here is the answers to your questions directly :) Question 1 what does that mean? Bitty HTTP is not locked into one socket library, if you have some other kind of sockets library (other than Posix sockets for example) you can connect in to them. I have seen SPI based chips that had very different socket API's. Bitty HTTP was build to support these type of things. I did provide example use standard Berkeley sockets (and a different one for Windows sockets) in the src/SocketsCon.c file. If you are running on a Linux or other Unix like system you can just use them and not have to worry about the details. Question 2
where should I place myself? This was a generic example that doesn't work with any of the provided examples. It was assuming that you would copy the needed files to your own directory before compiling. So if you wanted to use it from the bittyhttp directory you would use:
For windows it would be Question 3
Not sure what's going on here. To run the bat / .sh file (for hello world):
Windows:
The should be all there is to it (assuming that gcc is installed and setup) Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Oh, you should also check out http://bittyhttp.com/Development.html for more documentation. |
Beta Was this translation helpful? Give feedback.
Hi fabriziotappero,
I have updated the readme to try to make it a bit clearer.
However here is the answers to your questions directly :)
Question 1
HOWEVER you must provide functions to access your sockets. A Posix/Berkeley sockets example is provided (as well as a WinSock example). Therefor you must be able to compile on a Posix system with Berkeley sockets.
what does that mean?
Bitty HTTP is not locked into one socket library, if you have some other kind of sockets library (other than Posix sockets for example) you can connect in to them. I have seen SPI based chips that had very different socket API's. Bitty HTTP was build to support these type of things.
I did provide example use stan…