connnection 初步封装, 未完成
This commit is contained in:
		
							parent
							
								
									a229d2ba31
								
							
						
					
					
						commit
						c435b7c69a
					
				
							
								
								
									
										20
									
								
								includes/net/tcp/tcp_connection.hpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								includes/net/tcp/tcp_connection.hpp
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,20 @@ | |||||||
|  | #pragma once | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | #include "fd_event.hpp" | ||||||
|  | namespace tinyrpc { | ||||||
|  | 
 | ||||||
|  |     class TcpConnection { | ||||||
|  | 
 | ||||||
|  |     public: | ||||||
|  |          | ||||||
|  |         TcpConnection(int fd) : m_fdEvent(fd){}; | ||||||
|  | 
 | ||||||
|  |         ~TcpConnection(); | ||||||
|  |     private: | ||||||
|  |         FdEvent m_fdEvent; | ||||||
|  |         // TODO .... 完善 TcpConnection 类
 | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  | } | ||||||
							
								
								
									
										0
									
								
								src/net/tcp/tcp_connection.cc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								src/net/tcp/tcp_connection.cc
									
									
									
									
									
										Normal file
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user