PageRenderTime 101ms CodeModel.GetById 60ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 0ms

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

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
ActionScript | 26 lines | 13 code | 4 blank | 9 comment | 0 complexity | 8d496adccbdc90270e5f6331b2367cea MD5 | raw file
 1/**
 2 * SSLEvent
 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 * This Event was created by Bobby Parker to support SSL 3.0.
 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 SSLEvent extends Event {
15		
16		static public const DATA:String = "data";
17		static public const READY:String = "ready";
18		
19		public var data:ByteArray;
20		
21		public function SSLEvent(type:String, data:ByteArray = null) {
22			this.data = data;
23			super(type, false, false);
24		}
25	}
26}