ing
This commit is contained in:
parent
a1cd140c1a
commit
4f607dd971
|
@ -80,13 +80,13 @@ func (s *netSocket) Context() SocketContext {
|
||||||
func (s *netSocket) Read(b []byte) (n int, err error) {
|
func (s *netSocket) Read(b []byte) (n int, err error) {
|
||||||
n, err = s.Conn.Read(b)
|
n, err = s.Conn.Read(b)
|
||||||
|
|
||||||
logging.Logger().Debugf("Client Socket: read message[%s]", string(b))
|
// logging.Logger().Debugf("Client Socket: read message[%s]", string(b))
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *netSocket) Write(b []byte) (n int, err error) {
|
func (s *netSocket) Write(b []byte) (n int, err error) {
|
||||||
logging.Logger().Debugf("Client Socket: write message[%s]", string(b))
|
// logging.Logger().Debugf("Client Socket: write message[%s]", string(b))
|
||||||
return s.Conn.Write(b)
|
return s.Conn.Write(b)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,6 @@ import (
|
||||||
"net"
|
"net"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.loafle.net/commons_go/logging"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Socket interface {
|
type Socket interface {
|
||||||
|
@ -52,13 +50,13 @@ func (s *netSocket) ID() string {
|
||||||
func (s *netSocket) Read(b []byte) (n int, err error) {
|
func (s *netSocket) Read(b []byte) (n int, err error) {
|
||||||
n, err = s.Conn.Read(b)
|
n, err = s.Conn.Read(b)
|
||||||
|
|
||||||
logging.Logger().Debugf("Server Socket: read message[%s]", string(b))
|
// logging.Logger().Debugf("Server Socket: read message[%s]", string(b))
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *netSocket) Write(b []byte) (n int, err error) {
|
func (s *netSocket) Write(b []byte) (n int, err error) {
|
||||||
logging.Logger().Debugf("Server Socket: write message[%s]", string(b))
|
// logging.Logger().Debugf("Server Socket: write message[%s]", string(b))
|
||||||
return s.Conn.Write(b)
|
return s.Conn.Write(b)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user