-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathffsnet_bridger.cpp
More file actions
33 lines (23 loc) · 795 Bytes
/
ffsnet_bridger.cpp
File metadata and controls
33 lines (23 loc) · 795 Bytes
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
/* Author: Corentin Debains
* Email: cdebains@iit.edu
*
*
*/
#include "ffsnet.h"
#include "ffsnetCPP.h"
int * Transfer_init_c(UDTArray_c Ssocks, struct metadata * meta, int operation){
UDTArray SsocksCPP = (UDTArray) Ssocks;
return Transfer_init(UDTArray Ssocks, struct metadata * meta, int operation);
}
int bufferSend_c(UDTArray_c Ssocks, int index, char * buffer){
UDTArray SsocksCPP = (UDTArray) Ssocks;
return bufferSend(UDTArray Ssocks, int index, char * buffer);
}
int bufferRecv_c(UDTArray_c Ssocks, int index, char * buffer){
UDTArray SsocksCPP = (UDTArray) Ssocks;
return bufferRecv(UDTArray Ssocks, int index, char * buffer);
}
int Transfer_destroy_c(UDTArray_c Ssocks){
UDTArray SsocksCPP = (UDTArray) Ssocks;
return Transfer_destroy(UDTArray Ssocks);
}