// Shutdown implements tcpip.Endpoint.Shutdown. It's a noop for raw sockets.
Shutdown implements tcpip.Endpoint.Shutdown. It's a noop for raw sockets.
// Shutdown implements tcpip . Endpoint . Shutdown . It ' s a noop for raw sockets .
func (e *endpoint) Shutdown(tcpip.ShutdownFlags) tcpip.Error {
	e.mu.Lock()
	defer e.mu.Unlock()
	if !e.connected {
		return &tcpip.ErrNotConnected{}
	}
	return nil
}
func ( e * endpoint ) Shutdown ( tcpip . ShutdownFlags ) tcpip . Error { e . mu . Lock ( ) defer e . mu . Unlock ( ) if ! e . connected { return & tcpip . ErrNotConnected { } } return nil }
Shutdown implements tcpip.Endpoint.Shutdown.
Shutdown implements tcpip . Endpoint . Shutdown .