Add empty CompressedLen function

This commit is contained in:
Miek Gieben 2012-01-11 20:12:38 +01:00
parent 13f1f5b066
commit 0008471adf
1 changed files with 8 additions and 1 deletions

9
msg.go
View File

@ -1130,7 +1130,7 @@ func (dns *Msg) String() string {
return s
}
// Len return the message length (in uncompressed wirefmt).
// Len return the message length when in uncompressed wire format.
func (dns *Msg) Len() int {
// Message header is always 12 bytes
l := 12
@ -1157,6 +1157,13 @@ func (dns *Msg) Len() int {
return l
}
// CompressedLen returns the length of the message when in
// compressed wire format.
func (dns *Msg) CompressedLen() int {
// Uhh. TODO
return 0
}
// Id return a 16 bits random number to be used as a
// message id. The random provided should be good enough.
func Id() uint16 {