blob: 0a1a12e04a66f18eb3258659c1bb1b5cbe9bcd8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#include "tfe_types.h"
#include "tfe_utils.h"
#include "sender_scm.h"
#include "tfe_cmsg.h"
int main()
{
return 0;
}
#if 0
int main(){
struct tfe_cmsg *cmsg = tfe_cmsg_init();
if(cmsg == NULL){
printf("Failed at call tfe_cmsg_init\n");
}
//set
uint32_t value = 0x12345678;
int ret = tfe_cmsg_set(cmsg, TFE_CMSG_TCP_RESTORE_SEQ, (const unsigned char*)(&value), 4);
if(ret < 0){
printf("Failed at call tfe_cmsg_set: ret is %d\n", ret);
return -1;
}
//sender_scm
const char *profile = "../../conf/tfe/tfe.conf";
struct sender_scm* sender = sender_scm_init(profile, NULL);
if(sender == NULL){
printf("Failed at call sender_scm_init\n");
return -1;
}
ret = sender_scm_cmsg_send(sender, cmsg);
if(ret < 0){
printf("Failed at call sender_scm_cmsg_send, ret is %d\n", ret);
return -1;
}
return 0;
}
#endif
|