コード例 #1
0
ファイル: IonTcpConnection.cs プロジェクト: habb0/IHI
        /// <summary>
        /// Starts the connection, prepares the received data buffer and waits for data.
        /// </summary>
        public void Start()
        {
            mDataBuffer = new byte[RECEIVEDATA_BUFFER_SIZE];
            mDataReceivedCallback = new AsyncCallback(DataReceived);
            mRouteReceivedDataCallback = new IonTcpConnection.RouteReceivedDataCallback(HandleConnectionData);

            this.mUser = new User(this);
            this.mUser.StartLoggedInValues(this);
            WaitForData();
        }
コード例 #2
0
ファイル: User.cs プロジェクト: habb0/IHI
 /// <summary>
 /// Whisper a message from the User to another User in the room.
 /// </summary>
 /// <param name="Recipient">The User to recieve the message.</param>
 /// <param name="Message">The message to send.</param>
 /// <returns>The current User object. This allows chaining.</returns>
 public User Whisper(User Recipient, string Message)
 {
     return this;
 }