From: velho Date: Tue, 25 Nov 2008 16:18:24 +0000 (+0000) Subject: BUGFIX bindinig always with port 80 cause more than two incoming flows on the same... X-Git-Tag: v3.3~80 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c8593c6dc8bdf1408a32cbae25fe1d9855debdbb BUGFIX bindinig always with port 80 cause more than two incoming flows on the same machine to sequentiallize. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6099 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/surf/gtnets/gtnets_simulator.cc b/src/surf/gtnets/gtnets_simulator.cc index a21ba16093..e915aa65f6 100644 --- a/src/surf/gtnets/gtnets_simulator.cc +++ b/src/surf/gtnets/gtnets_simulator.cc @@ -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);