use unix socket between agent and drivers, and build a lib for that.
Change-Id: Ibaaf203b443ef76e30caf0d67147e87afb3ac362
diff --git a/sysfuzzer/vtscompiler/code_gen/CodeGenBase.cpp b/sysfuzzer/vtscompiler/code_gen/CodeGenBase.cpp
index f2cd380..36d83b6 100644
--- a/sysfuzzer/vtscompiler/code_gen/CodeGenBase.cpp
+++ b/sysfuzzer/vtscompiler/code_gen/CodeGenBase.cpp
@@ -141,7 +141,8 @@
h_ss << ") { }" << endl;
h_ss << " protected:" << endl;
h_ss << " bool Fuzz(FunctionSpecificationMessage* func_msg," << endl;
- h_ss << " void** result, int agent_port);" << endl;
+ h_ss << " void** result, const string& callback_socket_name);"
+ << endl;
// produce Fuzz method(s) for sub_struct(s).
for (auto const& sub_struct : message.sub_struct()) {
@@ -167,7 +168,8 @@
const StructSpecificationMessage& message, const string& parent_path) {
h_ss << " bool Fuzz_" << parent_path << message.name()
<< "(FunctionSpecificationMessage* func_msg," << endl;
- h_ss << " void** result, int agent_port);" << endl;
+ h_ss << " void** result, const string& callback_socket_name);"
+ << endl;
for (auto const& sub_struct : message.sub_struct()) {
GenerateFuzzFunctionForSubStruct(