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

Send host name in MC|PingHost FE01 ping? #5

Open
deathcap opened this issue Jan 28, 2016 · 0 comments
Open

Send host name in MC|PingHost FE01 ping? #5

deathcap opened this issue Jan 28, 2016 · 0 comments

Comments

@deathcap
Copy link
Owner

The FE01 ping MC|PingHost has a field to set the host and and port of the server you're trying to ping:

socket.write(new Buffer('fe01'+
    'fa'+ // plugin message
    '000b'+'004D0043007C00500069006E00670048006F00730074'+ // MC|PingHost,
    '0007'+ // 7+len(hostname)
    '4a'+   // protocol version (74, last)
    '0000'+''+ // hostname TODO
    '00000000' // port TODO
    ,'hex'));

I set them to an empty string and zero, and it seems to work. Presumably intended for multiple servers on the same host, can each respond to pings individually. Maybe should send it, although would complicate encoding (protodef?)

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

No branches or pull requests

1 participant