Server/webpage - I need to make and access a server in C++

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > C/C++ Programming

Server/webpage - I need to make and access a server in C++

linkmaster03
How can I make and acces, send info, and retrieve it in a C++ program? And also, how can I access information in my website and display it in a program?

Reply

Spectre
Look up socket programming in C++. There are many very good guides, articles and source code snippets available to learn from.

I only code in C and not in C++, so whilst I could give you a quick demo, I'm not 100% sure of what would might need to be changed to make it operate correctly in C++.

Also, it depends on which platform you are operating on. Whilst Win32 uses winsock, nix-based operating systems do not.

Reply

osknockout
QUOTE
And also, how can I access information in my website and display it in a program?

I'd suggest you play around with MySQL tables; if your site's on trap17 they give you an unlimited amount of space for them biggrin.gif . I don't know if there are C++ libraries which'll let you use them directly from C++, but you can try a C++<->Perl<->MySQL table setup.

And finally, here's the site where I learned some socket programming back in the day:
http://www.ecst.csuchico.edu/~beej/guide/net/html/

Reply

dexter
I'm pretty sure MySQL has a whole set of C functions for connecting and retreiving from and sending data to a database. And there's also a set of C++ wrapper classes called mysql++.

But if, for some reason you're more interested in socket programming then these two are good depending on the platform the program is on.

Winsock programming

Beej's guide to network programming

Reply

osknockout
QUOTE
But if, for some reason you're more interested in socket programming then these two are good depending on the platform the program is on.

Hey dexter, that was unfair man. I'm relearning it right now. By the way, Beej's guide to network programming is down right now.

Reply

dexter
-cough- I didn't even realise your link was to Beej's, too... and what I said was in reference to being more interested in sockets than in mySQL tables. I've been relearning socket programming lately, too. tongue.gif

So there you have it, for a good guide on socket programming. Beej's rocks... there's quite a few mirrors for it.

Reply

dexter
On the topic of sockets, for actually -understanding- how sockets work and such, Adventures in Unix Network Applications Programming by Bill Rieken and Lyle Weiman is incredibly good.

This will help with understanding winsocks, too (since winsocks are mostly the same as BSD sockets).

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Similar Topics

Keywords : server webpage access server

  1. How To Retrieve Image Or Data On A Webpage ? - (2)
  2. Server Socket - (3)
    I'm trying to write a simple C server program using sockets, that will interract with a Java
    client - I've never used BSD sockets before, so I'm a bit lost. I've written the program
    how, from what I've seen, I'm supposed to, but it won't compile. I've attached the
    code below: #include #include #include #include #include int main() { int sock = 0;
    struct sockaddr_in address; address.sin_family = AF_INET; address.sin_addr.s_addr = INADDR_ANY;
    address.sin_port = htons(9001); sock = socket(PF_INET, SOCK_STREAM, 0); if (sock == -...



Looking for server, webpage, make, access, server, c

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for server, webpage, make, access, server, c

*MORE FROM TRAP17.COM*
advertisement



Server/webpage - I need to make and access a server in C++



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE