Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TestRawConnReadWrite (0.43 sec)

  1. src/os/rawconn_test.go

    // license that can be found in the LICENSE file.
    
    // Test use of raw connections.
    //
    //go:build !plan9 && !js && !wasip1
    
    package os_test
    
    import (
    	"os"
    	"syscall"
    	"testing"
    )
    
    func TestRawConnReadWrite(t *testing.T) {
    	t.Parallel()
    
    	r, w, err := os.Pipe()
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer r.Close()
    	defer w.Close()
    
    	rconn, err := r.SyscallConn()
    	if err != nil {
    		t.Fatal(err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. src/net/rawconn_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package net
    
    import (
    	"bytes"
    	"runtime"
    	"testing"
    	"time"
    )
    
    func TestRawConnReadWrite(t *testing.T) {
    	switch runtime.GOOS {
    	case "plan9", "js", "wasip1":
    		t.Skipf("not supported on %s", runtime.GOOS)
    	}
    
    	t.Run("TCP", func(t *testing.T) {
    		handler := func(ls *localServer, ln Listener) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. src/os/os_unix_test.go

    	"io"
    	. "os"
    	"path/filepath"
    	"runtime"
    	"strings"
    	"syscall"
    	"testing"
    	"time"
    )
    
    func init() {
    	isReadonlyError = func(err error) bool { return err == syscall.EROFS }
    }
    
    // For TestRawConnReadWrite.
    type syscallDescriptor = int
    
    func checkUidGid(t *testing.T, path string, uid, gid int) {
    	dir, err := Lstat(path)
    	if err != nil {
    		t.Fatalf("Lstat %q (looking for uid/gid %d/%d): %s", path, uid, gid, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:32:43 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  4. src/os/os_windows_test.go

    	"runtime"
    	"slices"
    	"strings"
    	"syscall"
    	"testing"
    	"unicode/utf16"
    	"unsafe"
    )
    
    var winsymlink = godebug.New("winsymlink")
    var winreadlinkvolume = godebug.New("winreadlinkvolume")
    
    // For TestRawConnReadWrite.
    type syscallDescriptor = syscall.Handle
    
    // chdir changes the current working directory to the named directory,
    // and then restore the original working directory at the end of the test.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
Back to top