Can't determine when there is an existing connection

Information and support for EnvisaLink modules.

Moderators: EyezOnRich, GrandWizard

Post Reply
LeePhillippi
Posts: 2
Joined: Thu Jun 24, 2021 4:25 am

Can't determine when there is an existing connection

Post by LeePhillippi »

I'm connecting to an Envisalink 4 using java.net.Socket. When there's an existing connection using the Envisalink, the new connection doesn't throw an error. All of the connection status methods(isBound, isConnected, etc) return affirmative values as if it was connected. The only difference from a valid connection is that it doesn't respond. I'd like to provide the user with messaging to help them figure out the reason that it isn't connectings.

Is there anyway to do this?
If not, in the next firmware update can you make it throw an error if there's an existing connection?
K-Man
Posts: 145
Joined: Fri Jun 01, 2012 1:08 pm

Re: Can't determine when there is an existing connection

Post by K-Man »

That would be an issue with your OS. If the EVl3/4's TPI socket is open already, the new TCP connection is refused.

Your socket create method would fail and should throw some error.

K
Post Reply