From 49eee11b7fd3aaba10548ec57577caaec0ff80ad Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 30 Nov 2017 18:36:59 +0900 Subject: [PATCH] ing --- client/socket.go | 1 + client/socket_builders.go | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/socket.go b/client/socket.go index eb8d14b..370ea4a 100644 --- a/client/socket.go +++ b/client/socket.go @@ -6,6 +6,7 @@ import ( "sync" "git.loafle.net/commons_go/logging" + cuc "git.loafle.net/commons_go/util/context" ) type Socket interface { diff --git a/client/socket_builders.go b/client/socket_builders.go index e8de870..696e49d 100644 --- a/client/socket_builders.go +++ b/client/socket_builders.go @@ -7,6 +7,7 @@ import ( "git.loafle.net/commons_go/logging" cs "git.loafle.net/commons_go/server" + cuc "git.loafle.net/commons_go/util/context" ) type SocketBuilders struct { @@ -29,7 +30,7 @@ func (sb *SocketBuilders) SocketHandler() SocketHandler { } func (sb *SocketBuilders) GetNetwork() string { - return sb.NewSocket + return sb.Network } func (sb *SocketBuilders) GetAddress() string { @@ -48,7 +49,7 @@ func (sb *SocketBuilders) GetTimeout() time.Duration { return sb.Timeout } -func (sb *SocketBuilders) GetLocalAddress() Addr { +func (sb *SocketBuilders) GetLocalAddress() net.Addr { return sb.LocalAddress }