Real Software Forums
http://forums.realsoftware.com/

AutoDiscovery and HTTPSocket questions
http://forums.realsoftware.com/viewtopic.php?f=2&t=47267
Page 1 of 1

Author:  swort [ Tue Mar 12, 2013 7:52 am ]
Post subject:  AutoDiscovery and HTTPSocket questions

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.

Author:  timhare [ Tue Mar 12, 2013 1:06 pm ]
Post subject:  Re: AutoDiscovery and HTTPSocket questions

HTTPSocket is client only. For server, there is an example that uses TCPSocket and implements a simple HTTP server.

Author:  swort [ Tue Mar 12, 2013 2:08 pm ]
Post subject:  Re: AutoDiscovery and HTTPSocket questions

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.

Author:  timhare [ Tue Mar 12, 2013 3:59 pm ]
Post subject:  Re: AutoDiscovery and HTTPSocket questions

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.

Author:  swort [ Wed Mar 13, 2013 1:53 pm ]
Post subject:  Re: AutoDiscovery and HTTPSocket questions

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.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/