add comment on function I added
This commit is contained in:
parent
be41ca7c63
commit
3fb2673343
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ func NewTCPClientHandler(address string) *TCPClientHandler {
|
||||||
|
|
||||||
// TCPHandlerFromConnection creates a TCP handler from an existing connection.
|
// TCPHandlerFromConnection creates a TCP handler from an existing connection.
|
||||||
func TCPHandlerFromConnection(conn net.Conn) *TCPClientHandler {
|
func TCPHandlerFromConnection(conn net.Conn) *TCPClientHandler {
|
||||||
|
// Josh was here!
|
||||||
h := &TCPClientHandler{}
|
h := &TCPClientHandler{}
|
||||||
h.conn = conn
|
h.conn = conn
|
||||||
h.Address = conn.RemoteAddr().String()
|
h.Address = conn.RemoteAddr().String()
|
||||||
|
|
Loading…
Reference in a new issue