architecting peer

This commit is contained in:
Jae Kwon
2014-06-24 17:28:40 -07:00
parent 12c12b1a72
commit 002cfc8f75
14 changed files with 986 additions and 1043 deletions
+30
View File
@@ -0,0 +1,30 @@
package peer
/* Msg */
type Msg struct {
Bytes ByteSlice
Hash ByteSlice
}
/* InboundMsg */
type InboundMsg struct {
Peer *Peer
Channel *Channel
Time Time
Msg
}
/* NewFilterMsg */
type NewFilterMsg struct {
ChName String
Filter Filter
}
func (m *NewFilterMsg) WriteTo(w io.Writer) (int64, error) {
return 0, nil // TODO
}