Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7cca403

Browse files
committed
Show listening
1 parent bb29664 commit 7cca403

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎Server.php‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ public function run() {
163163
$address = $this->address;
164164
$port = $this->port;
165165

166+
// Log message
167+
echo "Listening ..\n";
168+
166169
// Unlimited loop.
167170
while (true)
168171
{
@@ -200,7 +203,7 @@ public function run() {
200203
{
201204
// Jika ada data diterima, baru proses
202205
if ($socketData) {
203-
206+
204207
// Terima data dari client, kemudian unseal dan decode json.
205208
$socketMessage = $this->unseal($socketData);
206209
$messageObj = json_decode($socketMessage);
@@ -211,7 +214,6 @@ public function run() {
211214
}
212215

213216
break 2;
214-
215217
}
216218
}
217219

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /