Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Fri Sep 22, 2017 11:58 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: AutoDiscovery and HTTPSocket questions
PostPosted: Tue Mar 12, 2013 7:52 am 
Offline

Joined: Mon May 31, 2010 5:35 am
Posts: 2412
Location: Netherlands
Hi all,

1. i see some strange documentation on this page:
http://docs.realsoftware.com/index.php/ ... vedMessage
it says there is an identifying integer? I don't see it...

2. When the MemberJoined event has been raised, it sometimes gives me the same event multiple times.
This is the same for MessageReceived (event). What's the best way to ignore duplicate messages?
(my routerhops is set to 1)

3. The HTTPSocket can it be used for server/client based connections. I need it for a custom http based protocol (local network).
I want to send data/messages up and down. I know the overhead of HTTP but i need it so it can be accessed from the browser also.

_________________
SWORT™
- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion
- REAL Studio Enterprise(latest) and WEB Edition(latest)
- Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source plugins)
For Dutch User Groups ask me to enter!


Top
 Profile  
Reply with quote  
 Post subject: Re: AutoDiscovery and HTTPSocket questions
PostPosted: Tue Mar 12, 2013 1:06 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
Location: Portland, OR USA
HTTPSocket is client only. For server, there is an example that uses TCPSocket and implements a simple HTTP server.


Top
 Profile  
Reply with quote  
 Post subject: Re: AutoDiscovery and HTTPSocket questions
PostPosted: Tue Mar 12, 2013 2:08 pm 
Offline

Joined: Mon May 31, 2010 5:35 am
Posts: 2412
Location: Netherlands
timhare wrote:
HTTPSocket is client only. For server, there is an example that uses TCPSocket and implements a simple HTTP server.


Ok, but the HeadersReceived event seems to fire... xd
Anyway i use the example instead it's better i quess.

_________________
SWORT™
- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion
- REAL Studio Enterprise(latest) and WEB Edition(latest)
- Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source plugins)
For Dutch User Groups ask me to enter!


Top
 Profile  
Reply with quote  
 Post subject: Re: AutoDiscovery and HTTPSocket questions
PostPosted: Tue Mar 12, 2013 3:59 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
Location: Portland, OR USA
Yeah, it kinda sorta works for some things, but not really. It wasn't designed to be used as a server, so you'd be fighting in the dark to try to make it work. Better to use a regular TCPSocket so you can at least control the code.


Top
 Profile  
Reply with quote  
 Post subject: Re: AutoDiscovery and HTTPSocket questions
PostPosted: Wed Mar 13, 2013 1:53 pm 
Offline

Joined: Mon May 31, 2010 5:35 am
Posts: 2412
Location: Netherlands
timhare wrote:
Yeah, it kinda sorta works for some things, but not really. It wasn't designed to be used as a server, so you'd be fighting in the dark to try to make it work. Better to use a regular TCPSocket so you can at least control the code.


PageReceived fires and HeadersReceived.
Client and server are about the same.

BUT i don't get total control with HTTPSocket so i'll go with your idea, create my own.

_________________
SWORT™
- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion
- REAL Studio Enterprise(latest) and WEB Edition(latest)
- Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source plugins)
For Dutch User Groups ask me to enter!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group