2017-12-05 05:20:42 +00:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
|
|
|
csc "git.loafle.net/commons_go/server/client"
|
|
|
|
)
|
|
|
|
|
2017-12-05 07:29:42 +00:00
|
|
|
func NewSocketBuilder(address string, socketHandler csc.SocketHandler) csc.SocketBuilder {
|
2017-12-15 07:34:12 +00:00
|
|
|
sb := &SocketBuilders{}
|
|
|
|
sb.Network = "tcp"
|
|
|
|
sb.Address = address
|
2017-12-05 07:29:42 +00:00
|
|
|
sb.SocketHandler = socketHandler
|
|
|
|
return sb
|
2017-12-05 05:20:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type SocketBuilders struct {
|
|
|
|
csc.SocketBuilders
|
|
|
|
}
|