Commit db766ee58495badcd5308d987bd0331c4d81a6fd
1 parent
694ca33b
Exists in
master
Ajustando nome do objeto, criando script para facilitar a geração dos .zip para teste em windows.
Showing
3 changed files
with
26 additions
and
11 deletions
Show diff stats
src/pw3270-sharp/pw3270-sharp.cs
| @@ -35,7 +35,7 @@ using System; | @@ -35,7 +35,7 @@ using System; | ||
| 35 | using System.Text; | 35 | using System.Text; |
| 36 | using System.Runtime.InteropServices; | 36 | using System.Runtime.InteropServices; |
| 37 | 37 | ||
| 38 | -namespace tn3270 { | 38 | +namespace pw3270 { |
| 39 | 39 | ||
| 40 | /// <summary> | 40 | /// <summary> |
| 41 | /// Session with 3270 HOST. | 41 | /// Session with 3270 HOST. |
testprograms/sample.cs
| @@ -27,28 +27,27 @@ | @@ -27,28 +27,27 @@ | ||
| 27 | * | 27 | * |
| 28 | */ | 28 | */ |
| 29 | 29 | ||
| 30 | -using tn3270; | 30 | +using pw3270; |
| 31 | 31 | ||
| 32 | class sample { | 32 | class sample { |
| 33 | 33 | ||
| 34 | static void Main(string[] args) { | 34 | static void Main(string[] args) { |
| 35 | 35 | ||
| 36 | - tn3270.Session host = new tn3270.Session(""); | ||
| 37 | - | 36 | + pw3270.Session host = new pw3270.Session(""); |
| 37 | + | ||
| 38 | System.Console.WriteLine("Using pw3270 version " + host.GetVersion() + " revision " + host.GetRevision()); | 38 | System.Console.WriteLine("Using pw3270 version " + host.GetVersion() + " revision " + host.GetRevision()); |
| 39 | 39 | ||
| 40 | host.Connect("tn3270://zos.efglobe.com:telnet",10); | 40 | host.Connect("tn3270://zos.efglobe.com:telnet",10); |
| 41 | - | 41 | + |
| 42 | if(host.IsConnected()) { | 42 | if(host.IsConnected()) { |
| 43 | - | 43 | + |
| 44 | System.Console.WriteLine("Connected to host"); | 44 | System.Console.WriteLine("Connected to host"); |
| 45 | - | 45 | + |
| 46 | System.Console.WriteLine(host.GetStringAt(14,19,38)); | 46 | System.Console.WriteLine(host.GetStringAt(14,19,38)); |
| 47 | - | 47 | + |
| 48 | host.Disconnect(); | 48 | host.Disconnect(); |
| 49 | } | 49 | } |
| 50 | - | 50 | + |
| 51 | } | 51 | } |
| 52 | - | ||
| 53 | -} | ||
| 54 | 52 | ||
| 53 | +} |
| @@ -0,0 +1,16 @@ | @@ -0,0 +1,16 @@ | ||
| 1 | +#!/bin/bash | ||
| 2 | + | ||
| 3 | +rm -f *.zip | ||
| 4 | + | ||
| 5 | +win32-configure && make clean && make zip | ||
| 6 | + | ||
| 7 | +win64-configure && make clean && make zip | ||
| 8 | + | ||
| 9 | +if [ -d ~/public_html/win/x86_32 ]; then | ||
| 10 | + cp *i686*.zip ~/public_html/win/x86_32 | ||
| 11 | +fi | ||
| 12 | + | ||
| 13 | +if [ -d ~/public_html/win/x86_64 ]; then | ||
| 14 | + cp *.x86_64*.zip ~/public_html/win/x86_64 | ||
| 15 | +fi | ||
| 16 | + |