rwdschedule 0.94 → 0.95

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. data/Readme.txt +364 -199
  2. data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +25 -26
  3. data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +25 -4
  4. data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +1 -0
  5. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +20 -0
  6. data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +19 -0
  7. data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +12 -0
  8. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +54 -0
  9. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +22 -7
  10. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +3 -0
  11. data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +24 -0
  12. data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +1 -1
  13. data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +21 -0
  14. data/code/superant.com.schedule/archiveicsevent.rb +14 -0
  15. data/code/superant.com.schedule/cleareventscreendisplay.rb +12 -8
  16. data/code/superant.com.schedule/deleteicseventrecord.rb +19 -0
  17. data/code/superant.com.schedule/helptexthashrwdschedule.rb +15 -1
  18. data/code/superant.com.schedule/listicseventdates.rb +19 -0
  19. data/code/superant.com.schedule/loadeventrecord.rb +17 -9
  20. data/code/superant.com.schedule/loadicseventrecord.rb +30 -0
  21. data/code/superant.com.schedule/openhelpwindowrwdschedule.rb +11 -2
  22. data/code/superant.com.schedule/renameicseventdata.rb +17 -0
  23. data/code/superant.com.schedule/runrwdscheduleicsbackwindow.rb +10 -0
  24. data/code/superant.com.schedule/saveeventrecord.rb +9 -2
  25. data/code/superant.com.schedule/saveicseventrecord.rb +85 -0
  26. data/code/superant.com.schedule/viewicsevent.rb +20 -0
  27. data/configuration/rwdscheduleversion.cnf +1 -1
  28. data/configuration/rwdtinker.cnf +3 -3
  29. data/configuration/rwdtinkerversion.cnf +1 -1
  30. data/configuration/tinkerwin2variables.cnf +7 -3
  31. data/extras/icalendar.rb +18 -0
  32. data/gui/00coreguibegin/applicationguitop.rwd +1 -1
  33. data/gui/frontwindow0/superant.com.rwdschedules/gl6editrecord.rwd +27 -10
  34. data/gui/frontwindow0/superant.com.zmenus/m03menu.rwd +6 -3
  35. data/gui/frontwindowselections/superant.com.schedulebackselection/rwdscheduleiscselectiontab.rwd +12 -0
  36. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m03menu.rwd +3 -4
  37. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/1appname.rwd +5 -0
  38. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/30viewevent.rwd +27 -0
  39. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/40editrecord.rwd +44 -0
  40. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/60eventicsutilities.rwd +25 -0
  41. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/m01menubegin.rwd +10 -0
  42. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/m02menu.rwd +36 -0
  43. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/m03menu.rwd +12 -0
  44. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/m85menu.rwd +21 -0
  45. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/m88menu.rwd +12 -0
  46. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/m99menuend.rwd +3 -0
  47. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/zvbackend.rwd +6 -0
  48. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +11 -11
  49. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +44 -0
  50. data/installed/rwdviewlogo-0.4.inf +4 -0
  51. data/lang/templangfile.rb +15 -15
  52. data/lang/xlocallangfile.rb +15 -15
  53. data/rwd_files/HowTo_Schedule.txt +15 -2
  54. data/rwd_files/HowTo_Tinker.txt +11 -0
  55. data/rwd_files/tinker.png +0 -0
  56. data/schedules/20050120T09.ics +9 -0
  57. data/schedules/200502february22 test event.sch +5 -0
  58. data/schedules/Enterprise.ics +411 -0
  59. data/schedules/US Holidays.ics +575 -0
  60. data/schedules/testics05.ics +11 -0
  61. data/tests/rwdtinkertestEN.rb +163 -0
  62. data/tests/test.result +32 -0
  63. metadata +73 -34
  64. data/zips/rwdwcalc-0.50.zip +0 -0
data/Readme.txt CHANGED
@@ -1,199 +1,364 @@
1
- = rwdschedule - for rwdtinker and RubyWebDialogs
2
-
3
- rwdschedule is a simple little database
4
-
5
- The GUI interface used is RubyWebDialogs
6
-
7
- RubyWebDialogs is a platform independent graphical user interface for Ruby applications. It generates HTML and serves it with an internal HTTP server, so you can use your favorite web browser as the front end for your Ruby application. All this means, that it can be used on almost every platform, like Ruby itself. http://www.erikveen.dds.nl/rubywebdialogs/
8
-
9
- == Quick Start
10
- Start the program by typing
11
- ruby init.rb
12
-
13
- Then point your web browser to:
14
- http://localhost:7705/
15
-
16
- Then enter the event date you want to search for in the browser form and press Search.
17
- 200412december1a
18
- browser should fill with the event information.
19
- To exit, press the x inside the browser window.
20
-
21
-
22
- == How to Use the Schedule Book (rwdschedule)
23
-
24
- There are two ways to add records to schedule book.
25
-
26
- == Adding Records
27
-
28
- 1. Use the "Edit Event" tab
29
- The first field is the most important. It is the filename that
30
- will be created. I use the event date starting with yearmonthday
31
- 2005january11
32
-
33
- The following lines for entry are for you to fill in as you want.
34
- When you are finished press the Save Changes button
35
-
36
- You use this same screen for editing an already saved event
37
-
38
- 2. Manually add an entry for a event record
39
- You can use a text editor to create a record
40
- put information on separate lines. You can have as many lines as you want
41
- name the file with starting with date and end with .nam
42
- 2005january11 6 pm dinner party.nam
43
-
44
- Save your file to the schedules/ subdirectory
45
-
46
-
47
- == Viewing an schedule book entry:
48
-
49
-
50
- Go to "View event" tab
51
-
52
- Click on the list events button.
53
-
54
- Click on the date you want
55
-
56
- Then click the "Open" button
57
-
58
- If it finds the record it will open it. It displays the record
59
- as text under the "Open" button.
60
-
61
-
62
- == Event Utilities
63
-
64
- Click on "Event Utilites" tab
65
-
66
- You can rename event filenames
67
- You can delete events
68
-
69
- == Sync for multiple computers
70
-
71
- If you are like me, you have more than one system
72
- I use rwdTinker at home on my Linux laptop
73
- at work I use it on XP
74
- on the go I use rwdtinker on my Zaurus PDA
75
- So I am adding schedule events on different machines.
76
- There is a function to help sync the separate systems
77
-
78
- in "Selection Panel" click on "Open Schedule Sync Window"
79
-
80
- First you need your ftp details set in the
81
- configuration/rwdschedule.cnf file
82
-
83
- you can upload your events from your local schedules directory to the ftp site
84
- you can download events from the ftp site to your local updates directory
85
- you can perform a sync which finds remote events and adds them to your local
86
- schedules directory
87
-
88
- There is a button to delete the update directory when finished
89
-
90
- == Show Month
91
-
92
- Click on "Show Month" tab
93
- enter
94
- Year: 2005
95
- Month: 1
96
- Click on show month
97
-
98
- It will display one month
99
-
100
-
101
- == Using over a Network
102
-
103
- To serve the application over your local LAN,change the last line in the
104
- init.rb file to something like:
105
- RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
106
- Then you should be able to login at: http://yourhostname:8080
107
-
108
- You have to authorize yourself. The .rwuids example is a string with
109
- the name of the authorization file, relative to the home directory
110
- of the user that started the service. This file has to be in the form of:
111
-
112
- user1 = password
113
- user2 = pass phrase
114
-
115
- Thus the file .rwduids might contain:
116
-
117
- erik = secret
118
-
119
- == Requirements:
120
- RubyWebDialogs - I am using 0.0.11 2004-3-9
121
-
122
- Ruby I am using version 1.8.2
123
-
124
-
125
- I have tested this under Linux-Debian kernel 2.6.9
126
-
127
- == PROBLEMS:
128
- It is easy to type a date with a space after it. That will have a somewhat invisible space
129
- in it.
130
-
131
- don't type in the extension .sch
132
-
133
- Closing the browser doesn't terminate the application. You have to use the application's close-button And terminating the application doesn't terminate the application when running in network mode. You just log out.
134
-
135
- Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
136
-
137
-
138
- == contacts
139
- For more information see:
140
- http://rwdapplications.rubyforge.org/wiki/wiki.pl
141
-
142
-
143
- For more information about RubyWebDialogs see:
144
- http://www.erikveen.dds.nl/rubywebdialogs/index.html
145
-
146
-
147
- Steven Gibson
148
- steven@superant.com
149
-
150
- == Changelog
151
- version 0.94
152
- added RwdSchedule Menu tab for easier navigation
153
- wider text boxes for contact information
154
- Improvement to context sensitive help
155
- updated for rwdtinker 1.51 - finds available port and remote control
156
-
157
- version 0.93
158
- added some context sensitive help
159
- added edit config file and reload config variables
160
- change to tinker context help script
161
- updated for rwdtinker 1.47
162
- factored month calendar display - should be more readable
163
- fixed l10n calls for calendar for Dutch
164
- added archive function for old events
165
-
166
- version 0.92
167
- Added delete update files function in sync tab
168
-
169
- version 0.91
170
- updated for rwdtinker 1.44 - refactored gui files
171
- Changed gui directory names - more like Java package titles
172
-
173
- version 0.9
174
- added back window for sync tasks
175
- added configuration viewing
176
- added ftp file download for sync
177
- added ftp file upload for sync
178
- add update files and schedule sync compares
179
-
180
- version 0.8
181
- updated for rwdtinker 1.42 - semi-live updates
182
-
183
- version 0.7
184
- updated for rwdtinker 1.4
185
- addition to documentation
186
-
187
- version 0.6
188
- updated for rwdtinker 1.3
189
-
190
- version 0.5
191
- added edit commands to change event record
192
- Rename event
193
- Delete event
194
- changed order of event list - descending = oldest at top
195
-
196
- version 0.4
197
- added configuration file with location of schedules directory
198
- add date selection to view event tab
199
- updated to version 1.0 of rwdtinker
1
+ = RwdTinker framework for RubyWebDialogs
2
+
3
+
4
+ RwdTinker is a web brower interface to and system for developing programs
5
+
6
+ == Usage
7
+
8
+
9
+ How to Use the Tinker framework Program (rwdtinker)
10
+
11
+
12
+ 1. stand alone application
13
+ 2. framework for building applications
14
+ 3. Open brower windows with html documents
15
+
16
+ The GUI interface used is RubyWebDialogs
17
+
18
+
19
+ Start the program by typing
20
+ ruby init.rb
21
+
22
+ Then point your web browser to:
23
+ http://localhost:7705/
24
+
25
+
26
+ == Viewing installed Applets:
27
+
28
+
29
+ Go to "List Scripts" tab
30
+
31
+
32
+ You can get a list of all installed applets by clicking the listfiles button
33
+
34
+ To see the text of a install file
35
+ Type in the name of the file you want.
36
+
37
+ type it without the inf ending
38
+ rwdapplet-0.1
39
+
40
+ Then click the "View Installed File" button
41
+
42
+ If it finds the file it will open it. It displays the text the search box.
43
+
44
+ You can uninstall applets on this screen
45
+
46
+ == Installing Applets
47
+
48
+ click on the "Selection Panel"
49
+ click on Rwdtinker Back Window
50
+
51
+ You can download an applet created by someone else
52
+ put the file in the zips directory
53
+
54
+ click on the "list zips" tab
55
+ click on "list applets available for installing"
56
+
57
+ chose the applet you want
58
+ click on "install applet"
59
+ If all goes well the applet should be installed.
60
+ You will need to restart rwdtinker to see the new screens
61
+
62
+
63
+ == Changing configuration file
64
+
65
+ click on "Edit Configuration"
66
+ You can view the configuration file
67
+
68
+ You can edit the configuration
69
+
70
+ Remember to reload the configuration variables if you want your
71
+ changes used.
72
+
73
+ == Manually installing applets
74
+
75
+ * unzip an applet
76
+
77
+ unzip the applet into the program directoy
78
+ unzip randomapplet.zip
79
+
80
+ This should place the needed files in the correct directories
81
+
82
+
83
+ == Creating Applets
84
+
85
+ To add code, commands and gui tabs
86
+
87
+ Move program files into a directory under the code directory.
88
+ Move gui files into a directory under the gui directory.
89
+ The gui directory name you create is important, because the gui
90
+ rwd file is built in alpha order by directory name
91
+
92
+
93
+ There are two ways to add applets to the directories.
94
+
95
+ Creating code
96
+
97
+
98
+ * Manually write code and gui files
99
+
100
+ The files go into your code directory
101
+ the filenames for code do not matter
102
+
103
+ The gui files go into your gui directory
104
+ The gui files need to be in order by name and end with .rwd
105
+
106
+
107
+
108
+ If you need a config file that goes in the configuration directory
109
+
110
+ internationalization and localization are helped by replacing the
111
+ gui files in the subdirectories under gui
112
+
113
+
114
+ == Documents
115
+
116
+
117
+ when you click on a document name, the document should pop up in a
118
+ browser window, or in another browser tab.
119
+
120
+ To exit, press the x inside the browser window.
121
+
122
+ == To add context sensitive help
123
+
124
+ You need to add a hash file that just needs to contain
125
+ Helptext.update( :myapplet_generalhelp => " This is the general help
126
+ You can add help text hear")
127
+
128
+ And you need to add a help run script that will call runhelpwindow
129
+ This should have a method that includes:
130
+ setting $help_topic, and adds to $helptopicsarray, saves the calling window and calls runhelpwindow which will render the help message.
131
+
132
+ if @rwd_tab == "gemservescan"
133
+ $help_topic = "gemdocs_help"
134
+ end
135
+ $helptopicsarray = $helptopicsarray | ["rubyslippers_generalhelp", "Install_Gem","GemCommands_help", "gemfilesinstalled","gemdocs_help"]
136
+ if @rwd_window != "rwdtinkerhelpwindow"
137
+ $previouswindow = @rwd_window
138
+ $previoustab = @rwd_tab
139
+ end
140
+ runhelpwindow
141
+ end
142
+
143
+ == Languages
144
+
145
+
146
+ You can add tranlations in the lang subdirectory
147
+ You change the $lang constant in Tinker config file in the configuration directory
148
+ You can see one translation on the install applet tab, after you have installed and applet
149
+
150
+ == Using over a Network
151
+
152
+ To serve the application over your local LAN,change the last line in the
153
+ init.rb file to something like:
154
+ RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
155
+ Then you should be able to login at: http://yourhostname:8080
156
+
157
+ You have to authorize yourself. The .rwuids example is a string with
158
+ the name of the authorization file, relative to the home directory
159
+ of the user that started the service. This file has to be in the form of:
160
+
161
+ user1 = password
162
+ user2 = pass phrase
163
+
164
+ Thus the file .rwduids might contain:
165
+
166
+ erik = secret
167
+
168
+ == Requirements:
169
+ RubyWebDialogs - I am using 0.1.2
170
+ This package you downloaded should have a runtime version of
171
+ the needed rubywebdialog files
172
+
173
+ Ruby I am using version 1.8.2
174
+
175
+ I have tested this under Linux-Debian kernel 2.6.9
176
+
177
+ = Operation:
178
+ The code files reside in the code directory and are combined before
179
+ the main Class is loaded
180
+
181
+ The rwd files in gui are combined before the gui is activated
182
+
183
+ Translated text reside in the lang directory
184
+
185
+ == Installing:
186
+
187
+ untar the file
188
+ tar zxvf rwdtinker-x.y.tar.gz
189
+ then cd to the directory
190
+ cd rwdshell-x.y
191
+ then start the init.rb program file
192
+ ruby init.rb
193
+ Then point your browser at http://localhost:7705
194
+ or where it tells you.
195
+ Trouble shooting:
196
+
197
+ If the program is not working, try looking at the ev subdirectory. That is where
198
+ the runtime of rubywebdialogs are.
199
+
200
+ for long term installation, I would suggest putting most files in a lib directory
201
+ like /usr/lib/rwdshell
202
+ then make a writable directory the local directory for command files to be written
203
+ like ~/rwdshell
204
+
205
+
206
+ Closing the browser doesn't terminate the application. You have to use the application's close-button And terminating the application doesn't terminate the application when running in network mode. You just log out.
207
+
208
+ Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
209
+
210
+ RubyWebDialogs is a platform independent graphical user interface for Ruby applications. It generates HTML and serves it with an internal HTTP server, so you can use your favorite web browser as the front end for your Ruby application. All this means, that it can be used on almost every platform, like Ruby itself. http://www.erikveen.dds.nl/rubywebdialogs/
211
+
212
+ == Credits
213
+
214
+ Thanks go to:
215
+
216
+ * Matz, for creating Ruby in the first place.
217
+ * Erik, for creating RubyWebDialogs.
218
+ * Charlotte, my wife for coming up for the name Tinker.
219
+
220
+ == License
221
+
222
+ rwdtinker is copyright (c) 2004 Steven Gibson. It is free software, and may be redistributed
223
+ under the terms of the GPL licence:
224
+
225
+ == Contact
226
+ For more information see:
227
+ http://rwdapplications.rubyforge.org/wiki/wiki.pl
228
+
229
+
230
+ For more information about RubyWebDialogs see:
231
+ http://www.erikveen.dds.nl/rubywebdialogs/index.html
232
+
233
+ Thanks, Steven Gibson
234
+
235
+ == Changelog
236
+ version 1.50
237
+ changed unzip applet to be internal code - no exec to unzip program
238
+ changed order of tabs on back window - list applets now first
239
+ added rwdwcalc applet in to zips directory
240
+ changed width of text fields with help from RubyWebDialogs author
241
+
242
+ version 1.49
243
+ added demon function for remote queries
244
+ startup application on first available port
245
+
246
+ version 1.48
247
+ fix in context sensitive help so that applets can use it better
248
+
249
+ version 1.47
250
+ change to context sensitive help
251
+
252
+ version 1.46
253
+ more work on context help
254
+ window calls point to tab as well as windows
255
+ help added help buttons on Document, Selection, View Applet, tabs
256
+
257
+ version 1.45
258
+ first steps toward context sensitive help
259
+ added help button on main window/tab
260
+
261
+ version 1.44
262
+ updated directory structure - refactored gui files
263
+ Changed gui directory names - more like Java package titles
264
+
265
+ version 1.43
266
+ changed setup variables file for live changes
267
+ added editing and reloading of config file
268
+ added unzip filename to config file
269
+
270
+ version 1.42
271
+ update for live update system
272
+ update applets for live update
273
+ code file name cleanup
274
+
275
+ version 1.41
276
+ l10n work es,nl, jp
277
+ separated out languge.cnf
278
+ added zip applets refreshacpi, rwdcalc
279
+
280
+ version 1.40
281
+ removed extra lines from init.rb
282
+ fixed help second window
283
+ added some tranlations for Spanish
284
+ More work on l10n
285
+
286
+ version 1.3
287
+ refactored gui files to do easier i10n
288
+ removed lang directories under gui
289
+ added lang files under lang dir
290
+ removed redundant code files left from moving applet handling to back window
291
+ removed zipped applets not yet refactored
292
+
293
+ version 1.24
294
+ added internet usage instructions to HowTo_Tinker.txt
295
+ removed HowTo_Tinker.html
296
+ added panels for Helpabout
297
+ changed photo logo tab to only have embedded picture, no button
298
+
299
+ version 1.23
300
+ moving diagnostic tab and applet handling tabs to second window
301
+ added selection panel tab to choose secondary windows.
302
+
303
+ version 1.21
304
+ changing version on help screen to be button
305
+ added version window
306
+ added diagnostic tab
307
+
308
+ version 1.2
309
+ added gemspec for creating a rwdtinker.gem
310
+ added rdoc comments
311
+ changed order on remove applets tab
312
+
313
+ version 1.1
314
+ changed order of elements on install applet tab
315
+ Add more i81n ablility - added lang directorys for language hash files
316
+ added in test file using WATIR stands for "Web Application Testing In Ruby,
317
+
318
+ version 1.0
319
+ Improved name selection in zips and applet screens
320
+ added rubyslippers applet and rwdrefreshacpi applets as zips
321
+
322
+ version 0.9
323
+ Fixed bug introduced in 0.8 - code files not sorted correctly - class end was not in correct location
324
+ updated RubyWebDialogs for people who do not have it installed
325
+ added rwdschedule applet as zip file
326
+
327
+ version 0.8
328
+ changed location of code files
329
+ only directory of code files needs to be added to inf file
330
+ changed location of gui files
331
+ only directory of gui files needs to be added to inf file
332
+ Added constants in conf file for code location and gui location
333
+ removed all zips not yt updated to new directory layout
334
+ change loading of conf files to not need intermediate file
335
+ and favicon.ico
336
+
337
+ version 0.7
338
+ moved changelog to HowTo_Tinker.html
339
+ copied english gui text to the dirs I think we should translate to
340
+ update backup zip files to newest versions
341
+ upgraded the ev directory - for those who don't have RubyWebDialogs
342
+
343
+ version 0.6
344
+ updated version number
345
+ changed merge name to rwdtinker.rb
346
+
347
+ version 0.4
348
+ added zip listing and installing - Linux only
349
+
350
+ Version 0,3
351
+ changed name to Tinker
352
+
353
+ Version 0.2
354
+ added some i18n directories for the gui files
355
+
356
+ Version 0.1
357
+ first public version released
358
+ includes document screen
359
+ Open Photo screen
360
+ included configuration directory
361
+ zips directories
362
+ installed directory
363
+ installed applet lister
364
+
@@ -1,28 +1,22 @@
1
- #
1
+ # Bind message passing socket to rwdtinker application
2
2
 
3
3
  def runcontrolcommand
4
4
  require 'socket'
5
5
 
6
6
  # Change this line...
7
- ip = '127.0.0.1'
7
+ ip = '127.0.0.1'
8
8
  # And this one...
9
- port = $rwdcontrolport1
10
- if @a_remoteportinput
11
- port = @a_remoteportinput.to_i
12
- end
13
- # Done!
9
+ port = $rwdcontrolport1
10
+ if @a_remoteportinput
11
+ port = @a_remoteportinput.to_i
12
+ end
14
13
 
15
-
16
14
  commandtext = @a_remotecommandinput.to_s
17
-
18
- remotehostnotfound = true
19
-
20
- client = UDPSocket::new()
21
- client.send(commandtext, 0, ip, port)
22
-
23
-
24
- if (commandtext == "stop")
25
- begin
15
+ remotehostnotfound = true
16
+ if (commandtext == "stop")
17
+ begin
18
+ client = UDPSocket::new()
19
+ client.send(commandtext, 0, ip, port)
26
20
  @socket = UDPSocket::new()
27
21
  @socket.bind(ip, port)
28
22
  # Rescue the "Address in use" error
@@ -51,17 +45,20 @@ begin
51
45
  @remotecommandresult = "Remote Host not running"
52
46
  end
53
47
  @socket.close
54
- end
48
+ # Close the socket after use
49
+ client.close()
50
+ end
55
51
 
56
- remotehostnotfound = true
57
- if (commandtext == "query")
58
- begin
52
+ remotehostnotfound = true
53
+ if (commandtext == "query")
54
+ begin
55
+ client = UDPSocket::new()
56
+ client.send(commandtext, 0, ip, port)
59
57
  @socket = UDPSocket::new()
60
58
  @socket.bind(ip, port)
61
59
  # Rescue the "Address in use" error
62
60
  rescue Errno::EADDRINUSE
63
61
 
64
-
65
62
  databack, info = client.recv(128)
66
63
  @remotecommandresult = databack
67
64
  @lastremotecommand = "rwdtinker remote: Port #{port} on host #{ip} "
@@ -82,15 +79,17 @@ begin
82
79
  # Rescue all other errors
83
80
  end
84
81
  @socket.close
85
- end
86
- if remotehostnotfound
87
- @remotecommandresult = "Remote Host not running"
88
- end
82
+
89
83
  # Close the socket after use
90
84
  client.close()
85
+ end
91
86
 
87
+ if remotehostnotfound
88
+ @remotecommandresult = "Remote Host not running"
89
+ end
92
90
  end
93
91
 
92
+ # list the remote control options on the screen
94
93
  def showremoteportoptions
95
94
 
96
95
  @remoteportoptions = $rwdcontrolports.rwd_options