Direct acces the socket data bytes
I needed direct acces the socket data bytes ... if break to bytes socketdata this code is working is very slowly this circle time 15 milisecond...... :(
DATAM=sock.getdata(255)
IO.portnum=pl_io_port_num_0
IO.portenabled=255
------------------------------------------------------ This block is very slowly running.....
L=LEN(DATAM)
FOR X=1 TO L
XM(X)=(MID(DATAM,X,1))
NEXT X
IO.portstate=ASC(XM(1))
------------------------------------------------------
sock.setdata(ASC(XM(1)))
sock.send
sock.connect
DATAM=sock.getdata(255)
IO.portnum=pl_io_port_num_0
IO.portenabled=255
------------------------------------------------------ This block is very slowly running.....
L=LEN(DATAM)
FOR X=1 TO L
XM(X)=(MID(DATAM,X,1))
NEXT X
IO.portstate=ASC(XM(1))
------------------------------------------------------
sock.setdata(ASC(XM(1)))
sock.send
sock.connect
3
people like this idea
I like this idea!
Tell me when this idea gets some attention.
The more people who like this idea, the more it gets noticed.
The more people who like this idea, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
Loading Profile...


