HTTP seek support. Various bugfixes.
This commit is contained in:
		
							parent
							
								
									aa6b91afe9
								
							
						
					
					
						commit
						4f71e077b9
					
				
					 5 changed files with 231 additions and 83 deletions
				
			
		|  | @ -204,6 +204,7 @@ struct grub_net_app_protocol | |||
| 		     int (*hook) (const char *filename, | ||||
| 				  const struct grub_dirhook_info *info)); | ||||
|   grub_err_t (*open) (struct grub_file *file, const char *filename); | ||||
|   grub_err_t (*seek) (struct grub_file *file, grub_off_t off); | ||||
|   grub_err_t (*close) (struct grub_file *file); | ||||
| }; | ||||
| 
 | ||||
|  |  | |||
|  | @ -53,8 +53,15 @@ grub_net_send_tcp_packet (const grub_net_tcp_socket_t socket, | |||
| 			  struct grub_net_buff *nb, | ||||
| 			  int push); | ||||
| 
 | ||||
| enum | ||||
|   { | ||||
|     GRUB_NET_TCP_CONTINUE_RECEIVING, | ||||
|     GRUB_NET_TCP_DISCARD, | ||||
|     GRUB_NET_TCP_ABORT | ||||
|   }; | ||||
| 
 | ||||
| void | ||||
| grub_net_tcp_close (grub_net_tcp_socket_t sock); | ||||
| grub_net_tcp_close (grub_net_tcp_socket_t sock, int discard_received); | ||||
| 
 | ||||
| grub_err_t | ||||
| grub_net_tcp_accept (grub_net_tcp_socket_t sock, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue