mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Start linkloop
This commit is contained in:
		
							parent
							
								
									4363283a6f
								
							
						
					
					
						commit
						1170ea9e98
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -47,6 +47,10 @@ func (l *awdl) create(boxPubKey *crypto.BoxPubKey, sigPubKey *crypto.SigPubKey,
 | 
			
		|||
			intf.send <- msg
 | 
			
		||||
			l.core.switchTable.idleIn <- intf.peer.port
 | 
			
		||||
		}
 | 
			
		||||
		intf.peer.close = func() {
 | 
			
		||||
			close(intf.send)
 | 
			
		||||
		}
 | 
			
		||||
		go intf.peer.linkLoop()
 | 
			
		||||
		go intf.handler()
 | 
			
		||||
		l.core.switchTable.idleIn <- intf.peer.port
 | 
			
		||||
		return &intf
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue