IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Server/webpage

, I need to make and access a server in C++


linkmaster03
no avatar
Newbie [Level 2]
**
Group: Members
Posts: 26
Joined: 25-May 05
Member No.: 7,512



Post #1 post May 25 2005, 11:56 PM
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?
Go to the top of the page
+Quote Post
Spectre
no avatar
Privileged Member
*********
Group: Members
Posts: 873
Joined: 30-July 04
Member No.: 246



Post #2 post May 26 2005, 03:58 PM
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.
Go to the top of the page
+Quote Post
osknockout
no avatar
Super Member
*********
Group: Members
Posts: 399
Joined: 14-November 04
From: Elysium
Member No.: 2,280



Post #3 post May 27 2005, 11:42 AM
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/
Go to the top of the page
+Quote Post
dexter
no avatar
Advanced Member
*******
Group: Members
Posts: 142
Joined: 24-December 04
From: Queensland, Australia
Member No.: 2,902



Post #4 post May 27 2005, 03:17 PM
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
Go to the top of the page
+Quote Post
osknockout
no avatar
Super Member
*********
Group: Members
Posts: 399
Joined: 14-November 04
From: Elysium
Member No.: 2,280



Post #5 post Jun 1 2005, 12:03 PM
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.
Go to the top of the page
+Quote Post
dexter
no avatar
Advanced Member
*******
Group: Members
Posts: 142
Joined: 24-December 04
From: Queensland, Australia
Member No.: 2,902



Post #6 post Jun 1 2005, 01:39 PM
-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.
Go to the top of the page
+Quote Post
dexter
no avatar
Advanced Member
*******
Group: Members
Posts: 142
Joined: 24-December 04
From: Queensland, Australia
Member No.: 2,902



Post #7 post Jun 14 2005, 08:47 AM
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).
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   0 OpaQue 676 9th September 2004 - 08:40 AM
Last post by: OpaQue
No New Posts   5 outwarsecrets 601 16th August 2004 - 06:40 AM
Last post by: stephenob
No New Posts   9 Panzer 758 4th January 2007 - 08:52 PM
Last post by: fffanatics
No New Posts   7 Raptrex 596 27th August 2004 - 11:16 PM
Last post by: Spectre
No New Posts 3 NuHoaXuLa 649 17th November 2006 - 08:33 AM
Last post by: farsiscript
No New Posts   0 sekundar 756 26th July 2006 - 07:35 AM
Last post by: sekundar
No New Posts   1 truvu17 493 21st September 2004 - 09:12 AM
Last post by: OpaQue
No New Posts   0 aoehq 1,101 17th March 2007 - 06:20 AM
Last post by: aoehq
No New Posts   0 Bimboadmasministries 598 8th October 2004 - 11:45 AM
Last post by: Bimboadmasministries
No New Posts   0 Bimboadmasministries 471 8th October 2004 - 11:55 AM
Last post by: Bimboadmasministries
No New Posts   10 newbie_dhkt 585 2nd January 2009 - 11:46 AM
Last post by: triplebtalk
No New Posts   4 sithslayer 390 14th December 2008 - 02:29 PM
Last post by: sithslayer
No New Posts   4 DMA 435 29th October 2004 - 07:50 PM
Last post by: odomike
No New Posts   1 champ_rock 623 15th July 2006 - 09:01 AM
Last post by: BuffaloHELP
No New Posts   0 jackkkk26 613 12th November 2004 - 12:47 PM
Last post by: jackkkk26


 



RSS Open Discussion Time is now: 8th January 2009 - 09:24 AM