Skip to content

Created socket server for better displaying incoming bytes#10

Open
WeeSee wants to merge 2 commits intolukaszkujawa:masterfrom
WeeSee:master
Open

Created socket server for better displaying incoming bytes#10
WeeSee wants to merge 2 commits intolukaszkujawa:masterfrom
WeeSee:master

Conversation

@WeeSee
Copy link

@WeeSee WeeSee commented Aug 28, 2016

output is similar to hexdump -C
very helpful for debugging client data sent to server.

die('could not fork');
} else if ($pid) {
// parent process
pcntl_wait($status,WNOHANG);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool that you added pcntl_wait, will test it.

Copy link

@adrianharabula adrianharabula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty cool functionality, helped me find a bug in our socket client by outputing the exact data received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants