Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Jul 18, 2019 8:39 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject: Re: ServerSocket Example Project ActiveConnections
PostPosted: Mon Nov 12, 2012 10:52 pm 
Offline

Joined: Tue Mar 23, 2010 8:44 pm
Posts: 673
Thom McGrath wrote:
And if you've done so without bothering to write 5 minutes worth of maintenance code, you're also insane.


Well, you're over estimating the OP's ability as you previously did.
What you thought would take him seconds, took him hours.

Thom McGrath wrote:
Sheppard, you speak of collisions and edge-cases, but have repeatedly ignored my demonstrating an easily reproducible collision in your proposal.


Haven't ignored it, just never heard of it ever happening in the real world.

Thom McGrath wrote:
I'm offering advice as an expert in the field,

Ok but no offense the stuff you guys write is horribly buggy and often very problematic. The stuff I write for my clients and my projects works.

Thom McGrath wrote:
IP addresses are not good for unique identifiers.

You continue to ignore the part where I said in addition to unique UserIDs forming the unique ID.

Thom McGrath wrote:
Our own internal orders app use to build an identifier based on the IP, port, and username. It still failed, just ask our customer service reps how many times a message would not get from one to another.


But what was the reason for the failure?
Not the unique userID + IP addresses. If you code that properly it works.

Thom McGrath wrote:
I'm not trying to give you a hard time, I'm just trying to help as somebody who has been down this road too many times to count.


Yah I'm not worried about it :). Just offering a different solution that's never let me down and I see benefits to coding it this way. I understand where you're coming from and it could work that way too but so far I don't see any real benefits.

I don't mind digging deeper and discussion things. This is often how we learn better ways or see things differently than we did.

If you search the forum going years back I've probably advised to use unique IDs and not an IP address. Don't recall. But someone could probably search it and find it.

So if the internal orders app is now using ever increasing unique IDs, are you ever resetting the IDs?


Top
 Profile  
Reply with quote  
 Post subject: Re: ServerSocket Example Project ActiveConnections
PostPosted: Mon Nov 12, 2012 11:01 pm 
Offline

Joined: Tue Mar 23, 2010 8:44 pm
Posts: 673
Here Thom, I will make you happy :

JUST USE AN EVER INCREASING UNIQUE ID INTEGER VALUE WITHOUT THE IP ADDRESS.


:)


Top
 Profile  
Reply with quote  
 Post subject: Re: ServerSocket Example Project ActiveConnections
PostPosted: Mon Nov 12, 2012 11:02 pm 
Offline
Site Admin
User avatar

Joined: Tue May 06, 2008 1:07 pm
Posts: 1464
Location: NotEvenOnTheMap, CT
J.Sh3ppard wrote:
But what was the reason for the failure?
Not the unique userID + IP addresses. If you code that properly it works.

Easiest way to cause a problem is to forcefully disconnect. When the server gets it's disconnect error, the remote address property has already been cleared, so you don't know WHO just disconnected, and thus can't perform your cleanup.

J.Sh3ppard wrote:
So if the internal orders app is now using ever increasing unique IDs, are you ever resetting the IDs?

No need, as I previously suggested, it uses random identifiers. Has been dramatically more reliable.

I'm unsubscribing from this topic. It stopped being productive 2 pages ago.

_________________
Thom McGrath - @tekcor
Web Framework Architect, Real Software, Inc.


Top
 Profile  
Reply with quote  
 Post subject: Re: ServerSocket Example Project ActiveConnections
PostPosted: Tue Nov 13, 2012 12:24 am 
Offline
User avatar

Joined: Sun Aug 12, 2007 10:10 am
Posts: 1086
Location: Boiling Springs, SC
There are client/server and server type application demos in the RSDS Library ...search it here:-) if you need a better example than what's found in the library, would be glad to help you with a barebones commented project...you can also find GUID functions and all sorts of useful stuff in the public archive.

Best Regards,
Matthew A. Combatti

_________________
Matthew A. Combatti
Real Studio 2012 r1.2

Visit Xojo Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS

~All Xojo Compatible~


Top
 Profile  
Reply with quote  
 Post subject: Re: ServerSocket Example Project ActiveConnections
PostPosted: Tue Nov 13, 2012 12:26 am 
Offline
User avatar

Joined: Sun Aug 12, 2007 10:10 am
Posts: 1086
Location: Boiling Springs, SC
Here's the forum

viewtopic.php?f=1&t=43980

_________________
Matthew A. Combatti
Real Studio 2012 r1.2

Visit Xojo Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS

~All Xojo Compatible~


Top
 Profile  
Reply with quote  
 Post subject: Re: ServerSocket Example Project ActiveConnections
PostPosted: Sat Nov 17, 2012 2:35 pm 
Offline
User avatar

Joined: Sun Oct 28, 2012 4:54 am
Posts: 264
Location: Herts, UK
Matthew

your RSDS Library is the best thing since sliced bread :D so thanks and plz keep up the good work.

I would also like to thank everyone for their kind advice and input

:wink:

Thanks all

_________________
Real Studio 2012 R2
SysInfo
BackTrack Linux/BackBox Linux/Debian Lenny/Windows 7/Windows 8/OpenWRT/OpenBSD
& Yes it's me in the Avatar


Top
 Profile  
Reply with quote  
 Post subject: Re: ServerSocket Example Project ActiveConnections
PostPosted: Sat Nov 17, 2012 3:18 pm 
Offline
User avatar

Joined: Sun Aug 12, 2007 10:10 am
Posts: 1086
Location: Boiling Springs, SC
p0wn3d wrote:
Matthew

your RSDS Library is the best thing since sliced bread :D so thanks and plz keep up the good work.

I would also like to thank everyone for their kind advice and input

:wink:

Thanks all


Appreciate it :-) if you have any code to submit feel free anytime as it will benefit everyone. It's no fun coding if you can't find examples and solutions easily :-) time is money...less time
Searching..more time coding..just the way it should be!

_________________
Matthew A. Combatti
Real Studio 2012 r1.2

Visit Xojo Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS

~All Xojo Compatible~


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2, 3, 4

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