blob: 0c32039f65eca600810e2c3a2f4a524a9e1ec7a4 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2014-2015 IBM Corp.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Allan Stockdill-Mander - initial API and implementation
*******************************************************************************/
package packets
import (
"io"
)
type PingrespMessage struct {
Header
}
func (p *PingrespMessage) MessageType() byte {
return PINGRESP
}
func (p *PingrespMessage) Write(w io.Writer) error {
packet := p.Header.pack()
packet.WriteByte(PINGRESP)
_, err := packet.WriteTo(w)
return err
}
func (p *PingrespMessage) Unpack(b io.Reader) {
}