We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7776f4 commit c57726aCopy full SHA for c57726a
lib/Net/Telnet.php
@@ -72,7 +72,7 @@ public function recv()
72
$data = null; // Bytes Read
73
$mode = 'read';
74
$send = null; // Bytes to Send as Reply
75
-
+
76
$r = array($this->_s);
77
$w = null;
78
$e = null;
@@ -86,8 +86,8 @@ public function recv()
86
default:
87
die("Unknown $s");
88
}
89
90
91
92
// while ($byte = $this->_recv()) {
93
// // echo '.';
@@ -152,13 +152,14 @@ public function recv()
152
// }
153
154
// echo '+';
155
- $data .= $byte;
156
- }
+// $data .= $byte;
+// }
157
158
if (!empty($send)) {
159
echo "To Send: " . bin2hex($send);
160
fwrite($this->_s,$send);
161
162
163
// echo "Proper Return\n";
164
// echo bin2hex($data) . "\n";
165
return $data;
0 commit comments