Jump to content
xisto Community
Sign in to follow this  
darko100

C++ Sockets how to use them

Recommended Posts

I've tried to code a command-line project which will use the sockets function to stream on port 80. So i wanted to make a HTTP server which will return some HTML code for users.Because i'm dumb , i tried to download a C project (that should work for C++ too , with some little changes) but it didn't compile on DevCpp. I tought it is because some differences , so i found a C++ http project too. I downloaded the server version , and it didn't compile with many , many errors. I tried the client version too , but it didn't compile.All the libraries are OK , everything is included as it should be, but it gives too much warnings and errors for syntax, functions etc. Is the compiler the problem? What compilers do you usually use to compile command-line C++?I checked everything , the project i downloaded is suitable for Windows , it is command-line , not GUI , the libs are here , the compiler works ok with "hello world" examples.I'm good at PHP programming , but C++ with all that voids , main etc. is a little complicated, i'm reading books and tutorials now , the pointers are specially problem. But i don't really need to know it , i need it specially now for a project , as i said , HTTP server which will return static HTML.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.