Re: Digest Number 7261

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Digest Number 7261

Hercules390 - General mailing list


Sent from my LG Optimus G Pro™, an AT&T 4G LTE smartphone


------ Original message------
From:
Date: Thu, Apr 13, 2017 4:12 PM
To: [hidden email];
Subject:[hercules-390] Digest Number 7261

 
Discussion group for users of the Hercules ESA/390 mainframe emulator Group

15 Messages
Digest #7261


1.1
Re: TCP port 3505 is popular for a card reader - Any other programs by "Buddy Bell" hhbell370

1.2
Re: TCP port 3505 is popular for a card reader - Any other programs by "Tony Harminc" tzha1

1.3
Re: TCP port 3505 is popular for a card reader - Any other programs by ""Fish" (David B. Trout)" fish_hercules

1.4
Re: TCP port 3505 is popular for a card reader - Any other programs by "John P. Hartmann"

1.5
Re: TCP port 3505 is popular for a card reader - Any other programs by "Harold Grovesteen" ipguynow

1.6
Re: TCP port 3505 is popular for a card reader - Any other programs by "John P. Hartmann"

1.7
Re: TCP port 3505 is popular for a card reader - Any other programs by "Ivan Warren" ivan_warhead_real

1.8
Re: TCP port 3505 is popular for a card reader - Any other programs by "Maarten Hoes" hoes.maarten

1.9
Re: TCP port 3505 is popular for a card reader - Any other programs by "Harold Grovesteen" ipguynow

1.10
Re: TCP port 3505 is popular for a card reader - Any other programs by "John P. Hartmann"


2a
TN3270 emulation and code pages by [hidden email]

2b
Re: TN3270 emulation and code pages by "John P. Hartmann"

2c
Re: TN3270 emulation and code pages by ""Fish" (David B. Trout)" fish_hercules

2d
Re: TN3270 emulation and code pages by "Ivan Warren" ivan_warhead_real

2e
Re: TN3270 emulation and code pages by "John P. Hartmann"



Messages
1.1
Re: TCP port 3505 is popular for a card reader - Any other programs

Thu Apr 13, 2017 7:04 am (PDT) . Posted by:
"Buddy Bell" hhbell370

From the OP:

Turned out to be my fault. My GUI uses java and connecting to the card
reader I did:

Socket sock = new Socket("127.0.0.1",3505);
OutputStream os = sock.getOutputStream();

Then I wrote (with os.write(buf);) the card file to the reader.

When I went to close I only did.

os.close();

Never explicitly using:

sock.close();

When I added that last close to my code it worked fine. What I don't
understand is I have sold hundreds of my GUI without that last close
statement in there and nobody else ever had an issue with it. It is
possible the customer was using an older version of Java that behaved
differently. I seem to remember seeing documentation than when you close
the outputstream the underlying socket also gets closed but that may not
have always true in prior Java versions.

Thanks for all the input.

Buddy Bell

On Thu, 2017-04-13 at 13:10 +0200, Maarten Hoes [hidden email]
[hercules-390] wrote:

>
> Hi,
>
> On Thu, Apr 13, 2017 at 12:58 PM, 'John P. Hartmann'
> [hidden email] [hercules-390] <[hidden email]>
> wrote:
>
> Maarten,
>
> bind() fails with EADDRINUSE, long before listen() is set up
> for the
> port.
>
> Perhaps you got confused by the quintuple that defines a TCP
> session.
>
>
>
> Perhaps I have gotten confused. It's been a while since I last took a
> real look at the workings of TCP.
> ;)
>
> I have to agree with you that (even though I'm not a developer) when
> the TCP port is already in use, that (most likely, again, I'm no dev)
> it's 'bind()39; that fails with 'EADDRINUSE39;. I guess the point I was
> trying to make was that the most likely cause for the port being in
> use, is that 'malware/trojan/virus39; is listening on that port
> preventing it's use by Hercules, and not that the OP has run out of
> dynamic/ephemeral ports to assign.
>
>
> I'll crawl back under my rock now.
>
>
> - Maarten
>
>
>
>
>




Reply to sender . Reply to group . Reply via Web Post . All Messages (32) . Top ^


1.2
Re: TCP port 3505 is popular for a card reader - Any other programs

Thu Apr 13, 2017 9:49 am (PDT) . Posted by:
"Tony Harminc" tzha1

On 13 April 2017 at 08:06, 'John P. Hartmann' [hidden email] wrote:

> Not correct. Ask any firewall that supports VPN.
>
> On 04/13/2017 01:39 PM, Ivan Warren [hidden email] [hercules-390]
> wrote:
> > John,
> >
> > Well... You did say "TCP" session, and there is no such thing as an UDP
> > session (UDP is a connection-less protocol) !
>

A firewall is, like the NSA, in the business of observing the flow of data
and drawing inferences from what it sees. A firewall may be capable of
inferring the existence of a logical UDP session between endpoints, just as
the NSA infers the existence of connections between putative terrorists.
Whether the inferences reflect reality or are fabrications of doubtful
accuracy, varies in both cases. And just as the terrorists may take action
to obscure their activities, so application programs (by no means all of
which are malicious) using UDP may take actions to make their "sessions";
unnoticed by the firewall.

Tony H.



Reply to sender . Reply to group . Reply via Web Post . All Messages (32) . Top ^


1.3
Re: TCP port 3505 is popular for a card reader - Any other programs

Thu Apr 13, 2017 12:07 pm (PDT) . Posted by:
""Fish" (David B. Trout)" fish_hercules

John P. Hartmann disrespectfully wrote:

> Maarten,
>
> If your system is a Windows system, I should tend to agree
> with you that it is likely full of vira and trojans.

Fuck you, John. Your implication that the system some people use is likely infested with malware simply because that system happens to be Windows is not only untrue but also quite insulting. Your haughty and snobbish attitude and continued disrespect towards Windows user is not appreciated.

--
"Fish" (David B. Trout)
Software Development Laboratories
http://www.softdevlabs.com
mail: [hidden email]




Reply to sender . Reply to group . Reply via Web Post . All Messages (32) . Top ^


1.4
Re: TCP port 3505 is popular for a card reader - Any other programs

Thu Apr 13, 2017 12:18 pm (PDT) . Posted by:
"John P. Hartmann"

Please take your sexual preference elsewhere.

On 04/13/2017 08:59 PM, ''Fish' (David B. Trout)'
[hidden email] [hercules-390] wrote:
> Fuck you, John.




Reply to sender . Reply to group . Reply via Web Post . All Messages (32) . Top ^


1.5
Re: TCP port 3505 is popular for a card reader - Any other programs

Thu Apr 13, 2017 12:18 pm (PDT) . Posted by:
"Harold Grovesteen" ipguynow

On Thu, 2017-04-13 at 14:30 +0200, Maarten Hoes [hidden email]
[hercules-390] wrote:

>
>
> Hi,
>
>
> On Thu, Apr 13, 2017 at 2:19 PM, 'John P. Hartmann'
> [hidden email] [hercules-390] <[hidden email]>
> wrote:
>
> You can use sendto() on a UDP soclket to send to anyone, or
> you can bind
> the socket and use send(). In that sense, it is a session,
> though it is
> maintained in userland.
>
>
>
> So, would I then be correct to assume that the UDP protocol itself
> does not maintain a 'session39; for you, but the same effect may be
> reached at the application level (and the need to do so at the
> application level is because it is not done at the UDP protocol
> level) ?
>
>
> A firewall recognizes the UDP packet that starts a request
> (for some
> protocols) and allows a response to travel in for some fixed
> time.
>
>
>
>
>
> So the reason the firewall has to do this (using internal logic and/or
> analysis of the protocol running on top of UDP) is because it's not
> included in the UDP protocol ?
>
>
>
>
> - Maarten
>
Correct. Think SFTP.
Harold Grovesteen




Reply to sender . Reply to group . Reply via Web Post . All Messages (32) . Top ^


1.6
Re: TCP port 3505 is popular for a card reader - Any other programs

Thu Apr 13, 2017 12:29 pm (PDT) . Posted by:
"John P. Hartmann"

Harold, secure ftp (SFTP) is tunnelled through a TCP connexion to port
22 (encrypted). You have to open port 22 in your firewall if you wish
that inbound.

On 04/13/2017 09:13 PM, Harold Grovesteen [hidden email]
[hercules-390] wrote:
> Correct. Think SFTP.




Reply to sender . Reply to group . Reply via Web Post . All Messages (32) . Top ^


1.7
Re: TCP port 3505 is popular for a card reader - Any other programs

Thu Apr 13, 2017 12:33 pm (PDT) . Posted by:
"Ivan Warren" ivan_warhead_real



On 4/13/2017 9:21 PM, 'John P. Hartmann' [hidden email]
[hercules-390] wrote:
> Harold, secure ftp (SFTP) is tunnelled through a TCP connexion to port
> 22 (encrypted). You have to open port 22 in your firewall if you wish
> that inbound.
>
> On 04/13/2017 09:13 PM, Harold Grovesteen [hidden email]
> [hercules-390] wrote:
>> Correct. Think SFTP.
>
I think he meant TFTP (not STFP).

--Ivan

[Non-text portions of this message have been removed]




Reply to sender . Reply to group . Reply via Web Post . All Messages (32) . Top ^


1.8
Re: TCP port 3505 is popular for a card reader - Any other programs

Thu Apr 13, 2017 12:36 pm (PDT) . Posted by:
"Maarten Hoes" hoes.maarten

Hi,

On Thu, Apr 13, 2017 at 9:13 PM, Harold Grovesteen [hidden email]
[hercules-390] <[hidden email]> wrote:

>
>
> On Thu, 2017-04-13 at 14:30 +0200, Maarten Hoes [hidden email]
>
> [hercules-390] wrote:
> >
> >
> > Hi,
> >
> >
> > On Thu, Apr 13, 2017 at 2:19 PM, 'John P. Hartmann'
> > [hidden email] [hercules-390] <[hidden email]>
> > wrote:
> >
> > You can use sendto() on a UDP soclket to send to anyone, or
> > you can bind
> > the socket and use send(). In that sense, it is a session,
> > though it is
> > maintained in userland.
> >
> >
> >
> > So, would I then be correct to assume that the UDP protocol itself
> > does not maintain a 'session39; for you, but the same effect may be
> > reached at the application level (and the need to do so at the
> > application level is because it is not done at the UDP protocol
> > level) ?
> >
> >
> > A firewall recognizes the UDP packet that starts a request
> > (for some
> > protocols) and allows a response to travel in for some fixed
> > time.
> >
> >
> >
> >
> >
> > So the reason the firewall has to do this (using internal logic and/or
> > analysis of the protocol running on top of UDP) is because it's not
> > included in the UDP protocol ?
> >
> >
> >
> >
> > - Maarten
> >
> Correct. Think SFTP.
> Harold Grovesteen
>

Got it. (although, as pointed out, the particular protocol chosen here as
an example may not be correct ?).

Which, by the way, brings us right back to the initial "UDP is a
connection-less protocol" statement that started the discussion and
derailed this fine thread here.
;)

- Maarten



Reply to sender . Reply to group . Reply via Web Post . All Messages (32) . Top ^


1.9
Re: TCP port 3505 is popular for a card reader - Any other programs

Thu Apr 13, 2017 12:39 pm (PDT) . Posted by:
"Harold Grovesteen" ipguynow

On Thu, 2017-04-13 at 21:21 +0200, 'John P. Hartmann'
[hidden email] [hercules-390] wrote:
> Harold, secure ftp (SFTP) is tunnelled through a TCP connexion to port
> 22 (encrypted). You have to open port 22 in your firewall if you wish
> that inbound.

Sorry, I was thinking TFTP. RFC 753. A file transfer protocol that
uses UDP. The "connection" is managed by the client and server
applications.

I should have learned by now not to trust my memory. :-).

>
> On 04/13/2017 09:13 PM, Harold Grovesteen [hidden email]
> [hercules-390] wrote:
> > Correct. Think SFTP.
>
>
> ------------------------------------
> Posted by: "John P. Hartmann" <[hidden email]>
> ------------------------------------
>
> Community email addresses:
> Post message: [hidden email]
> Subscribe: [hidden email]
> Unsubscribe: [hidden email]
> List owner: [hidden email]
>
> Files and archives at:
> http://groups.yahoo.com/group/hercules-390
>
> Get the latest version of Hercules from:
> http://www.hercules-390.org
>
>
> ------------------------------------
>
> Yahoo Groups Links
>
>
>




Reply to sender . Reply to group . Reply via Web Post . All Messages (32) . Top ^


1.10
Re: TCP port 3505 is popular for a card reader - Any other programs

Thu Apr 13, 2017 12:56 pm (PDT) . Posted by:
"John P. Hartmann"

On 04/13/2017 09:33 PM, Ivan Warren [hidden email] [hercules-390] wrote:
> I think he meant TFTP

Trivial file transfer protocol? Unlikely I should think. (But it is UDP.)




Reply to sender . Reply to group . Reply via Web Post . All Messages (32) . Top ^


2a
TN3270 emulation and code pages

Thu Apr 13, 2017 12:53 pm (PDT) . Posted by:
[hidden email]

Does the CODEPAGE configuration option has any impact on how data entered via the keyboard is displayed on the screen when connecting to Hercules via a 3270 emulation client like C3270 or QWS3270 ?



Reply to sender . Reply to group . Reply via Web Post . All Messages (5) . Top ^


2b
Re: TN3270 emulation and code pages

Thu Apr 13, 2017 12:58 pm (PDT) . Posted by:
"John P. Hartmann"

The data transmitted "on the wire" is EBCDIC; code page is a client issue.

On 04/13/2017 09:53 PM,
[hidden email] [hercules-390] wrote:
>
>
> Does the CODEPAGE configuration option has any impact on how data
> entered via the keyboard is displayed on the screen when connecting to
> Hercules via a 3270 emulation client like C3270 or QWS3270 ?
>




Reply to sender . Reply to group . Reply via Web Post . All Messages (5) . Top ^


2c
Re: TN3270 emulation and code pages

Thu Apr 13, 2017 1:06 pm (PDT) . Posted by:
""Fish" (David B. Trout)" fish_hercules

Someone who STILL has not identified themselves but whose email address is [hidden email] asked:

> Does the CODEPAGE configuration option has any impact on
> how data entered via the keyboard is displayed on the screen
> when connecting to Hercules via a 3270 emulation client
> like C3270 or QWS3270 ?

Yes.

The data Hercules receives from the TN3270 client is ASCII and must be translated to EBCDIC before passing it on to the guest. When the guest then decides to write something to its 3270 device, the data "received" by Hercules must then be translated from EBCDIC back into ASCII again before being transmitted to the TN3270 client. Your chosen Hercules CODEPAGE is used for both.

--
"Fish" (David B. Trout)
Software Development Laboratories
http://www.softdevlabs.com
mail: [hidden email]




Reply to sender . Reply to group . Reply via Web Post . All Messages (5) . Top ^


2d
Re: TN3270 emulation and code pages

Thu Apr 13, 2017 1:08 pm (PDT) . Posted by:
"Ivan Warren" ivan_warhead_real



On 4/13/2017 9:53 PM, [hidden email]
[hercules-390] wrote:
>
>
> Does the CODEPAGE configuration option has any impact on how data
> entered via the keyboard is displayed on the screen when connecting to
> Hercules via a 3270 emulation client like C3270 or QWS3270 ?
>
>
Dear ahngb4nond2fjs4iv3chtuacfjmf4dgzileuxli7,

It shouldn't. Keyboard output on a 3270 terminal is purely a local
matter. Hercules is only involved when an AID key is pressed.

--Ivan

[Non-text portions of this message have been removed]




Reply to sender . Reply to group . Reply via Web Post . All Messages (5) . Top ^


2e
Re: TN3270 emulation and code pages

Thu Apr 13, 2017 1:12 pm (PDT) . Posted by:
"John P. Hartmann"

Not correct.

The data in a TN3270 session is EBCDIC, a 3270 data stream.

A TN session (typewriter) is, of course another kettle of fish.

On 04/13/2017 10:05 PM, ''Fish' (David B. Trout)'
[hidden email] [hercules-390] wrote:




Reply to sender . Reply to group . Reply via Web Post . All Messages (5) . Top ^




Community email addresses:
  Post message: [hidden email]
  Subscribe:    [hidden email]
  Unsubscribe:  [hidden email]
  List owner:   [hidden email]

Files and archives at:
  http://groups.yahoo.com/group/hercules-390

Get the latest version of Hercules from:
  http://www.hercules-390.org


Visit Your Group
New Members 3
 
• Privacy • Unsubscribe • Terms of Use
Loading...