Let say my C file contain this 2 variable,

struct Packet
{
   char Src_MAC[18], Dest_MAC[18];
   char Net_P[5],Trans_P[5]; 
   char Src_IP[16], Dest_IP[16];         
   long int Src_Port,Dest_Port, Cap_Bytes;    //[ long int Range:
−2,147,483,648 to 2,147,483,647]
};

/* Each Host Information Definition  Host Info Size = 18+16+4+14x2+= 66
Bytes */

struct HOST
{
   char Src_MAC[18];
   char Src_IP[16];            
   long int Cap_Bytes;
   int TCP,UDP,ICMP,IP,ARP,OTH_Net, OTH_Trans;   // Protocols
   int ftp,ssh,telnet,domain,www,netbios,other;  // Services   
};

Is it this enough for me to create a table?
If the previous is use C file to save data into log file,then should only
the insert query can use only?




--
View this message in context: 
http://sqlite.1065341.n5.nabble.com/How-to-save-live-data-into-sqlite-database-using-c-language-tp68519p68543.html
Sent from the SQLite mailing list archive at Nabble.com.
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to