1 /*-------------------------------------------------------------------------- 2 Project: Horizon 3 File: rdt_define.h 4 5 Copyright (C)2010 Nintendo Co., Ltd.. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Rev: 26004 $ 14 *-------------------------------------------------------------------------*/ 15 16 ////#include "stdafx.h" 17 18 #ifndef NN_RDT_DEFINE_H_ 19 #define NN_RDT_DEFINE_H_ 20 21 namespace nn { namespace rdt { namespace CTR { 22 23 24 /*! 25 @brief Senderインスタンスの状態を示す列挙型です。 26 */ 27 enum SenderState{ 28 SENDER_STATE_OPEN_REQUESTED, //!< @ref Sender::Open が呼ばれた直後の状態です。 29 SENDER_STATE_OPENING, //!< 相手に向けて接続要求を発信し、相手の反応を待っている状態です。 30 SENDER_STATE_OPENED, //!< 相手との接続が確立され、データ送信が可能となった状態です。 31 SENDER_STATE_CLOSE_REQUESTED, //!< @ref Sender::Close が呼ばれた直後の状態です。 32 SENDER_STATE_CLOSING, //!< 送信すべきデータを送り終え、相手に終了通知を送信した後の状態です。 33 SENDER_STATE_CLOSED, //!< インスタンスの初期状態です。 34 SENDER_STATE_NOT_INITIALIZED //!< Senderインスタンスの初期化がなされていないことを表します。 35 }; 36 37 /*! 38 @brief Receiverインスタンスの状態を示す列挙型です。 39 */ 40 enum ReceiverState{ 41 RECEIVER_STATE_WAITING, //!< 相手からの接続要求を待っている状態です。 42 RECEIVER_STATE_OPENED, //!< 相手との接続が確立され、データ受信が可能となった状態です。 43 RECEIVER_STATE_WAITING_FINISHED, //!< 相手からデータ転送終了の通知を受け、確認応答を返したものの、その確認応答が届いたかどうか確信を持てない状態です。 44 RECEIVER_STATE_FINISHED, //!< データ転送終了の確認応答が相手に届いたと考えられる状態です。 45 RECEIVER_STATE_CLOSED, //!< インスタンスの初期状態です。 46 RECEIVER_STATE_NOT_INITIALIZED //!< Receiverインスタンスの初期化がなされていないことを表します。 47 }; 48 49 50 }}} // namespace nn::rdt::CTR 51 52 #endif // end of NN_RDT_DEFINE_H_ 53