Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for handleIncoming (0.18 sec)

  1. internal/grid/manager.go

    		if remote == nil {
    			writeErr(fmt.Errorf("unknown incoming host: %v", cReq.Host))
    			return
    		}
    		if debugPrint {
    			fmt.Printf("handler: Got Connect Req %+v\n", cReq)
    		}
    		writeErr(remote.handleIncoming(ctx, conn, cReq))
    	}
    }
    
    // AuthFn should provide an authentication string for the given aud.
    type AuthFn func(aud string) string
    
    // Connection will return the connection for the specified host.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  2. internal/grid/muxclient.go

    		}
    		m.addResponse(Response{Err: ErrIncorrectSequence})
    		return false
    	}
    	m.RecvSeq++
    	return true
    }
    
    // response will send handleIncoming response to client.
    // may never block.
    // Should return whether the next call would block.
    func (m *muxClient) response(seq uint32, r Response) {
    	if debugReqs {
    		fmt.Println(m.MuxID, m.parent.String(), "RESP")
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  3. internal/grid/connection.go

    		return err
    	}
    	if m.Op != r.Op() {
    		return fmt.Errorf("unexpected response OP, want %v, got %v", r.Op(), m.Op)
    	}
    	_, err = r.UnmarshalMsg(m.Payload)
    	return err
    }
    
    func (c *Connection) handleIncoming(ctx context.Context, conn net.Conn, req connectReq) error {
    	c.connMu.Lock()
    	c.debugInConn = conn
    	c.connMu.Unlock()
    	if c.blockConnect != nil {
    		// Block until we are allowed to connect.
    		<-c.blockConnect
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
Back to top