Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for socketio (0.33 sec)

  1. src/cmd/cgo/godefs.go

    	fmt.Fprintf(&buf, "// %s %s\n", filepath.Base(args[0]), strings.Join(args[1:], " "))
    	fmt.Fprintf(&buf, "\n")
    
    	override := make(map[string]string)
    
    	// Allow source file to specify override mappings.
    	// For example, the socket data structures refer
    	// to in_addr and in_addr6 structs but we want to be
    	// able to treat them as byte arrays, so the godefs
    	// inputs in package syscall say
    	//
    	//	// +godefs map struct_in_addr [4]byte
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  2. src/bufio/bufio_test.go

    		}
    	}
    }
    
    // TestWriterReadFromCounts tests that using io.Copy to copy into a
    // bufio.Writer does not prematurely flush the buffer. For example, when
    // buffering writes to a network socket, excessive network writes should be
    // avoided.
    func TestWriterReadFromCounts(t *testing.T) {
    	var w0 writeCountingDiscard
    	b0 := NewWriterSize(&w0, 1234)
    	b0.WriteString(strings.Repeat("x", 1000))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  3. src/archive/tar/common.go

    			h.Typeflag = TypeChar
    		} else {
    			h.Typeflag = TypeBlock
    		}
    	case fm&fs.ModeNamedPipe != 0:
    		h.Typeflag = TypeFifo
    	case fm&fs.ModeSocket != 0:
    		return nil, fmt.Errorf("archive/tar: sockets not supported")
    	default:
    		return nil, fmt.Errorf("archive/tar: unknown file mode %v", fm)
    	}
    	if fm&fs.ModeSetuid != 0 {
    		h.Mode |= c_ISUID
    	}
    	if fm&fs.ModeSetgid != 0 {
    		h.Mode |= c_ISGID
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
Back to top