mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:42:43 +00:00 
			
		
		
		
	LibCore: update m_bound on socket bind
This commit is contained in:
		
							parent
							
								
									00f658b984
								
							
						
					
					
						commit
						eb77568d8c
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -68,7 +68,8 @@ bool UDPServer::bind(const IPv4Address& address, u16 port) | |||
| 
 | ||||
|     rc = ::bind(m_fd, (const sockaddr*)&in, sizeof(in)); | ||||
|     ASSERT(rc == 0); | ||||
| 
 | ||||
|     m_bound = true; | ||||
|      | ||||
|     m_notifier = Notifier::construct(m_fd, Notifier::Event::Read, this); | ||||
|     m_notifier->on_ready_to_read = [this] { | ||||
|         if (on_ready_to_receive) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Muhammad Zahalqa
						Muhammad Zahalqa