File: SocketEvent.as

package info (click to toggle)
node-node-forge 0.8.1~dfsg-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,536 kB
  • sloc: javascript: 32,607; ansic: 229; python: 59; makefile: 26; xml: 7; sh: 6
file content (36 lines) | stat: -rw-r--r-- 819 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * Copyright (c) 2009 Digital Bazaar, Inc. All rights reserved.
 *
 * @author Dave Longley
 */
package
{
   import flash.events.Event;

   /**
    * A helper class that contains the ID for a Socket.
    */
   public class SocketEvent extends Event
   {
      // the associated socket
      public var socket:PooledSocket;
      // an associated message
      public var message:String;

      /**
       * Creates a new SocketEvent.
       *
       * @param type the type of event.
       * @param socket the associated PooledSocket.
       * @param message an associated message.
       */
      public function SocketEvent(
         type:String, socket:PooledSocket, message:String = null)
      {
         super(type, false, false);
         this.socket = socket;
         this.message = message;
      }
   }
}