wangzhengquan
2020-07-25 48ae739d196e8a1ad681e5a54ad992302119bd83
test_socket/dgram_mod_req_rep.c
@@ -44,7 +44,7 @@
}
void server(int port) {
  void *socket = dgram_mod_open_socket(REQ_REP);
  void *socket = dgram_mod_open_socket();
  dgram_mod_bind(socket, port);
    initThreadPool(socket);
@@ -58,7 +58,7 @@
}
void client(int port) {
  void *socket = dgram_mod_open_socket(REQ_REP);
  void *socket = dgram_mod_open_socket();
  int size;
  void *recvbuf;
  char sendbuf[512];
@@ -80,10 +80,10 @@
  char sendbuf[512];
  int scale = 100000;
  int i;
  void *socket = dgram_mod_open_socket(REQ_REP);
  void *socket = dgram_mod_open_socket();
   
   char filename[512];
   sprintf(filename, "test%d.txt", targ->id);
   sprintf(filename, "test%d.tmp", targ->id);
   FILE *fp = NULL;
   fp = fopen(filename, "w+");