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 }