Browse Source

minor change in params

avadapal 1 year ago
parent
commit
1f944a8457
1 changed files with 4 additions and 4 deletions
  1. 4 4
      2p-preprocessing/ot_blinds.cpp

+ 4 - 4
2p-preprocessing/ot_blinds.cpp

@@ -326,7 +326,7 @@ void run_test_receiver(uint32_t numots, uint32_t bitlength, snd_ot_flavor stype,
  #ifdef VERBOSE
   std::cout << "bytes = " << bytes << std::endl;
 	#endif
- 
+
  close(fd);
 
 	int fd2 = open("./x1", O_WRONLY, O_CREAT);
@@ -409,10 +409,10 @@ int main(int argc, char **argv)
 	if (m_nPID == SERVER_ID) //Play as OT sender
 	{
 		InitSender(addr0, port, glock);
-
+  usleep(2);
 		OTExtSnd *sender = NULL;
 		
-		InitReceiver(addr1, port, glock);
+		InitReceiver(addr0, port, glock);
 
 		OTExtRec *receiver = NULL;
 
@@ -426,7 +426,7 @@ int main(int argc, char **argv)
 	}
 	else //Play as OT receiver
 	{
-		InitReceiver(addr0, port, glock);
+		InitReceiver(addr1, port, glock);
 
 		OTExtRec *receiver = NULL;