//
// This file is part of an OMNeT++/OMNEST simulation example.
//
// Copyright (C) 2003-2015 Andras Varga
//
// This file is distributed WITHOUT ANY WARRANTY. See the file
// `license' for details on this and other legal matters.
//
#include <stdio.h>
#include <string.h>
#include <omnetpp.h>
using namespace omnetpp;
/**
* In the previous models, `tic' and `toc' immediately sent back the
* received message. Here we'll add some timing: tic and toc will hold the
* message for 1 simulated second before sending it back. In OMNeT++
* such timing is achieved by the module sending a message to itself.
* Such messages are called self-messages (but only because of the way they
* are used, otherwise they are completely ordinary messages) or events.
* Self-messages can be "sent" with the scheduleAt() function, and you can
* specify when they should arrive back at the module.
*
* We
omnet++:tictoc例子6的函数解读:scheduleAt
最新推荐文章于 2022-11-30 09:57:32 发布