mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:32:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			408 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			408 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <bits/stdint.h>
 | |
| #include <sys/cdefs.h>
 | |
| 
 | |
| __BEGIN_DECLS
 | |
| 
 | |
| typedef uint32_t in_addr_t;
 | |
| in_addr_t inet_addr(const char*);
 | |
| 
 | |
| #define INADDR_ANY ((in_addr_t)0)
 | |
| #define INADDR_NONE ((in_addr_t)-1)
 | |
| 
 | |
| #define IP_TTL 2
 | |
| 
 | |
| struct in_addr {
 | |
|     uint32_t s_addr;
 | |
| };
 | |
| 
 | |
| struct sockaddr_in {
 | |
|     uint16_t sin_family;
 | |
|     uint16_t sin_port;
 | |
|     struct in_addr sin_addr;
 | |
|     char sin_zero[8];
 | |
| };
 | |
| 
 | |
| __END_DECLS
 | 
