Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestRawConnReadWrite (0.56 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)
Back to top