20 lines
		
	
	
		
			365 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			20 lines
		
	
	
		
			365 B
		
	
	
	
		
			C
		
	
	
	
	
	
| 
								 | 
							
								#ifndef GE_SOCKET_SERVER_H
							 | 
						||
| 
								 | 
							
								#define GE_SOCKET_SERVER_H
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#ifdef __cplusplus
							 | 
						||
| 
								 | 
							
								extern "C" {
							 | 
						||
| 
								 | 
							
								#endif
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								typedef int8_t (*gs_server_recv_fn)(int8_t* buf, uint16_t len);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								int8_t gs_server_init(void);
							 | 
						||
| 
								 | 
							
								int8_t gs_server_send(const void* ptr, uint16_t length);
							 | 
						||
| 
								 | 
							
								int8_t gs_server_register_recv(gs_server_recv_fn recv);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#ifdef __cplusplus
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								#endif
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#endif /* GE_SOCKET_SERVER_H */
							 | 
						||
| 
								 | 
							
								
							 |