summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go18
1 files changed, 4 insertions, 14 deletions
diff --git a/main.go b/main.go
index 03a4f47..161b5e4 100644
--- a/main.go
+++ b/main.go
@@ -13,27 +13,17 @@ const (
notice = "ownme.ipredator.se:80"
web = "ownme.ipredator.se:443"
server = "ownme.ipredator.se:10000"
- client = "ownme.ipredator.se:10001"
+ client = "ownme.ipredator.se:10001" // will callback to port 40001
clientRev = "ownme.ipredator.se:10002"
)
-type Direction int
+type Direction string
const (
- ServerClient Direction = iota
- ClientServer
+ ServerClient Direction = "Server → Client"
+ ClientServer Direction = "Client → Server"
)
-func (d Direction) String() string {
- switch d {
- case ServerClient:
- return "Server → Client"
- case ClientServer:
- return "Client → Server"
- }
- return "unknown"
-}
-
type Data struct {
Round int
Dir Direction