Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 24 of 24 for unixgram (0.1 sec)

  1. src/net/net_fake.go

    			return err
    		}
    		if sa.Port <= 0 || sa.Port >= 1<<16 {
    			return &AddrError{
    				Err:  "port out of range",
    				Addr: sa.String(),
    			}
    		}
    		return nil
    
    	case "unix", "unixgram", "unixpacket":
    		sa, ok := sa.(*UnixAddr)
    		if !ok {
    			return &AddrError{
    				Err:  "non-Unix address for " + net + " network",
    				Addr: sa.String(),
    			}
    		}
    		if sa.Name != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 19:24:21 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  2. src/net/dial_test.go

    			}
    			c.Close()
    		}
    	})
    	t.Run("PacketDial", func(t *testing.T) {
    		for _, network := range []string{"udp", "udp4", "udp6", "unixgram"} {
    			if !testableNetwork(network) {
    				continue
    			}
    			c1 := newLocalPacketListener(t, network)
    			if network == "unixgram" {
    				defer os.Remove(c1.LocalAddr().String())
    			}
    			defer c1.Close()
    			d := Dialer{Control: controlOnConnSetup}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  3. src/net/listen_test.go

    			}
    			ln := newLocalListener(t, network, &ListenConfig{Control: controlOnConnSetup})
    			ln.Close()
    		}
    	})
    	t.Run("PacketListen", func(t *testing.T) {
    		for _, network := range []string{"udp", "udp4", "udp6", "unixgram"} {
    			if !testableNetwork(network) {
    				continue
    			}
    			c := newLocalPacketListener(t, network, &ListenConfig{Control: controlOnConnSetup})
    			c.Close()
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  4. src/internal/poll/fd_windows.go

    		fd.kind = kindFile
    	case "console":
    		fd.kind = kindConsole
    	case "pipe":
    		fd.kind = kindPipe
    	case "tcp", "tcp4", "tcp6",
    		"udp", "udp4", "udp6",
    		"ip", "ip4", "ip6",
    		"unix", "unixgram", "unixpacket":
    		fd.kind = kindNet
    	default:
    		return "", errors.New("internal error: unknown network type " + net)
    	}
    	fd.isFile = fd.kind != kindNet
    
    	var err error
    	if pollable {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 16:50:42 UTC 2024
    - 34.1K bytes
    - Viewed (0)
Back to top