mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	SquashSRS4: Refine DTLS init, use specified API by role
This commit is contained in:
		
							parent
							
								
									de65a331f1
								
							
						
					
					
						commit
						dc93836489
					
				
					 5 changed files with 37 additions and 17 deletions
				
			
		| 
						 | 
				
			
			@ -47,8 +47,11 @@ public:
 | 
			
		|||
    virtual ~ISrsDisposingHandler();
 | 
			
		||||
public:
 | 
			
		||||
    // When before disposing resource, trigger when manager.remove(c), sync API.
 | 
			
		||||
    // @remark Recommend to unref c, after this, no other objects refs to c.
 | 
			
		||||
    virtual void on_before_dispose(ISrsResource* c) = 0;
 | 
			
		||||
    // When disposing resource, async API, c is freed after it.
 | 
			
		||||
    // @remark Recommend to stop any thread/timer of c, after this, fields of c is able
 | 
			
		||||
    // to be deleted in any order.
 | 
			
		||||
    virtual void on_disposing(ISrsResource* c) = 0;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue