This commit is contained in:
crusader
2017-12-04 20:59:31 +09:00
parent 9527a68c71
commit 32230e44c8
5 changed files with 4 additions and 57 deletions

View File

@@ -1,28 +0,0 @@
package server
import "net"
func newConn(nconn net.Conn, contentType string) Conn {
c := &conn{
contentType: contentType,
}
c.Conn = nconn
return c
}
type Conn interface {
net.Conn
GetContentType() string
}
type conn struct {
net.Conn
contentType string
}
func (c *conn) GetContentType() string {
return c.contentType
}