package tcpreuse

import (
	

	
	
	manet 
)

type connWithScope struct {
	sampledconn.ManetTCPConnInterface
	ConnScope network.ConnManagementScope
}

func ( *connWithScope) () error {
	defer .ConnScope.Done()
	return .ManetTCPConnInterface.Close()
}

func manetConnWithScope( manet.Conn,  network.ConnManagementScope) (*connWithScope, error) {
	if ,  := .(sampledconn.ManetTCPConnInterface);  {
		return &connWithScope{, }, nil
	}

	return nil, fmt.Errorf("manet.Conn is not a TCP Conn")
}