#include "transactions.h" #include #include #include #include #include #define PORT 2223 #define IP_ADDRESS "127.0.0.1" int CreateTransaction(action *act) { int bufferSize = sizeof(int)*3 + act->argsize; //unsigned char* buffer = malloc(bufferSize); //buffer[0] = act->id; //buffer[sizeof(int)*1] = act->action; //buffer[sizeof(int)*2] = act->argsize; //memcpy(&buffer[sizeof(int)*3], act->userArg, act->argsize); //free(buffer); return 0; } int GetTransaction(action *act) { int id; int action; int argsize; void* data; act->id = id; act->action = action; act->argsize = argsize; act->userArg = data; return 0; } int ProssesTransaction(action *act) { return 0; }