PageRenderTime 102ms CodeModel.GetById 41ms app.highlight 2ms RepoModel.GetById 58ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/tls/TLSEvent.as

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
ActionScript | 27 lines | 14 code | 4 blank | 9 comment | 0 complexity | db12b8e059d999cf88e593f93ca34c4a MD5 | raw file
 1/**
 2 * TLSEvent
 3 * 
 4 * This is used by TLSEngine to let the application layer know
 5 * when we're ready for sending, or have received application data
 6 * Copyright (c) 2007 Henri Torgemane
 7 * 
 8 * See LICENSE.txt for full license information.
 9 */
10package com.hurlant.crypto.tls {
11	import flash.events.Event;
12	import flash.utils.ByteArray;
13	
14	public class TLSEvent extends Event {
15		
16		static public const DATA:String = "data";
17		static public const READY:String = "ready";
18		static public const PROMPT_ACCEPT_CERT:String = "promptAcceptCert";
19		
20		public var data:ByteArray;
21		
22		public function TLSEvent(type:String, data:ByteArray = null) {
23			this.data = data;
24			super(type, false, false);
25		}
26	}
27}