This commit is contained in:
crusader 2017-11-30 18:36:59 +09:00
parent 48ecd0a6fa
commit 49eee11b7f
2 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import (
"sync"
"git.loafle.net/commons_go/logging"
cuc "git.loafle.net/commons_go/util/context"
)
type Socket interface {

View File

@ -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
}