This commit is contained in:
crusader 2017-10-31 20:50:02 +09:00
parent 9775e5ea4e
commit 900bf42638

View File

@ -2,6 +2,7 @@ package client
import ( import (
"io" "io"
"log"
"git.loafle.net/commons_go/rpc" "git.loafle.net/commons_go/rpc"
"git.loafle.net/commons_go/server/ipc" "git.loafle.net/commons_go/server/ipc"
@ -24,6 +25,7 @@ type ClientHandlers struct {
func (ch *ClientHandlers) OnStart() { func (ch *ClientHandlers) OnStart() {
// no op // no op
log.Printf("discovery.ClientHandlers.OnStart")
} }
func (ch *ClientHandlers) OnStop() { func (ch *ClientHandlers) OnStop() {
@ -35,6 +37,8 @@ func (ch *ClientHandlers) OnHandshake(remoteAddr string, rwc io.ReadWriteCloser)
} }
func (ch *ClientHandlers) Handle(rwc io.ReadWriteCloser, stopChan chan struct{}) { func (ch *ClientHandlers) Handle(rwc io.ReadWriteCloser, stopChan chan struct{}) {
log.Printf("discovery.ClientHandlers.Handle")
ch.RPCClient.Start(rwc) ch.RPCClient.Start(rwc)
select { select {