Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 141 for connc (0.32 sec)

  1. src/net/unixsock.go

    	default:
    		return nil, UnknownNetworkError(network)
    	}
    }
    
    // UnixConn is an implementation of the [Conn] interface for connections
    // to Unix domain sockets.
    type UnixConn struct {
    	conn
    }
    
    // SyscallConn returns a raw network connection.
    // This implements the [syscall.Conn] interface.
    func (c *UnixConn) SyscallConn() (syscall.RawConn, error) {
    	if !c.ok() {
    		return nil, syscall.EINVAL
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. src/os/readfrom_linux_test.go

    		t.Fatalf("wrong destination file descriptor: got %d, want %d", hook.dstfd, dst.Fd())
    	}
    	sc, ok := src.(syscall.Conn)
    	if !ok {
    		t.Fatalf("server Conn is not a syscall.Conn")
    	}
    	rc, err := sc.SyscallConn()
    	if err != nil {
    		t.Fatalf("server Conn SyscallConn error: %v", err)
    	}
    	if err = rc.Control(func(fd uintptr) {
    		if hook.called && hook.srcfd != int(fd) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  3. src/net/http/httputil/persist.go

    // We should have deleted it before Go 1.
    //
    // Deprecated: Use the Server in package [net/http] instead.
    type ServerConn struct {
    	mu              sync.Mutex // read-write protects the following fields
    	c               net.Conn
    	r               *bufio.Reader
    	re, we          error // read/write errors
    	lastbody        io.ReadCloser
    	nread, nwritten int
    	pipereq         map[*http.Request]uint
    
    	pipe textproto.Pipeline
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. src/net/rpc/server.go

    // connection. To use an alternate codec, use [ServeCodec].
    // See [NewClient]'s comment for information about concurrent access.
    func (server *Server) ServeConn(conn io.ReadWriteCloser) {
    	buf := bufio.NewWriter(conn)
    	srv := &gobServerCodec{
    		rwc:    conn,
    		dec:    gob.NewDecoder(conn),
    		enc:    gob.NewEncoder(buf),
    		encBuf: buf,
    	}
    	server.ServeCodec(srv)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  5. internal/event/target/nats.go

    }
    
    // NATSTarget - NATS target.
    type NATSTarget struct {
    	initOnce once.Init
    
    	id         event.TargetID
    	args       NATSArgs
    	natsConn   *nats.Conn
    	stanConn   stan.Conn
    	jstream    nats.JetStream
    	store      store.Store[event.Event]
    	loggerOnce logger.LogOnce
    	quitCh     chan struct{}
    }
    
    // ID - returns target ID.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  6. security/pkg/nodeagent/sds/sdsservice_test.go

    		var d net.Dialer
    		return d.DialContext(ctx, "unix", socket)
    	}))
    
    	conn, err := grpc.Dial(socket, opts...)
    	if err != nil {
    		return nil, err
    	}
    
    	return conn, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 17 20:12:58 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. internal/grid/manager.go

    					Payload: b,
    				}
    				if b, err := msg.MarshalMsg(nil); err == nil {
    					wsutil.WriteMessage(conn, ws.StateServerSide, ws.OpBinary, b)
    				}
    			}
    		}
    		defer conn.Close()
    		if debugPrint {
    			fmt.Printf("grid: Upgraded request: %v\n", req.URL)
    		}
    
    		msg, _, err := wsutil.ReadClientData(conn)
    		if err != nil {
    			writeErr(fmt.Errorf("reading connect: %w", err))
    			w.WriteHeader(http.StatusForbidden)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:40:33 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                            return conn;
                        }
                    }
                }
    
                conn = new SmbTransport( address, port, localAddr, localPort );
                CONNECTIONS.add( 0, conn );
            }
    
            return conn;
        }
    
        class ServerData {
            byte flags;
            int flags2;
            int maxMpxCount;
            int maxBufferSize;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 31.2K bytes
    - Viewed (0)
  9. src/expvar/expvar_test.go

    	// Such pattern is used in net/http and net/rpc.
    
    	b.StopTimer()
    
    	P := runtime.GOMAXPROCS(0)
    	N := b.N / P
    	W := 1000
    
    	// Setup P client/server connections.
    	clients := make([]net.Conn, P)
    	servers := make([]net.Conn, P)
    	ln, err := net.Listen("tcp", "127.0.0.1:0")
    	if err != nil {
    		b.Fatalf("Listen failed: %v", err)
    	}
    	defer ln.Close()
    	done := make(chan bool, 1)
    	go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:46:19 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper_test.go

    			resp, err := client.Do(req)
    			var conn httpstream.Connection
    			if err == nil {
    				conn, err = spdyTransport.NewConnection(resp)
    			}
    			haveErr := err != nil
    			if e, a := testCase.shouldError, haveErr; e != a {
    				t.Fatalf("shouldError=%t, got %t: %v", e, a, err)
    			}
    			if testCase.shouldError {
    				return
    			}
    			defer conn.Close()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 32.7K bytes
    - Viewed (0)
Back to top