Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created socket server for better displaying incoming bytes #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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