mirror of
				https://github.com/wangyu-/UDPspeeder.git
				synced 2025-11-04 03:45:37 +08:00 
			
		
		
		
	added debug info
This commit is contained in:
		
							
								
								
									
										2
									
								
								main.cpp
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.cpp
									
									
									
									
									
								
							@@ -593,7 +593,7 @@ int create_new_udp(int &new_udp_fd)
 | 
			
		||||
	mylog(log_debug, "created new udp_fd %d\n", new_udp_fd);
 | 
			
		||||
	int ret = connect(new_udp_fd, (struct sockaddr *) &remote_addr_in, slen);
 | 
			
		||||
	if (ret != 0) {
 | 
			
		||||
		mylog(log_warn, "udp fd connect fail\n");
 | 
			
		||||
		mylog(log_warn, "udp fd connect fail %d %s\n",ret,strerror(errno));
 | 
			
		||||
		close(new_udp_fd);
 | 
			
		||||
		return -1;
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user