Go Back   the Magicball Network > Forums > MBN Main Forums > Off topic

Welcome to the Magicball Network.

You are currently viewing our site as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Off topic General off-topic chat goes in here.

Reply
 
Thread Tools
  #1  
Old 2007-09-23, 16:37
Bomba!'s Avatar
Bomba! Bomba! is offline
The Prince of all Saiyans
 
Join Date: Apr 2001
Location: Unfortunately - Earth.
Posts: 2,178
Send a message via ICQ to Bomba!
Socket Programming

I've been reading some articles about the topic, and they all explain how to create a socket and hoq to connect a server.
My problem is, can I connect a website like the magicball.net with a socket? if so, how do I know its port? and how can I specifcally send data to its search engine for example?
__________________
"All men dream, but not equally.Those who dream by night in the dusty recesses of their minds, wake in the day to find that it was vanity: but the dreamers of the day are dangerous men, for they may act on their dreams with open eyes, to make them possible." ~Thomas Edward Lawrence

"When you were born, the world rejoiced and you cried. Live your life, so that when you die, you will rejoice and the world will cry." ~ Indian Saying
Reply With Quote
  #2  
Old 2007-09-23, 17:13
Echomote's Avatar
Echomote Echomote is offline
a well established member
 
Join Date: Jul 2003
Posts: 3,426
Send a message via MSN to Echomote
You could connect by port 80 and maybe get some HTML chucked at you if you're lucky...

Try connecting to an IRC server
Reply With Quote
  #3  
Old 2007-09-23, 22:28
LBAWinOwns's Avatar
LBAWinOwns LBAWinOwns is offline
Magic Ball Master
 
Join Date: Mar 2004
Location: Sweden
Posts: 5,420
Send a message via MSN to LBAWinOwns
Check out Internet Direct, shorten INDY.

if your using M$ you can type 'ping www.randomwebsite.com', then it will show ip and port for the site I think.

Also, if you're using firefox, and wanna check how a firefox sends http headers and data to a site, download the 'Live HTTP Headers' extension. That might help you to see how to do a search.

I dealt with these stuff trying to make a program exploiting the 'Swedish trains' tickets, where you can get the same tickets for a lower price by adding destinations/arrivals. The program is sucky , since my programming skills were worse back then.
__________________

LBA Image Creator project
(image by leoboe! )

Get the Jump-Save-Bug graphically explained here
Reply With Quote
  #4  
Old 2007-09-26, 18:35
Bomba!'s Avatar
Bomba! Bomba! is offline
The Prince of all Saiyans
 
Join Date: Apr 2001
Location: Unfortunately - Earth.
Posts: 2,178
Send a message via ICQ to Bomba!
But after connecting a website how can I send data to its search engine? or for that matter send data to any specific place that I wish?
__________________
"All men dream, but not equally.Those who dream by night in the dusty recesses of their minds, wake in the day to find that it was vanity: but the dreamers of the day are dangerous men, for they may act on their dreams with open eyes, to make them possible." ~Thomas Edward Lawrence

"When you were born, the world rejoiced and you cried. Live your life, so that when you die, you will rejoice and the world will cry." ~ Indian Saying
Reply With Quote
  #5  
Old 2007-09-26, 19:15
Echomote's Avatar
Echomote Echomote is offline
a well established member
 
Join Date: Jul 2003
Posts: 3,426
Send a message via MSN to Echomote
The socket should have some kind of send command.

If it's specifically HTML, maybe you should look into an Open Source web browser. Surely that's what Open Source is for (to learn from, that is, not to directly copy and paste).
Reply With Quote
  #6  
Old 2007-09-26, 21:43
LBAWinOwns's Avatar
LBAWinOwns LBAWinOwns is offline
Magic Ball Master
 
Join Date: Mar 2004
Location: Sweden
Posts: 5,420
Send a message via MSN to LBAWinOwns
HTTP Headers, http://www.cs.tut.fi/~jkorpela/http.html .

The specific HTTP headers for using the search engine is easily found out with firefox 'Live HTTP Headers' extension.

Also consider if you want to have a specific component for HTTP protocol socket, instead of the general TCP one.

Please note I'm no expert on the subject.
__________________

LBA Image Creator project
(image by leoboe! )

Get the Jump-Save-Bug graphically explained here
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best programming language and why Quetch Off topic 10 2007-03-24 00:53
Who wants any programming help with their project Cade Fan Games 17 2006-05-06 14:23
My Programming Project Axx Off topic 12 2006-05-01 06:53
programming Neko Off topic 6 2006-03-03 21:10
Programming in C/C++ mop_int Off topic 10 2002-03-07 06:48


All times are GMT +2. The time now is 01:35.


News Feed
Powered by vBulletin®
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright ©2000 - 2021, the Magicball Network