ing
This commit is contained in:
parent
48ecd0a6fa
commit
49eee11b7f
|
@ -6,6 +6,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"git.loafle.net/commons_go/logging"
|
"git.loafle.net/commons_go/logging"
|
||||||
|
cuc "git.loafle.net/commons_go/util/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Socket interface {
|
type Socket interface {
|
||||||
|
|
|
@ -7,6 +7,7 @@ import (
|
||||||
|
|
||||||
"git.loafle.net/commons_go/logging"
|
"git.loafle.net/commons_go/logging"
|
||||||
cs "git.loafle.net/commons_go/server"
|
cs "git.loafle.net/commons_go/server"
|
||||||
|
cuc "git.loafle.net/commons_go/util/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SocketBuilders struct {
|
type SocketBuilders struct {
|
||||||
|
@ -29,7 +30,7 @@ func (sb *SocketBuilders) SocketHandler() SocketHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (sb *SocketBuilders) GetNetwork() string {
|
func (sb *SocketBuilders) GetNetwork() string {
|
||||||
return sb.NewSocket
|
return sb.Network
|
||||||
}
|
}
|
||||||
|
|
||||||
func (sb *SocketBuilders) GetAddress() string {
|
func (sb *SocketBuilders) GetAddress() string {
|
||||||
|
@ -48,7 +49,7 @@ func (sb *SocketBuilders) GetTimeout() time.Duration {
|
||||||
return sb.Timeout
|
return sb.Timeout
|
||||||
}
|
}
|
||||||
|
|
||||||
func (sb *SocketBuilders) GetLocalAddress() Addr {
|
func (sb *SocketBuilders) GetLocalAddress() net.Addr {
|
||||||
return sb.LocalAddress
|
return sb.LocalAddress
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user