Author Topic: Is there any workaround for the hanging send command?  (Read 3722 times)

0 Members and 1 Guest are viewing this topic.

Offline ThimottyTopic starter

  • Jr. Member
  • **
  • Posts: 61
  • Activity:
    0%
  • Reputation Power: 0
  • Thimotty has no influence.
  • Respect: +7
  • Referrals: 0
    • View Profile
Is there any workaround for the hanging send command?
« on: October 04, 2009, 06:40:06 PM »
0
Very often the send command hang because of lost packets.
Does anyone know workaround to use it without waiting for anything to be returned?

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13303
  • Activity:
    0.4%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Is there any workaround for the hanging send command?
« Reply #1 on: October 04, 2009, 06:49:55 PM »
0
There's probably not a real way to do it.  It's been a while, but I kinda got around it by having a local server to send information to.  Then I'd convert to UDP packets for any interwebz transmission.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline ThimottyTopic starter

  • Jr. Member
  • **
  • Posts: 61
  • Activity:
    0%
  • Reputation Power: 0
  • Thimotty has no influence.
  • Respect: +7
  • Referrals: 0
    • View Profile
Re: Is there any workaround for the hanging send command?
« Reply #2 on: October 04, 2009, 06:53:43 PM »
0
Thank @TM I'll try it now.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13303
  • Activity:
    0.4%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Is there any workaround for the hanging send command?
« Reply #3 on: October 04, 2009, 06:56:48 PM »
0
Remember that with UDP, you'll probably not get your data assembled correctly, or even completely.  So you'll have to think of some ways to encode it so you know if everything is ship shape.

You might be able to use TCP, and with a local server, at least you can handle missing packets and handle it accordingly.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline ThimottyTopic starter

  • Jr. Member
  • **
  • Posts: 61
  • Activity:
    0%
  • Reputation Power: 0
  • Thimotty has no influence.
  • Respect: +7
  • Referrals: 0
    • View Profile
Re: Is there any workaround for the hanging send command?
« Reply #4 on: October 04, 2009, 08:04:51 PM »
0
I just tried sending to local server (without external resend)
Still hangs  :'(
I'm thinking of some background "CMD" to use exec instead of send :(

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13303
  • Activity:
    0.4%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Is there any workaround for the hanging send command?
« Reply #5 on: October 04, 2009, 08:14:10 PM »
0
The other thing I've done is communicate to an outside program using the EUO registry and create a simple COMMAND/ARGUMENT C# "server".  Then you just communicate however you want in your application to the interwebz.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline ThimottyTopic starter

  • Jr. Member
  • **
  • Posts: 61
  • Activity:
    0%
  • Reputation Power: 0
  • Thimotty has no influence.
  • Respect: +7
  • Referrals: 0
    • View Profile
Re: Is there any workaround for the hanging send command?
« Reply #6 on: October 04, 2009, 09:03:14 PM »
0
Still cannot solve it. The best i did is to write the info in a file using [urlhttp://www.ntwind.com/software/utilities/hstart.html]this[/url] application without the annoying windows opened with each execute, but it is extremely slow. It runs cmd.exe in background mode but 1 record for 2 seconds :(

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13303
  • Activity:
    0.4%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Is there any workaround for the hanging send command?
« Reply #7 on: October 04, 2009, 09:08:49 PM »
0
If you want, I can zip up my EUO client/C# server application for communication through the registry.  Works pretty well.  I just have to find it, but it might give you some ideas.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline ThimottyTopic starter

  • Jr. Member
  • **
  • Posts: 61
  • Activity:
    0%
  • Reputation Power: 0
  • Thimotty has no influence.
  • Respect: +7
  • Referrals: 0
    • View Profile
Re: Is there any workaround for the hanging send command?
« Reply #8 on: October 04, 2009, 09:11:02 PM »
0
I probably won't be able to read it, but at least I can try :)

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13303
  • Activity:
    0.4%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Is there any workaround for the hanging send command?
« Reply #9 on: October 04, 2009, 09:51:38 PM »
0
Here's the little bit of test code for this example:

Code: [Select]
set #LPC 100
for %i 1 10
{
  gosub TM_SENDVAL command , %i %i
}
stop

sub TM_SENDVAL
  set *TMREG_ARG1 %1
  set *TMREG_VAL %2
  set *TMREG_CMD SENDVAL
  set #RESULT #SCNT + 5
  repeat
  until *TMREG_CMD <> SENDVAL || #SCNT > #RESULT
  if #SCNT > #RESULT
    display ok You should start the .NET SystemMonitor
return

In the zip file, there's an executable in the debug folder you can use to play with this.
« Last Edit: October 04, 2009, 10:28:05 PM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline ThimottyTopic starter

  • Jr. Member
  • **
  • Posts: 61
  • Activity:
    0%
  • Reputation Power: 0
  • Thimotty has no influence.
  • Respect: +7
  • Referrals: 0
    • View Profile
Re: Is there any workaround for the hanging send command?
« Reply #10 on: October 04, 2009, 10:26:52 PM »
0
Yep, I cannot read it. It just fill it's window. And the C code is in OOP which is beyond my level even in php :(
I'll try to develop a solution of myself
Actually i have found a tool that record registry key changes into a file and is working fast enough :)
« Last Edit: October 04, 2009, 10:29:19 PM by Thimotty »

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13303
  • Activity:
    0.4%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Is there any workaround for the hanging send command?
« Reply #11 on: October 05, 2009, 03:46:28 PM »
0
Well, pay no attention to what it was coded IN, but rather think about the method.  You can access the EUO registry in PHP just like you can in C#.  Knowing that, you can basically code in PHP what I coded in C#.  There's no C# or OOP magic going on.  It's very simple actually.
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline ThimottyTopic starter

  • Jr. Member
  • **
  • Posts: 61
  • Activity:
    0%
  • Reputation Power: 0
  • Thimotty has no influence.
  • Respect: +7
  • Referrals: 0
    • View Profile
Re: Is there any workaround for the hanging send command?
« Reply #12 on: October 05, 2009, 08:28:59 PM »
0
Yes, i found some classes for php+windows registry, but don't have time to test them now.

Here is the first "pre-alpha" result from my efforts :P

http://aceputersstore.com/uodb/openitems.php
in my todo:
show vendor location (the info is in my db already)
better search
detail info for one or multiple items


I could use some suggestions how to make it better :)
« Last Edit: October 05, 2009, 08:38:04 PM by Thimotty »

Tags: