Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newMuxStream (0.07 sec)

  1. internal/grid/muxserver.go

    		ctx:       ctx,
    		cancel:    cancel,
    		parent:    c,
    		LastPing:  time.Now().Unix(),
    		BaseFlags: c.baseFlags,
    	}
    	go func() {
    		// TODO: Handle
    	}()
    
    	return &m
    }
    
    func newMuxStream(ctx context.Context, msg message, c *Connection, handler StreamHandler) *muxServer {
    	var cancel context.CancelFunc
    	ctx = setCaller(ctx, c.remote)
    	if len(handler.Subroute) > 0 {
    		ctx = setSubroute(ctx, handler.Subroute)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. internal/grid/connection.go

    			gridLogIf(ctx, c.queueMsg(m, muxConnectError{Error: msg}))
    			return
    		}
    
    		// Start a new server handler if none exists.
    		_, _ = c.inStream.LoadOrCompute(m.MuxID, func() *muxServer {
    			return newMuxStream(ctx, m, c, *handler)
    		})
    	}
    }
    
    // handleConnectMuxError when mux connect was rejected.
    func (c *Connection) handleConnectMuxError(ctx context.Context, m message) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
Back to top