Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
BUGFIX bindinig always with port 80 cause more than two incoming flows on the same...
authorvelho <velho@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 25 Nov 2008 16:18:24 +0000 (16:18 +0000)
committervelho <velho@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 25 Nov 2008 16:18:24 +0000 (16:18 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6099 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/gtnets/gtnets_simulator.cc

index a21ba16..e915aa6 100644 (file)
@@ -250,11 +250,11 @@ int GTSim::create_flow(int src, int dst, long datasize, void* metadata){
 
   gtnets_servers_[nflow_] = (TCPServer*) gtnets_nodes_[dst_node]->
        AddApplication(TCPServer(TCPReno()));
-  gtnets_servers_[nflow_]->BindAndListen(80);
+  gtnets_servers_[nflow_]->BindAndListen(1000+nflow_);
 
   gtnets_clients_[nflow_] = (TCPSend*)gtnets_nodes_[src_node]->
     AddApplication(TCPSend(metadata, gtnets_nodes_[dst_node]->GetIPAddr(), 
-                          80, Constant(datasize), TCPReno()));
+                          1000+nflow_, Constant(datasize), TCPReno()));
   gtnets_clients_[nflow_]->SetSendCallBack(tcp_sent_callback);
   gtnets_clients_[nflow_]->Start(0);