Krishna iResearch Intelligent Cloud Platform - VIRtual Generic Os - VIRGO - Linux kernel extensions for cloud
 All Classes
kingcobra.h
1 /***************************************************************************************
2 KingCobra - BFT request servicing software on cloud with queues and arbiters
3 
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8 
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13 
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 
17 --------------------------------------------------------------------------------------------------
18 Copyright (C):
19 Srinivasan Kannan (alias) Ka.Shrinivaasan (alias) Shrinivas Kannan
20 Independent Open Source Developer, Researcher and Consultant
21 Ph: 9789346927, 9003082186, 9791165980
22 Open Source Products Profile(Krishna iResearch): http://sourceforge.net/users/ka_shrinivaasan, https://www.ohloh.net/accounts/ka_shrinivaasan
23 Personal website(research): https://sites.google.com/site/kuja27/
24 emails: ka.shrinivaasan@gmail.com, shrinivas.kannan@gmail.com, kashrinivaasan@live.com
25 --------------------------------------------------------------------------------------------------
26 
27 *****************************************************************************************/
28 
29 
30 #include <linux/string.h>
31 #include <linux/module.h>
32 #include <linux/virgo_queue.h>
33 #include <linux/string.h>
34 #include <linux/ctype.h>
35 #include <linux/file.h>
36 
37 #define KCOBRA_BUF_SIZE 512
38 
39 struct file* request_reply_queue;
40 
41 static int __init kingcobra_kernelspace_init(void);
42 static void __exit kingcobra_kernelspace_exit(void);
43 void kingcobra_servicerequest_kernelspace(void* args);
44 
45 long parse_ip_address(char* request);
46 char* parse_timestamp(char* request);
47 
48 void reply_to_publisher(long client_ip_l, char *response);
49