Network.cc (9860:7248fa3e6e0f) Network.cc (9863:9483739f83ee)
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 45 unchanged lines hidden (view full) ---

54
55 // Initialize the controller's network pointers
56 for (std::vector<BasicExtLink*>::const_iterator i = p->ext_links.begin();
57 i != p->ext_links.end(); ++i) {
58 BasicExtLink *ext_link = (*i);
59 AbstractController *abs_cntrl = ext_link->params()->ext_node;
60 abs_cntrl->initNetworkPtr(this);
61 }
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 45 unchanged lines hidden (view full) ---

54
55 // Initialize the controller's network pointers
56 for (std::vector<BasicExtLink*>::const_iterator i = p->ext_links.begin();
57 i != p->ext_links.end(); ++i) {
58 BasicExtLink *ext_link = (*i);
59 AbstractController *abs_cntrl = ext_link->params()->ext_node;
60 abs_cntrl->initNetworkPtr(this);
61 }
62
63 // Register a callback function for combining the statistics
64 Stats::registerDumpCallback(new StatsCallback(this));
62}
63
64void
65Network::init()
66{
67 m_data_msg_size = RubySystem::getBlockSizeBytes() + m_control_msg_size;
68}
69

--- 34 unchanged lines hidden ---
65}
66
67void
68Network::init()
69{
70 m_data_msg_size = RubySystem::getBlockSizeBytes() + m_control_msg_size;
71}
72

--- 34 unchanged lines hidden ---