Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTCP4ListenZero (0.13 sec)

  1. src/net/ipsock_plan9_test.go

    // Copyright 2020 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package net
    
    import "testing"
    
    func TestTCP4ListenZero(t *testing.T) {
    	l, err := Listen("tcp4", "0.0.0.0:0")
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer l.Close()
    	if a := l.Addr(); isNotIPv4(a) {
    		t.Errorf("address does not contain IPv4: %v", a)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 07 23:03:29 UTC 2020
    - 645 bytes
    - Viewed (0)
Back to top