Integration incoming and outgoing clients into one class - fix saving
This commit is contained in:
		
							parent
							
								
									9e14e361e3
								
							
						
					
					
						commit
						b6468bd148
					
				| @ -158,8 +158,8 @@ client::client(const string address, const ushort port, const uint timeout, SSL_ | |||||||
| */ | */ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| client::client(const uint timeout, SSL_CTX* securefds) { | client::client(const server *_srv, const uint timeout, SSL_CTX* securefds) { | ||||||
|     // srv = _srv;
 |     srv = _srv; | ||||||
|     socklen_t len = sizeof(struct sockaddr_in); |     socklen_t len = sizeof(struct sockaddr_in); | ||||||
| 
 | 
 | ||||||
|     if ((conn = accept(srv->sock, (struct sockaddr *)&(srv->addr), (socklen_t*)&len)) < 0) { |     if ((conn = accept(srv->sock, (struct sockaddr *)&(srv->addr), (socklen_t*)&len)) < 0) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user