Actions
Bug #2763
closed/sockread -n &binvar
Start date:
06/20/2016
Due date:
% Done:
0%
Estimated time:
Operative System:
All
Regression:
No
Description
When this reads a line, it should remove the $crlf (or just $lf) from the value being put into the binvar
alias testsr socklisten serv 8000 | sockopen client 127.0.0.1 8000
on :socklisten:serv:sockaccept client1 | sockclose serv
on *:sockopen:client:if (!$sockerr) sockwrite n client $bvar(&a,1-) -- $bvar(&a,1).text | sockclose client
on *:sockread:client1:sockread -n &a | echo -s > $bvar(&a,0) -
/testsr
Updated by O uims over 8 years ago
alias testsr socklisten serv 8000 | sockopen client 127.0.0.1 8000 on *:socklisten:serv:sockaccept client1 | sockclose serv on *:sockopen:client:if (!$sockerr) sockwrite -n client on *:sockread:client1:sockread -n &a | echo -s > $bvar(&a,0) -- $bvar(&a,1-) -- $bvar(&a,1) | sockclose client*
Updated by Per Amundsen over 8 years ago
- Category set to Scripting
- Status changed from New to Resolved
- Assignee set to Per Amundsen
- Target version set to 2.4
Actions