Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for SendRecv (0.12 sec)

  1. src/go/types/typestring.go

    			}
    		}
    		w.byte('}')
    
    	case *Map:
    		w.string("map[")
    		w.typ(t.key)
    		w.byte(']')
    		w.typ(t.elem)
    
    	case *Chan:
    		var s string
    		var parens bool
    		switch t.dir {
    		case SendRecv:
    			s = "chan "
    			// chan (<-chan T) requires parentheses
    			if c, _ := t.elem.(*Chan); c != nil && c.dir == RecvOnly {
    				parens = true
    			}
    		case SendOnly:
    			s = "chan<- "
    		case RecvOnly:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/typestring.go

    			}
    		}
    		w.byte('}')
    
    	case *Map:
    		w.string("map[")
    		w.typ(t.key)
    		w.byte(']')
    		w.typ(t.elem)
    
    	case *Chan:
    		var s string
    		var parens bool
    		switch t.dir {
    		case SendRecv:
    			s = "chan "
    			// chan (<-chan T) requires parentheses
    			if c, _ := t.elem.(*Chan); c != nil && c.dir == RecvOnly {
    				parens = true
    			}
    		case SendOnly:
    			s = "chan<- "
    		case RecvOnly:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    		if key == nil || value == nil {
    			return nil
    		}
    		return &ast.MapType{
    			Key:   key,
    			Value: value,
    		}
    	case *types.Chan:
    		dir := ast.ChanDir(t.Dir())
    		if t.Dir() == types.SendRecv {
    			dir = ast.SEND | ast.RECV
    		}
    		value := TypeExpr(f, pkg, t.Elem())
    		if value == nil {
    			return nil
    		}
    		return &ast.ChanType{
    			Dir:   dir,
    			Value: value,
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. src/go/types/typexpr.go

    			}
    		}).describef(e.Key, "check map key %s", typ.key)
    
    		return typ
    
    	case *ast.ChanType:
    		typ := new(Chan)
    		setDefType(def, typ)
    
    		dir := SendRecv
    		switch e.Dir {
    		case ast.SEND | ast.RECV:
    			// nothing to do
    		case ast.SEND:
    			dir = SendOnly
    		case ast.RECV:
    			dir = RecvOnly
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/typexpr.go

    			}
    		}).describef(e.Key, "check map key %s", typ.key)
    
    		return typ
    
    	case *syntax.ChanType:
    		typ := new(Chan)
    		setDefType(def, typ)
    
    		dir := SendRecv
    		switch e.Dir {
    		case 0:
    			// nothing to do
    		case syntax.SendOnly:
    			dir = SendOnly
    		case syntax.RecvOnly:
    			dir = RecvOnly
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbFile.java

                        getAddress().getHostAddress() +
                        "[\\PIPE\\netdfs]", auth);
            try {
                rpc = new MsrpcDfsRootEnum(getServer());
                handle.sendrecv(rpc);
                if (rpc.retval != 0)
                    throw new SmbException(rpc.retval, true);
                return rpc.getEntries();
            } finally {
                try {
                    handle.close();
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 107.9K bytes
    - Viewed (0)
  7. src/go/types/unify.go

    					case yn:
    						// x is not a defined type and y is a defined type: select y.
    						u.set(px, y)
    					default:
    						// Neither x nor y are defined types.
    						if yc, _ := under(y).(*Chan); yc != nil && yc.dir != SendRecv {
    							// y is a directed channel type: select y.
    							u.set(px, y)
    						}
    					}
    				}
    				return true
    			}
    			return false
    		}
    		// otherwise, infer type from y
    		u.set(px, y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/unify.go

    					case yn:
    						// x is not a defined type and y is a defined type: select y.
    						u.set(px, y)
    					default:
    						// Neither x nor y are defined types.
    						if yc, _ := under(y).(*Chan); yc != nil && yc.dir != SendRecv {
    							// y is a directed channel type: select y.
    							u.set(px, y)
    						}
    					}
    				}
    				return true
    			}
    			return false
    		}
    		// otherwise, infer type from y
    		u.set(px, y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  9. src/go/internal/gccgoimporter/parser.go

    // ChanType = "chan" ["<-" | "-<"] Type .
    func (p *parser) parseChanType(pkg *types.Package, nlist []any) types.Type {
    	p.expectKeyword("chan")
    
    	t := new(types.Chan)
    	p.update(t, nlist)
    
    	dir := types.SendRecv
    	switch p.tok {
    	case '-':
    		p.next()
    		p.expect('<')
    		dir = types.SendOnly
    
    	case '<':
    		// don't consume '<' if it belongs to Type
    		if p.scanner.Peek() == '-' {
    			p.next()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbFile.java

                }
                try ( DcerpcHandle handle = DcerpcHandle.getHandle("ncacn_np:" + server + "[\\PIPE\\srvsvc]", getContext()) ) {
                    handle.sendrecv(rpc);
                    if ( rpc.retval != 0 ) {
                        throw new SmbException(rpc.retval, true);
                    }
                    aces = rpc.getSecurity();
                    if ( aces != null ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (1)
Back to top