overflow_discovery/client/socket_builders.go

22 lines
368 B
Go
Raw Normal View History

2017-11-30 10:16:55 +00:00
package client
import (
csc "git.loafle.net/commons_go/server/client"
)
func NewSocketBuilder(address string) csc.SocketBuilder {
2017-12-05 02:52:14 +00:00
sb := &SocketBuilders{}
sb.Network = "tcp"
sb.Address = "localhost:50006"
return sb
2017-11-30 10:16:55 +00:00
}
type SocketBuilders struct {
csc.SocketBuilders
}
func (sb *SocketBuilders) SocketHandler() csc.SocketHandler {
return NewSocketHandler()
}