Skip to content

node-framework server

Notifications You must be signed in to change notification settings

mynetstudy/node-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

14 Commits

Repository files navigation

微博:@灵魂猥亵 邮箱:i@jiongsun.com

Actionscript的收、发包逻辑

private function onProgress(evt:ProgressEvent):void{var length:uint = socket.readUnsignedInt(); var data:String = socket.readUTFBytes(length); trace(data); if(socket.bytesAvailable > 0) onProgress(null)} private function send(data:Object):void{var bytes2:ByteArray = new ByteArray(); bytes2.writeUTF(Json.encode(data) + "\\0"); var bytes:ByteArray = new ByteArray(); bytes.writeBytes(bytes2, 2, bytes2.length - 2); socket.writeBytes(bytes); socket.flush()} 

About

node-framework server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published