Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newMuxClient (0.09 sec)

  1. internal/grid/connection.go

    				fmt.Println(client.MuxID, c.String(), "Connection.newMuxClient: RELOADED MUX. loaded:", loaded, "found:", found)
    			}
    			return client, nil
    		}
    		client.MuxID = atomic.AddUint64(&c.NextID, 1)
    	}
    }
    
    // newMuxClient returns a mux client for manual use.
    func (c *Subroute) newMuxClient(ctx context.Context) (*muxClient, error) {
    	cl, err := c.Connection.newMuxClient(ctx)
    	if err != nil {
    		return nil, err
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  2. internal/grid/muxclient.go

    	respErr            atomic.Pointer[error]
    	clientPingInterval time.Duration
    }
    
    // Response is a response from the server.
    type Response struct {
    	Msg []byte
    	Err error
    }
    
    func newMuxClient(ctx context.Context, muxID uint64, parent *Connection) *muxClient {
    	ctx, cancelFn := context.WithCancelCause(ctx)
    	return &muxClient{
    		MuxID:              muxID,
    		ctx:                ctx,
    		cancelFn:           cancelFn,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
Back to top