reSIProcate/stack  9694
testMsgHeaderDiagram.cxx
Go to the documentation of this file.
00001 #include <stdio.h>
00002 
00003 
00004 //#include "resip/stack/config.hxx"
00005 #include "resip/stack/MsgHeaderScanner.cxx"
00006 
00007 using namespace resip;
00008 using namespace std;
00009 
00010 #define RESIPROCATE_SUBSYSTEM Subsystem::SIP
00011 
00012 // Caveat Emptor:
00013 // You cannot compile this test driver and get useful results without
00014 // compiling resiprocate's library with --enable-scanner-debug.
00015 // DO NOT TRY TO HACK THIS SOME OTHER WAY.
00016 
00017 int
00018 main(int argc, char* argv[])
00019 {
00020     return resip::MsgHeaderScanner::dumpStateMachine(fileno(stdout));
00021 }
00022 
00023 /* ====================================================================
00024  * The Vovida Software License, Version 1.0 
00025  * 
00026  * Copyright (c) 2000 Vovida Networks, Inc.  All rights reserved.
00027  * 
00028  * Redistribution and use in source and binary forms, with or without
00029  * modification, are permitted provided that the following conditions
00030  * are met:
00031  * 
00032  * 1. Redistributions of source code must retain the above copyright
00033  *    notice, this list of conditions and the following disclaimer.
00034  * 
00035  * 2. Redistributions in binary form must reproduce the above copyright
00036  *    notice, this list of conditions and the following disclaimer in
00037  *    the documentation and/or other materials provided with the
00038  *    distribution.
00039  * 
00040  * 3. The names "VOCAL", "Vovida Open Communication Application Library",
00041  *    and "Vovida Open Communication Application Library (VOCAL)" must
00042  *    not be used to endorse or promote products derived from this
00043  *    software without prior written permission. For written
00044  *    permission, please contact vocal@vovida.org.
00045  *
00046  * 4. Products derived from this software may not be called "VOCAL", nor
00047  *    may "VOCAL" appear in their name, without prior written
00048  *    permission of Vovida Networks, Inc.
00049  * 
00050  * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
00051  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00052  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
00053  * NON-INFRINGEMENT ARE DISCLAIMED.  IN NO EVENT SHALL VOVIDA
00054  * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
00055  * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
00056  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00057  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00058  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
00059  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00060  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
00061  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
00062  * DAMAGE.
00063  * 
00064  * ====================================================================
00065  * 
00066  * This software consists of voluntary contributions made by Vovida
00067  * Networks, Inc. and many individuals on behalf of Vovida Networks,
00068  * Inc.  For more information on Vovida Networks, Inc., please see
00069  * <http://www.vovida.org/>.
00070  *
00071  */