Skip to content

Commit

Permalink
Added Google Protocol Buffer proto3
Browse files Browse the repository at this point in the history
  • Loading branch information
gracig committed Feb 11, 2016
1 parent a3f3ae6 commit c4155a1
Show file tree
Hide file tree
Showing 3 changed files with 573 additions and 2 deletions.
14 changes: 12 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
package main

import "fmt"
import (
"fmt"

"github.com/gersongraciani/goping/protocol"
)

func main() {
fmt.Println("goping. Still in development phase.")
im := protocol.IcmpMessage{}
im.Identifier = 2
im.Sequence = 1
im.Type = protocol.IcmpMessage_ECHO_REPLY
im.Code = &protocol.IcmpMessage_SingleCode_{}
fmt.Printf("Not Yet Functional! .ICMP Message %#v\n", im)

}
Loading

0 comments on commit c4155a1

Please sign in to comment.