I want to construct a sqlite table in my program(linux C):
it has 3 columns/fields:
1 ip/port pair, 2 a FIFO queue pointer, 3 a process id or thread id
I'm not familiar with sqlite now, If I create a sqlite table, is it possible:
when a row is inserted into the sqlite table, a one-time timeout timer starts, if no expected event(when a row is created, the 3rd field is null, it waits for a process or thread to fill the thrid field.) happends within the timeout, the row is deleted. The timeout timer is one-time, so it is only used for once after the row is inserted into the table.
if so, are there any similar source codes? thanks!