mirror of
				https://git.haproxy.org/git/haproxy.git/
				synced 2025-10-31 16:41:01 +01:00 
			
		
		
		
	Basic introduction of a UDP layer in HAProxy. It can be used as a client only and manages UDP exchanges with servers. It can't be used to load-balance UDP protocols, but only used by internal features such as DNS resolution.
		
			
				
	
	
		
			28 lines
		
	
	
		
			962 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			962 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * include/proto/proto_udp.h
 | |
|  * This file provides functions related to UDP protocol.
 | |
|  *
 | |
|  * Copyright (C) 2014 Baptiste Assmann <bedis9@gmail.com>
 | |
|  *
 | |
|  * This library is free software; you can redistribute it and/or
 | |
|  * modify it under the terms of the GNU Lesser General Public
 | |
|  * License as published by the Free Software Foundation, version 2.1
 | |
|  * exclusively.
 | |
|  *
 | |
|  * This library is distributed in the hope that it will be useful,
 | |
|  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 | |
|  * Lesser General Public License for more details.
 | |
|  *
 | |
|  * You should have received a copy of the GNU Lesser General Public
 | |
|  * License along with this library; if not, write to the Free Software
 | |
|  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 | |
|  */
 | |
| 
 | |
| #ifndef _PROTO_PROTO_UDP_H
 | |
| #define _PROTO_PROTO_UDP_H
 | |
| 
 | |
| int dgram_fd_handler(int);
 | |
| 
 | |
| #endif // _PROTO_PROTO_UDP_H
 |