mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	style
This commit is contained in:
		| @@ -80,7 +80,7 @@ class APIFrameHelper { | ||||
|   virtual APIError init() = 0; | ||||
|   virtual APIError loop(); | ||||
|   virtual APIError read_packet(ReadPacketBuffer *buffer) = 0; | ||||
|   bool can_write_without_blocking() { return state_ == State::DATA && tx_buf_count_ == 0; } | ||||
|   bool can_write_without_blocking() { return this->state_ == State::DATA && this->tx_buf_count_ == 0; } | ||||
|   std::string getpeername() { return socket_->getpeername(); } | ||||
|   int getpeername(struct sockaddr *addr, socklen_t *addrlen) { return socket_->getpeername(addr, addrlen); } | ||||
|   APIError close() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user