// NewConnectedEndpoint creates a new ConnectedEndpoint backed by a host fd
// imported at sentry startup,
//
// The caller is responsible for calling Init(). Additionaly, Release needs to
// be called twice because ConnectedEndpoint is both a transport.Receiver and
// transport.ConnectedEndpoint.
NewConnectedEndpoint creates a new ConnectedEndpoint backed by a host fd
imported at sentry startup.

The caller is responsible for calling Init(). Additionaly, Release needs to
be called twice because ConnectedEndpoint is both a transport.Receiver and
transport.ConnectedEndpoint.
// NewConnectedEndpoint creates a new ConnectedEndpoint backed by a host fd // imported at sentry startup // // The caller is responsible for calling Init () . Additionaly Release needs to // be called twice because ConnectedEndpoint is both a transport . Receiver and // transport . ConnectedEndpoint .
func NewConnectedEndpoint(hostFD int, addr string) (*ConnectedEndpoint, *syserr.Error) {
	e := ConnectedEndpoint{
		fd:   hostFD,
		addr: addr,
	}
	if err := e.init(); err != nil {
		return nil, err
	}
	e.IncRef()
	return &e, nil
}
func NewConnectedEndpoint ( hostFD int , addr string ) ( * ConnectedEndpoint , * syserr . Error ) { e := ConnectedEndpoint { fd : hostFD , addr : addr , } if err := e . init ( ) ; err != nil { return nil , err } e . IncRef ( ) return & e , nil }
NewConnectedEndpoint creates a new ConnectedEndpoint backed by a host fd
imported at sentry startup.
NewConnectedEndpoint creates a new ConnectedEndpoint backed by a host fd imported at sentry startup .
// ConnectedEndpointRefs start off with a single reference. We need two.