Project

General

Profile

Bug #2763

closed

/sockread -n &binvar

Added by O uims over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
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
on *:sockread:client1:sockread -n &a | echo -s > $bvar(&a,0) -
$bvar(&a,1-) -- $bvar(&a,1).text | sockclose client

/testsr

#1

Updated by O uims over 5 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*
#2

Updated by Per Amundsen over 5 years ago

  • Category set to Scripting
  • Status changed from New to Resolved
  • Assignee set to Per Amundsen
  • Target version set to 2.4
#3

Updated by Per Amundsen over 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF