return ns3_sim->get_sent_from_socket(socket);
}
-double ns3_get_socket_last_amount_sent(void *socket){
- return ns3_sim->get_last_amount_sent_from_socket(socket);
-}
-
-void ns3_reset_socket_last_amount_sent(void *socket){
- ns3_sim->reset_last_amount_sent_from_socket(socket);
-}
-
char ns3_get_socket_is_finished(void *socket){
return ns3_sim->get_finished(socket);
}
XBT_PUBLIC(void*) ns3_get_socket_action(void *socket);
XBT_PUBLIC(double) ns3_get_socket_remains(void *socket);
XBT_PUBLIC(double) ns3_get_socket_sent(void *socket);
-XBT_PUBLIC(double) ns3_get_socket_last_amount_sent(void *socket);
-XBT_PUBLIC(void) ns3_reset_socket_last_amount_sent(void *socket);
XBT_PUBLIC(char) ns3_get_socket_is_finished(void *socket);
XBT_PUBLIC(void *) ns3_add_host(char * id);
XBT_PUBLIC(void *) ns3_add_host_cluster(char * id);
return ((MySocket *)socket)->sentBytes;
}
-double NS3Sim::get_last_amount_sent_from_socket(void *socket){
- return ((MySocket *)socket)->last_amount_sent;
-}
-
-void NS3Sim::reset_last_amount_sent_from_socket(void *socket){
- ((MySocket *)socket)->last_amount_sent = 0;
-}
-
void NS3Sim::simulator_stop(double min){
if(min > 0.0)
Simulator::Stop(Seconds(min));
void* get_action_from_socket(void *socket);
double get_remains_from_socket(void *socket);
double get_sent_from_socket(void *socket);
- double get_last_amount_sent_from_socket(void *socket);
- void reset_last_amount_sent_from_socket(void *socket);
char get_finished(void *socket);
};