Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPacketConn (0.24 sec)

  1. src/net/packetconn_test.go

    func packetConnTestData(t *testing.T, network string) ([]byte, func()) {
    	if !testableNetwork(network) {
    		return nil, func() { t.Logf("skipping %s test", network) }
    	}
    	return []byte("PACKETCONN TEST"), nil
    }
    
    func TestPacketConn(t *testing.T) {
    	var packetConnTests = []struct {
    		net   string
    		addr1 string
    		addr2 string
    	}{
    		{"udp", "127.0.0.1:0", "127.0.0.1:0"},
    		{"unixgram", testUnixAddr(t), testUnixAddr(t)},
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top