program: hub4com v2.1.0.0
OS: Windows 10
message: ERROR 5 - Access is denied.
Similar setup when both, client and serve, run on the same host works ok.
Server log is provided below:
C:\Users\Larisa\iSens\hub4com-2.1.0.0-386>"hub4com" --create-filter=escparse,com,parse --create-filter=purge,com,purge --create-filter=pinmap,com,pinmap:"--rts=cts --dtr=dsr --break=break" --create-filter=linectl,com,lc:"--br=remote --lc=remote" --add-filters=0:com --create-filter=telnet,tcp,telnet:" --comport=server --suppress-echo=yes" --create-filter=lsrmap,tcp,lsrmap --create-filter=pinmap,tcp,pinmap:"--cts=cts --dsr=dsr --dcd=dcd --ring=ring" --create-filter=linectl,tcp,lc:"--br=local --lc=local" --add-filters=1:tcp --octs=off "COM5" --use-driver=tcp "*7000"
COM5 Open("COM5", baud=19200, data=8, parity=no, stop=1, octs=off, odsr=off, ox=off, ix=off, idsr=off, ito=0) - OK
Route data COM5(0) --> TCP(1)
Route data TCP(1) --> COM5(0)
Route flow control COM5(0) --> TCP(1)
Route flow control TCP(1) --> COM5(0)
Filters:
\->{parse.IN}------------------------------>
COM5(0) | /
__/<-----{purge.OUT}<-{pinmap.OUT}<-{lc.OUT}<-
\->{telnet.IN}-------------------------------------------->
TCP(1) | /
_/<-----{telnet.OUT}<-{lsrmap.OUT}<-{pinmap.OUT}<-{lc.OUT}<-
Started COM5(0)
Socket(0.0.0.0:7000) = 198
Listen(198) - OK
Started TCP(1)
TCP(1): Accept(198) = 1dc from 7.165.9.23:52730
TCP(1): Connected
TCP(1) START
TCP(1) SEND: WILL 1
TCP(1) SEND: DO 44
TCP(1) RECV: WILL 44
TCP(1) RECV: SB 44
1 0 1 194 0 SE
TCP(1) RECV: SB 44
...
...
...
TCP(1) SEND: SB 44
108 SE
TCP(1) SEND: SB 44
109 SE
ReadOverlapped::OnRead(): COM5(0) ERROR 5 - Access is denied.
ReadOverlapped::StartRead(): ReadFileEx() COM5(0) ERROR 5 - Access is denied.
COM5(0) Stopped Read 0
Correction:
Server works fine when both, client and server, run on the same Win7-64 host.
The issue appears when server is moved to another host running Win10.