Added
-
New interface
netutil.ListenConfigmodeled afternet.ListenConfigthat allows controlling socket options of the created listeners and packet connections. -
Types
netutil.ControlFuncandnetutil.ControlConfig. -
Functions
netutil.NewListenConfigandnetutil.NewListenConfigWithOOB.NOTE:
netutil.NewListenConfigWithOOBfunction is currently supported only on Linux and returns an error on the other platforms. -
Type
netutil.PacketSessionand functionnetutil.NewSimplePacketSession. -
Type
netutil.SessionPacketConn, an extension ofnet.PacketConnthat reads and writes packets along with the session they belong to, and the helper functionsnetutil.ReadFromSessionandnetutil.WriteToSession.