This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Aetna": "Aetna of the Carolinas Elect Choice (EPO, HMO, QPOS, US Access, Open Access)", | |
"Aetna": "Aetna of the Carolinas Open Choice (PPO, HMO, QPOS, US Access, Open Access)", | |
"Aetna": "Aetna of the Carolinas Managed Choice (MC)", | |
"BlueCross Blue Shield of North Carolina": "Blue Advantage", | |
"BlueCross Blue Shield of North Carolina": "Blue Options (123, PPO, HSA)", | |
"BlueCross Blue Shield of North Carolina": "Blue Select", | |
"CIGNA": "Cigna Choice Plus", | |
"CIGNA": "Cigna Open Access", | |
"CIGNA": "Cigna Open Access Plus", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//AS3 version | |
var t:String = "PREPARE 12\r\n{\"first_name\":\"Brett\", \"last_name\":\"Buddin\"}\r\n"; | |
var splitNumber:int = t.indexOf(" "); | |
var firstSlash:int = t.search("\\r"); | |
var byteNumber:String = t.slice(splitNumber+1,firstSlash); | |
var command:String = t.slice(0,splitNumber); | |
trace (command); | |
var jSON:String = t.slice(t.search("\\r\\n")+2, t.search("}"+1)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conn = new Socket; | |
// listen on port 80 | |
if (conn.listen (8000)) { | |
// wait forever for a connection | |
var incoming; | |
do { | |
incoming = conn.poll(); |