From e6d6a59c42957217702762882a80a4684ffeacb1 Mon Sep 17 00:00:00 2001 From: Brandon Nozaki Miller Date: Sun, 10 Jan 2016 01:03:05 -0800 Subject: [PATCH] cleaned up unix socket client test --- spec/coverage/coverage.json | 2 +- spec/coverage/lcov-report/index.html | 60 +- spec/coverage/lcov-report/node-ipc/index.html | 40 +- .../lcov-report/node-ipc/lib/client.js.html | 344 ++++----- .../node-ipc/lib/eventParser.js.html | 16 +- .../lcov-report/node-ipc/lib/index.html | 54 +- .../node-ipc/lib/socketServer.js.html | 392 +++++----- .../lcov-report/node-ipc/node-ipc.js.html | 342 ++++----- spec/coverage/lcov.info | 706 +++++++++--------- .../jasmineTest/TCP/tcpSocketClient.spec.js | 71 +- .../jasmineTest/TCP/tcpSocketServer.spec.js | 30 +- .../jasmineTest/UDP/udpSocketClient.spec.js | 4 +- .../jasmineTest/Unix/unixSocketClient.spec.js | 385 +++++----- .../jasmineTest/Unix/unixSocketServer.spec.js | 88 +-- spec/support/jasmineTest/tcpClient.js | 2 + spec/support/jasmineTest/tcpServer.js | 2 + spec/support/jasmineTest/tcpServerSync.js | 2 + spec/support/jasmineTest/testFile.js | 1 + spec/support/jasmineTest/udp4Server.js | 2 + spec/support/jasmineTest/udp6Server.js | 2 + spec/support/jasmineTest/unixClient.js | 2 + spec/support/jasmineTest/unixServer.js | 2 + spec/support/jasmineTest/unixServerSync.js | 18 + 23 files changed, 1285 insertions(+), 1282 deletions(-) diff --git a/spec/coverage/coverage.json b/spec/coverage/coverage.json index 55df693..f4e0d98 100644 --- a/spec/coverage/coverage.json +++ b/spec/coverage/coverage.json @@ -1 +1 @@ -{"/home/bmiller/git/node-ipc/node-ipc.js":{"path":"/home/bmiller/git/node-ipc/node-ipc.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":141,"8":70,"9":71,"10":71,"11":229,"12":210,"13":19,"14":71,"15":1,"16":8,"17":0,"18":8,"19":8,"20":8,"21":8,"22":8,"23":8,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":0,"33":1,"34":1,"35":1,"36":3,"37":1,"38":1,"39":1,"40":1,"41":3,"42":1,"43":1,"44":1,"45":1,"46":3,"47":2,"48":2,"49":3,"50":0,"51":0,"52":0,"53":0,"54":3,"55":0,"56":0,"57":0,"58":3,"59":0,"60":0,"61":0,"62":3,"63":1,"64":1,"65":3,"66":0,"67":0,"68":3,"69":0,"70":3,"71":3,"72":2,"73":3,"74":1,"75":4,"76":2,"77":2,"78":4,"79":0,"80":4,"81":0,"82":0,"83":4,"84":2,"85":2,"86":4,"87":0,"88":0,"89":0,"90":0,"91":0,"92":4,"93":4,"94":4,"95":4,"96":4,"97":1,"98":4,"99":0,"100":0,"101":4,"102":4,"103":4,"104":4,"105":4,"106":0,"107":0,"108":0,"109":4,"110":4,"111":4,"112":4,"113":0,"114":0,"115":4,"116":0,"117":0,"118":4,"119":0,"120":0,"121":4,"122":0,"123":4,"124":0,"125":0,"126":0,"127":0,"128":0,"129":4,"130":4,"131":4,"132":4,"133":4,"134":4,"135":1},"b":{"1":[0,1],"2":[70,71],"3":[210,19],"4":[0,8],"5":[8,0],"6":[8,0],"7":[1,0],"8":[1,0],"9":[0,1],"10":[1,2],"11":[1,2],"12":[2,1],"13":[0,3],"14":[3,3],"15":[0,3],"16":[0,3],"17":[1,2],"18":[0,3],"19":[0,3],"20":[2,1],"21":[2,2],"22":[0,4],"23":[0,4],"24":[2,2],"25":[0,4],"26":[0,0],"27":[0,4],"28":[4,0],"29":[0,4],"30":[4,0],"31":[0,4],"32":[0,4],"33":[0,4],"34":[0,4],"35":[0,4],"36":[0,0]},"f":{"1":141,"2":8,"3":1,"4":0,"5":3,"6":0,"7":4,"8":0,"9":4,"10":0},"fnMap":{"1":{"name":"log","line":56,"loc":{"start":{"line":56,"column":0},"end":{"line":56,"column":14}}},"2":{"name":"disconnect","line":76,"loc":{"start":{"line":76,"column":0},"end":{"line":76,"column":23}}},"3":{"name":"serve","line":93,"loc":{"start":{"line":93,"column":0},"end":{"line":93,"column":29}}},"4":{"name":"(anonymous_4)","line":108,"loc":{"start":{"line":108,"column":17},"end":{"line":108,"column":27}}},"5":{"name":"serveNet","line":123,"loc":{"start":{"line":123,"column":0},"end":{"line":123,"column":45}}},"6":{"name":"(anonymous_6)","line":176,"loc":{"start":{"line":176,"column":17},"end":{"line":176,"column":27}}},"7":{"name":"connect","line":196,"loc":{"start":{"line":196,"column":0},"end":{"line":196,"column":34}}},"8":{"name":"(anonymous_8)","line":203,"loc":{"start":{"line":203,"column":17},"end":{"line":203,"column":27}}},"9":{"name":"connectNet","line":245,"loc":{"start":{"line":245,"column":0},"end":{"line":245,"column":42}}},"10":{"name":"(anonymous_10)","line":290,"loc":{"start":{"line":290,"column":17},"end":{"line":290,"column":27}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":8,"column":51}},"2":{"start":{"line":10,"column":0},"end":{"line":20,"column":2}},"3":{"start":{"line":22,"column":0},"end":{"line":24,"column":11}},"4":{"start":{"line":26,"column":0},"end":{"line":42,"column":1}},"5":{"start":{"line":44,"column":0},"end":{"line":54,"column":1}},"6":{"start":{"line":56,"column":0},"end":{"line":74,"column":1}},"7":{"start":{"line":57,"column":4},"end":{"line":59,"column":5}},"8":{"start":{"line":58,"column":8},"end":{"line":58,"column":15}},"9":{"start":{"line":61,"column":4},"end":{"line":61,"column":51}},"10":{"start":{"line":63,"column":4},"end":{"line":69,"column":5}},"11":{"start":{"line":64,"column":8},"end":{"line":66,"column":9}},"12":{"start":{"line":65,"column":12},"end":{"line":65,"column":21}},"13":{"start":{"line":68,"column":8},"end":{"line":68,"column":52}},"14":{"start":{"line":71,"column":4},"end":{"line":73,"column":6}},"15":{"start":{"line":76,"column":0},"end":{"line":91,"column":1}},"16":{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},"17":{"start":{"line":78,"column":8},"end":{"line":78,"column":15}},"18":{"start":{"line":81,"column":4},"end":{"line":81,"column":40}},"19":{"start":{"line":83,"column":4},"end":{"line":83,"column":24}},"20":{"start":{"line":84,"column":4},"end":{"line":88,"column":5}},"21":{"start":{"line":85,"column":8},"end":{"line":87,"column":9}},"22":{"start":{"line":86,"column":12},"end":{"line":86,"column":40}},"23":{"start":{"line":90,"column":4},"end":{"line":90,"column":22}},"24":{"start":{"line":93,"column":0},"end":{"line":121,"column":1}},"25":{"start":{"line":94,"column":4},"end":{"line":97,"column":5}},"26":{"start":{"line":95,"column":8},"end":{"line":95,"column":22}},"27":{"start":{"line":96,"column":8},"end":{"line":96,"column":19}},"28":{"start":{"line":98,"column":4},"end":{"line":105,"column":5}},"29":{"start":{"line":99,"column":8},"end":{"line":103,"column":10}},"30":{"start":{"line":104,"column":8},"end":{"line":104,"column":69}},"31":{"start":{"line":107,"column":4},"end":{"line":109,"column":5}},"32":{"start":{"line":108,"column":8},"end":{"line":108,"column":30}},"33":{"start":{"line":111,"column":4},"end":{"line":115,"column":6}},"34":{"start":{"line":117,"column":4},"end":{"line":120,"column":6}},"35":{"start":{"line":123,"column":0},"end":{"line":194,"column":1}},"36":{"start":{"line":124,"column":4},"end":{"line":129,"column":5}},"37":{"start":{"line":125,"column":8},"end":{"line":125,"column":25}},"38":{"start":{"line":126,"column":8},"end":{"line":126,"column":21}},"39":{"start":{"line":127,"column":8},"end":{"line":127,"column":18}},"40":{"start":{"line":128,"column":8},"end":{"line":128,"column":19}},"41":{"start":{"line":130,"column":4},"end":{"line":135,"column":5}},"42":{"start":{"line":131,"column":8},"end":{"line":131,"column":22}},"43":{"start":{"line":132,"column":8},"end":{"line":132,"column":22}},"44":{"start":{"line":133,"column":8},"end":{"line":133,"column":19}},"45":{"start":{"line":134,"column":8},"end":{"line":134,"column":19}},"46":{"start":{"line":136,"column":4},"end":{"line":143,"column":5}},"47":{"start":{"line":137,"column":8},"end":{"line":141,"column":10}},"48":{"start":{"line":142,"column":8},"end":{"line":142,"column":36}},"49":{"start":{"line":144,"column":4},"end":{"line":149,"column":5}},"50":{"start":{"line":145,"column":8},"end":{"line":145,"column":22}},"51":{"start":{"line":146,"column":8},"end":{"line":146,"column":35}},"52":{"start":{"line":147,"column":8},"end":{"line":147,"column":19}},"53":{"start":{"line":148,"column":8},"end":{"line":148,"column":36}},"54":{"start":{"line":151,"column":4},"end":{"line":155,"column":5}},"55":{"start":{"line":152,"column":8},"end":{"line":152,"column":25}},"56":{"start":{"line":153,"column":8},"end":{"line":153,"column":21}},"57":{"start":{"line":154,"column":8},"end":{"line":154,"column":19}},"58":{"start":{"line":156,"column":4},"end":{"line":160,"column":5}},"59":{"start":{"line":157,"column":8},"end":{"line":157,"column":22}},"60":{"start":{"line":158,"column":8},"end":{"line":158,"column":22}},"61":{"start":{"line":159,"column":8},"end":{"line":159,"column":19}},"62":{"start":{"line":161,"column":4},"end":{"line":168,"column":5}},"63":{"start":{"line":162,"column":8},"end":{"line":166,"column":10}},"64":{"start":{"line":167,"column":8},"end":{"line":167,"column":36}},"65":{"start":{"line":170,"column":4},"end":{"line":173,"column":5}},"66":{"start":{"line":171,"column":8},"end":{"line":171,"column":25}},"67":{"start":{"line":172,"column":8},"end":{"line":172,"column":22}},"68":{"start":{"line":175,"column":4},"end":{"line":177,"column":5}},"69":{"start":{"line":176,"column":8},"end":{"line":176,"column":30}},"70":{"start":{"line":179,"column":4},"end":{"line":184,"column":6}},"71":{"start":{"line":186,"column":4},"end":{"line":188,"column":5}},"72":{"start":{"line":187,"column":8},"end":{"line":187,"column":33}},"73":{"start":{"line":190,"column":4},"end":{"line":193,"column":6}},"74":{"start":{"line":196,"column":0},"end":{"line":243,"column":1}},"75":{"start":{"line":197,"column":4},"end":{"line":200,"column":5}},"76":{"start":{"line":198,"column":8},"end":{"line":198,"column":22}},"77":{"start":{"line":199,"column":8},"end":{"line":199,"column":19}},"78":{"start":{"line":202,"column":4},"end":{"line":204,"column":5}},"79":{"start":{"line":203,"column":8},"end":{"line":203,"column":30}},"80":{"start":{"line":206,"column":4},"end":{"line":212,"column":5}},"81":{"start":{"line":207,"column":8},"end":{"line":210,"column":10}},"82":{"start":{"line":211,"column":8},"end":{"line":211,"column":15}},"83":{"start":{"line":214,"column":4},"end":{"line":221,"column":5}},"84":{"start":{"line":215,"column":8},"end":{"line":219,"column":10}},"85":{"start":{"line":220,"column":8},"end":{"line":220,"column":58}},"86":{"start":{"line":223,"column":4},"end":{"line":234,"column":5}},"87":{"start":{"line":224,"column":8},"end":{"line":232,"column":9}},"88":{"start":{"line":225,"column":12},"end":{"line":229,"column":14}},"89":{"start":{"line":230,"column":12},"end":{"line":230,"column":23}},"90":{"start":{"line":231,"column":12},"end":{"line":231,"column":19}},"91":{"start":{"line":233,"column":8},"end":{"line":233,"column":36}},"92":{"start":{"line":236,"column":4},"end":{"line":236,"column":54}},"93":{"start":{"line":237,"column":4},"end":{"line":237,"column":26}},"94":{"start":{"line":238,"column":4},"end":{"line":238,"column":28}},"95":{"start":{"line":240,"column":4},"end":{"line":240,"column":25}},"96":{"start":{"line":242,"column":4},"end":{"line":242,"column":18}},"97":{"start":{"line":245,"column":0},"end":{"line":314,"column":1}},"98":{"start":{"line":246,"column":4},"end":{"line":252,"column":5}},"99":{"start":{"line":247,"column":8},"end":{"line":250,"column":10}},"100":{"start":{"line":251,"column":8},"end":{"line":251,"column":15}},"101":{"start":{"line":253,"column":4},"end":{"line":257,"column":5}},"102":{"start":{"line":254,"column":8},"end":{"line":254,"column":22}},"103":{"start":{"line":255,"column":8},"end":{"line":255,"column":18}},"104":{"start":{"line":256,"column":8},"end":{"line":256,"column":19}},"105":{"start":{"line":258,"column":4},"end":{"line":262,"column":5}},"106":{"start":{"line":259,"column":8},"end":{"line":259,"column":22}},"107":{"start":{"line":260,"column":8},"end":{"line":260,"column":19}},"108":{"start":{"line":261,"column":8},"end":{"line":261,"column":19}},"109":{"start":{"line":263,"column":4},"end":{"line":270,"column":5}},"110":{"start":{"line":264,"column":8},"end":{"line":268,"column":10}},"111":{"start":{"line":269,"column":8},"end":{"line":269,"column":36}},"112":{"start":{"line":272,"column":4},"end":{"line":275,"column":5}},"113":{"start":{"line":273,"column":8},"end":{"line":273,"column":22}},"114":{"start":{"line":274,"column":8},"end":{"line":274,"column":19}},"115":{"start":{"line":276,"column":4},"end":{"line":283,"column":5}},"116":{"start":{"line":277,"column":8},"end":{"line":281,"column":10}},"117":{"start":{"line":282,"column":8},"end":{"line":282,"column":36}},"118":{"start":{"line":285,"column":4},"end":{"line":288,"column":5}},"119":{"start":{"line":286,"column":8},"end":{"line":286,"column":25}},"120":{"start":{"line":287,"column":8},"end":{"line":287,"column":23}},"121":{"start":{"line":289,"column":4},"end":{"line":291,"column":5}},"122":{"start":{"line":290,"column":8},"end":{"line":290,"column":30}},"123":{"start":{"line":293,"column":4},"end":{"line":304,"column":5}},"124":{"start":{"line":294,"column":8},"end":{"line":302,"column":9}},"125":{"start":{"line":295,"column":12},"end":{"line":299,"column":14}},"126":{"start":{"line":300,"column":12},"end":{"line":300,"column":23}},"127":{"start":{"line":301,"column":12},"end":{"line":301,"column":19}},"128":{"start":{"line":303,"column":8},"end":{"line":303,"column":36}},"129":{"start":{"line":306,"column":4},"end":{"line":306,"column":54}},"130":{"start":{"line":307,"column":4},"end":{"line":307,"column":26}},"131":{"start":{"line":308,"column":4},"end":{"line":308,"column":28}},"132":{"start":{"line":309,"column":4},"end":{"line":309,"column":28}},"133":{"start":{"line":311,"column":4},"end":{"line":311,"column":25}},"134":{"start":{"line":313,"column":4},"end":{"line":313,"column":18}},"135":{"start":{"line":316,"column":0},"end":{"line":316,"column":19}}},"branchMap":{"1":{"line":29,"type":"cond-expr","locations":[{"start":{"line":29,"column":40},"end":{"line":29,"column":45}},{"start":{"line":29,"column":48},"end":{"line":29,"column":59}}]},"2":{"line":57,"type":"if","locations":[{"start":{"line":57,"column":4},"end":{"line":57,"column":4}},{"start":{"line":57,"column":4},"end":{"line":57,"column":4}}]},"3":{"line":64,"type":"if","locations":[{"start":{"line":64,"column":8},"end":{"line":64,"column":8}},{"start":{"line":64,"column":8},"end":{"line":64,"column":8}}]},"4":{"line":77,"type":"if","locations":[{"start":{"line":77,"column":4},"end":{"line":77,"column":4}},{"start":{"line":77,"column":4},"end":{"line":77,"column":4}}]},"5":{"line":84,"type":"if","locations":[{"start":{"line":84,"column":4},"end":{"line":84,"column":4}},{"start":{"line":84,"column":4},"end":{"line":84,"column":4}}]},"6":{"line":85,"type":"if","locations":[{"start":{"line":85,"column":8},"end":{"line":85,"column":8}},{"start":{"line":85,"column":8},"end":{"line":85,"column":8}}]},"7":{"line":94,"type":"if","locations":[{"start":{"line":94,"column":4},"end":{"line":94,"column":4}},{"start":{"line":94,"column":4},"end":{"line":94,"column":4}}]},"8":{"line":98,"type":"if","locations":[{"start":{"line":98,"column":4},"end":{"line":98,"column":4}},{"start":{"line":98,"column":4},"end":{"line":98,"column":4}}]},"9":{"line":107,"type":"if","locations":[{"start":{"line":107,"column":4},"end":{"line":107,"column":4}},{"start":{"line":107,"column":4},"end":{"line":107,"column":4}}]},"10":{"line":124,"type":"if","locations":[{"start":{"line":124,"column":4},"end":{"line":124,"column":4}},{"start":{"line":124,"column":4},"end":{"line":124,"column":4}}]},"11":{"line":130,"type":"if","locations":[{"start":{"line":130,"column":4},"end":{"line":130,"column":4}},{"start":{"line":130,"column":4},"end":{"line":130,"column":4}}]},"12":{"line":136,"type":"if","locations":[{"start":{"line":136,"column":4},"end":{"line":136,"column":4}},{"start":{"line":136,"column":4},"end":{"line":136,"column":4}}]},"13":{"line":144,"type":"if","locations":[{"start":{"line":144,"column":4},"end":{"line":144,"column":4}},{"start":{"line":144,"column":4},"end":{"line":144,"column":4}}]},"14":{"line":144,"type":"binary-expr","locations":[{"start":{"line":144,"column":7},"end":{"line":144,"column":33}},{"start":{"line":144,"column":37},"end":{"line":144,"column":63}}]},"15":{"line":151,"type":"if","locations":[{"start":{"line":151,"column":4},"end":{"line":151,"column":4}},{"start":{"line":151,"column":4},"end":{"line":151,"column":4}}]},"16":{"line":156,"type":"if","locations":[{"start":{"line":156,"column":4},"end":{"line":156,"column":4}},{"start":{"line":156,"column":4},"end":{"line":156,"column":4}}]},"17":{"line":161,"type":"if","locations":[{"start":{"line":161,"column":4},"end":{"line":161,"column":4}},{"start":{"line":161,"column":4},"end":{"line":161,"column":4}}]},"18":{"line":170,"type":"if","locations":[{"start":{"line":170,"column":4},"end":{"line":170,"column":4}},{"start":{"line":170,"column":4},"end":{"line":170,"column":4}}]},"19":{"line":175,"type":"if","locations":[{"start":{"line":175,"column":4},"end":{"line":175,"column":4}},{"start":{"line":175,"column":4},"end":{"line":175,"column":4}}]},"20":{"line":186,"type":"if","locations":[{"start":{"line":186,"column":4},"end":{"line":186,"column":4}},{"start":{"line":186,"column":4},"end":{"line":186,"column":4}}]},"21":{"line":197,"type":"if","locations":[{"start":{"line":197,"column":4},"end":{"line":197,"column":4}},{"start":{"line":197,"column":4},"end":{"line":197,"column":4}}]},"22":{"line":202,"type":"if","locations":[{"start":{"line":202,"column":4},"end":{"line":202,"column":4}},{"start":{"line":202,"column":4},"end":{"line":202,"column":4}}]},"23":{"line":206,"type":"if","locations":[{"start":{"line":206,"column":4},"end":{"line":206,"column":4}},{"start":{"line":206,"column":4},"end":{"line":206,"column":4}}]},"24":{"line":214,"type":"if","locations":[{"start":{"line":214,"column":4},"end":{"line":214,"column":4}},{"start":{"line":214,"column":4},"end":{"line":214,"column":4}}]},"25":{"line":223,"type":"if","locations":[{"start":{"line":223,"column":4},"end":{"line":223,"column":4}},{"start":{"line":223,"column":4},"end":{"line":223,"column":4}}]},"26":{"line":224,"type":"if","locations":[{"start":{"line":224,"column":8},"end":{"line":224,"column":8}},{"start":{"line":224,"column":8},"end":{"line":224,"column":8}}]},"27":{"line":246,"type":"if","locations":[{"start":{"line":246,"column":4},"end":{"line":246,"column":4}},{"start":{"line":246,"column":4},"end":{"line":246,"column":4}}]},"28":{"line":253,"type":"if","locations":[{"start":{"line":253,"column":4},"end":{"line":253,"column":4}},{"start":{"line":253,"column":4},"end":{"line":253,"column":4}}]},"29":{"line":258,"type":"if","locations":[{"start":{"line":258,"column":4},"end":{"line":258,"column":4}},{"start":{"line":258,"column":4},"end":{"line":258,"column":4}}]},"30":{"line":263,"type":"if","locations":[{"start":{"line":263,"column":4},"end":{"line":263,"column":4}},{"start":{"line":263,"column":4},"end":{"line":263,"column":4}}]},"31":{"line":272,"type":"if","locations":[{"start":{"line":272,"column":4},"end":{"line":272,"column":4}},{"start":{"line":272,"column":4},"end":{"line":272,"column":4}}]},"32":{"line":276,"type":"if","locations":[{"start":{"line":276,"column":4},"end":{"line":276,"column":4}},{"start":{"line":276,"column":4},"end":{"line":276,"column":4}}]},"33":{"line":285,"type":"if","locations":[{"start":{"line":285,"column":4},"end":{"line":285,"column":4}},{"start":{"line":285,"column":4},"end":{"line":285,"column":4}}]},"34":{"line":289,"type":"if","locations":[{"start":{"line":289,"column":4},"end":{"line":289,"column":4}},{"start":{"line":289,"column":4},"end":{"line":289,"column":4}}]},"35":{"line":293,"type":"if","locations":[{"start":{"line":293,"column":4},"end":{"line":293,"column":4}},{"start":{"line":293,"column":4},"end":{"line":293,"column":4}}]},"36":{"line":294,"type":"if","locations":[{"start":{"line":294,"column":8},"end":{"line":294,"column":8}},{"start":{"line":294,"column":8},"end":{"line":294,"column":8}}]}}},"/home/bmiller/git/node-ipc/lib/eventParser.js":{"path":"/home/bmiller/git/node-ipc/lib/eventParser.js","s":{"1":1,"2":1,"3":14,"4":0,"5":14,"6":0,"7":14,"8":14,"9":1,"10":16,"11":16,"12":16,"13":1,"14":1},"b":{"1":[0,14],"2":[0,14]},"f":{"1":14,"2":16},"fnMap":{"1":{"name":"formatData","line":3,"loc":{"start":{"line":3,"column":0},"end":{"line":3,"column":28}}},"2":{"name":"parseDataEvents","line":15,"loc":{"start":{"line":15,"column":0},"end":{"line":15,"column":30}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},"2":{"start":{"line":3,"column":0},"end":{"line":13,"column":1}},"3":{"start":{"line":4,"column":4},"end":{"line":6,"column":5}},"4":{"start":{"line":5,"column":8},"end":{"line":5,"column":24}},"5":{"start":{"line":7,"column":4},"end":{"line":9,"column":5}},"6":{"start":{"line":8,"column":8},"end":{"line":8,"column":24}},"7":{"start":{"line":11,"column":4},"end":{"line":11,"column":42}},"8":{"start":{"line":12,"column":4},"end":{"line":12,"column":19}},"9":{"start":{"line":15,"column":0},"end":{"line":19,"column":1}},"10":{"start":{"line":16,"column":4},"end":{"line":16,"column":44}},"11":{"start":{"line":17,"column":4},"end":{"line":17,"column":17}},"12":{"start":{"line":18,"column":4},"end":{"line":18,"column":18}},"13":{"start":{"line":21,"column":0},"end":{"line":25,"column":1}},"14":{"start":{"line":27,"column":0},"end":{"line":27,"column":22}}},"branchMap":{"1":{"line":4,"type":"if","locations":[{"start":{"line":4,"column":4},"end":{"line":4,"column":4}},{"start":{"line":4,"column":4},"end":{"line":4,"column":4}}]},"2":{"line":7,"type":"if","locations":[{"start":{"line":7,"column":4},"end":{"line":7,"column":4}},{"start":{"line":7,"column":4},"end":{"line":7,"column":4}}]}}},"/home/bmiller/git/node-ipc/lib/client.js":{"path":"/home/bmiller/git/node-ipc/lib/client.js","s":{"1":1,"2":1,"3":8,"4":8,"5":8,"6":1,"7":12,"8":12,"9":12,"10":12,"11":12,"12":0,"13":12,"14":12,"15":1,"16":1,"17":11,"18":1,"19":11,"20":11,"21":1,"22":14,"23":14,"24":14,"25":0,"26":0,"27":14,"28":7,"29":7,"30":7,"31":0,"32":0,"33":0,"34":7,"35":7,"36":7,"37":7,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":14,"53":14,"54":10,"55":10,"56":14,"57":4,"58":4,"59":4,"60":14,"61":14,"62":14,"63":8,"64":8,"65":8,"66":8,"67":8,"68":8,"69":6,"70":6,"71":6,"72":6,"73":6,"74":6,"75":6,"76":6,"77":2,"78":6,"79":14,"80":12,"81":12,"82":0,"83":0,"84":0,"85":0,"86":0,"87":12,"88":12,"89":12,"90":12,"91":0,"92":0,"93":12,"94":12,"95":12,"96":12,"97":12,"98":12,"99":12,"100":12,"101":12,"102":0,"103":12,"104":1},"b":{"1":[8,0],"2":[0,12],"3":[1,11],"4":[0,14],"5":[7,7],"6":[0,7],"7":[7,0],"8":[7,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[8,6],"14":[14,6],"15":[2,4],"16":[0,12],"17":[0,0],"18":[12,0],"19":[0,12],"20":[12,12],"21":[0,12]},"f":{"1":8,"2":12,"3":11,"4":14,"5":10,"6":4,"7":14,"8":6,"9":6,"10":6,"11":12},"fnMap":{"1":{"name":"init","line":9,"loc":{"start":{"line":9,"column":0},"end":{"line":9,"column":25}}},"2":{"name":"emit","line":24,"loc":{"start":{"line":24,"column":0},"end":{"line":24,"column":24}}},"3":{"name":"syncEmit","line":47,"loc":{"start":{"line":47,"column":0},"end":{"line":47,"column":26}}},"4":{"name":"connect","line":52,"loc":{"start":{"line":52,"column":0},"end":{"line":52,"column":18}}},"5":{"name":"(anonymous_5)","line":119,"loc":{"start":{"line":119,"column":8},"end":{"line":119,"column":21}}},"6":{"name":"(anonymous_6)","line":128,"loc":{"start":{"line":128,"column":8},"end":{"line":128,"column":18}}},"7":{"name":"(anonymous_7)","line":137,"loc":{"start":{"line":137,"column":8},"end":{"line":137,"column":18}}},"8":{"name":"(anonymous_8)","line":162,"loc":{"start":{"line":162,"column":20},"end":{"line":162,"column":36}}},"9":{"name":"(anonymous_9)","line":163,"loc":{"start":{"line":163,"column":31},"end":{"line":163,"column":41}}},"10":{"name":"(anonymous_10)","line":168,"loc":{"start":{"line":168,"column":32},"end":{"line":168,"column":42}}},"11":{"name":"(anonymous_11)","line":186,"loc":{"start":{"line":186,"column":8},"end":{"line":186,"column":23}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":7,"column":38}},"2":{"start":{"line":9,"column":0},"end":{"line":22,"column":1}},"3":{"start":{"line":10,"column":4},"end":{"line":18,"column":5}},"4":{"start":{"line":19,"column":4},"end":{"line":19,"column":23}},"5":{"start":{"line":21,"column":4},"end":{"line":21,"column":18}},"6":{"start":{"line":24,"column":0},"end":{"line":45,"column":1}},"7":{"start":{"line":25,"column":4},"end":{"line":25,"column":109}},"8":{"start":{"line":27,"column":4},"end":{"line":27,"column":28}},"9":{"start":{"line":28,"column":4},"end":{"line":28,"column":22}},"10":{"start":{"line":29,"column":4},"end":{"line":29,"column":22}},"11":{"start":{"line":31,"column":4},"end":{"line":35,"column":5}},"12":{"start":{"line":32,"column":8},"end":{"line":32,"column":47}},"13":{"start":{"line":34,"column":8},"end":{"line":34,"column":44}},"14":{"start":{"line":37,"column":4},"end":{"line":40,"column":5}},"15":{"start":{"line":38,"column":8},"end":{"line":38,"column":35}},"16":{"start":{"line":39,"column":8},"end":{"line":39,"column":15}},"17":{"start":{"line":42,"column":4},"end":{"line":44,"column":6}},"18":{"start":{"line":47,"column":0},"end":{"line":50,"column":1}},"19":{"start":{"line":48,"column":4},"end":{"line":48,"column":102}},"20":{"start":{"line":49,"column":4},"end":{"line":49,"column":31}},"21":{"start":{"line":52,"column":0},"end":{"line":233,"column":1}},"22":{"start":{"line":54,"column":4},"end":{"line":54,"column":20}},"23":{"start":{"line":56,"column":4},"end":{"line":56,"column":91}},"24":{"start":{"line":57,"column":4},"end":{"line":60,"column":5}},"25":{"start":{"line":58,"column":8},"end":{"line":58,"column":136}},"26":{"start":{"line":59,"column":8},"end":{"line":59,"column":15}},"27":{"start":{"line":62,"column":4},"end":{"line":113,"column":5}},"28":{"start":{"line":63,"column":8},"end":{"line":63,"column":85}},"29":{"start":{"line":65,"column":8},"end":{"line":65,"column":31}},"30":{"start":{"line":67,"column":8},"end":{"line":71,"column":9}},"31":{"start":{"line":68,"column":12},"end":{"line":68,"column":43}},"32":{"start":{"line":69,"column":12},"end":{"line":69,"column":44}},"33":{"start":{"line":70,"column":12},"end":{"line":70,"column":39}},"34":{"start":{"line":72,"column":8},"end":{"line":76,"column":10}},"35":{"start":{"line":78,"column":8},"end":{"line":112,"column":9}},"36":{"start":{"line":79,"column":12},"end":{"line":79,"column":96}},"37":{"start":{"line":80,"column":12},"end":{"line":85,"column":14}},"38":{"start":{"line":87,"column":12},"end":{"line":87,"column":114}},"39":{"start":{"line":88,"column":12},"end":{"line":90,"column":13}},"40":{"start":{"line":89,"column":16},"end":{"line":89,"column":81}},"41":{"start":{"line":91,"column":12},"end":{"line":93,"column":13}},"42":{"start":{"line":92,"column":16},"end":{"line":92,"column":81}},"43":{"start":{"line":94,"column":12},"end":{"line":104,"column":13}},"44":{"start":{"line":95,"column":16},"end":{"line":97,"column":17}},"45":{"start":{"line":96,"column":20},"end":{"line":96,"column":96}},"46":{"start":{"line":98,"column":16},"end":{"line":98,"column":40}},"47":{"start":{"line":99,"column":16},"end":{"line":103,"column":17}},"48":{"start":{"line":100,"column":20},"end":{"line":102,"column":22}},"49":{"start":{"line":106,"column":12},"end":{"line":106,"column":47}},"50":{"start":{"line":107,"column":12},"end":{"line":107,"column":47}},"51":{"start":{"line":109,"column":12},"end":{"line":111,"column":14}},"52":{"start":{"line":115,"column":4},"end":{"line":115,"column":52}},"53":{"start":{"line":117,"column":4},"end":{"line":124,"column":6}},"54":{"start":{"line":120,"column":12},"end":{"line":120,"column":57}},"55":{"start":{"line":121,"column":12},"end":{"line":121,"column":41}},"56":{"start":{"line":126,"column":4},"end":{"line":133,"column":6}},"57":{"start":{"line":129,"column":12},"end":{"line":129,"column":38}},"58":{"start":{"line":130,"column":12},"end":{"line":130,"column":61}},"59":{"start":{"line":131,"column":12},"end":{"line":131,"column":41}},"60":{"start":{"line":135,"column":4},"end":{"line":182,"column":6}},"61":{"start":{"line":138,"column":12},"end":{"line":138,"column":167}},"62":{"start":{"line":140,"column":12},"end":{"line":156,"column":13}},"63":{"start":{"line":144,"column":16},"end":{"line":144,"column":45}},"64":{"start":{"line":145,"column":16},"end":{"line":149,"column":18}},"65":{"start":{"line":151,"column":16},"end":{"line":151,"column":40}},"66":{"start":{"line":152,"column":16},"end":{"line":152,"column":42}},"67":{"start":{"line":153,"column":16},"end":{"line":153,"column":33}},"68":{"start":{"line":155,"column":16},"end":{"line":155,"column":23}},"69":{"start":{"line":158,"column":12},"end":{"line":158,"column":35}},"70":{"start":{"line":160,"column":12},"end":{"line":178,"column":14}},"71":{"start":{"line":163,"column":24},"end":{"line":174,"column":25}},"72":{"start":{"line":164,"column":28},"end":{"line":164,"column":54}},"73":{"start":{"line":165,"column":28},"end":{"line":165,"column":52}},"74":{"start":{"line":166,"column":28},"end":{"line":166,"column":45}},"75":{"start":{"line":167,"column":28},"end":{"line":173,"column":29}},"76":{"start":{"line":169,"column":36},"end":{"line":170,"column":89}},"77":{"start":{"line":170,"column":40},"end":{"line":170,"column":89}},"78":{"start":{"line":180,"column":12},"end":{"line":180,"column":41}},"79":{"start":{"line":184,"column":4},"end":{"line":232,"column":6}},"80":{"start":{"line":187,"column":12},"end":{"line":187,"column":56}},"81":{"start":{"line":188,"column":12},"end":{"line":199,"column":13}},"82":{"start":{"line":189,"column":16},"end":{"line":192,"column":18}},"83":{"start":{"line":193,"column":16},"end":{"line":195,"column":17}},"84":{"start":{"line":194,"column":20},"end":{"line":194,"column":27}},"85":{"start":{"line":197,"column":16},"end":{"line":197,"column":36}},"86":{"start":{"line":198,"column":16},"end":{"line":198,"column":23}},"87":{"start":{"line":201,"column":12},"end":{"line":202,"column":34}},"88":{"start":{"line":202,"column":16},"end":{"line":202,"column":34}},"89":{"start":{"line":204,"column":12},"end":{"line":204,"column":40}},"90":{"start":{"line":206,"column":12},"end":{"line":209,"column":13}},"91":{"start":{"line":207,"column":16},"end":{"line":207,"column":131}},"92":{"start":{"line":208,"column":16},"end":{"line":208,"column":23}},"93":{"start":{"line":211,"column":12},"end":{"line":211,"column":30}},"94":{"start":{"line":213,"column":12},"end":{"line":213,"column":49}},"95":{"start":{"line":214,"column":12},"end":{"line":214,"column":39}},"96":{"start":{"line":215,"column":12},"end":{"line":224,"column":13}},"97":{"start":{"line":216,"column":16},"end":{"line":216,"column":40}},"98":{"start":{"line":217,"column":16},"end":{"line":217,"column":40}},"99":{"start":{"line":219,"column":16},"end":{"line":219,"column":94}},"100":{"start":{"line":220,"column":16},"end":{"line":223,"column":18}},"101":{"start":{"line":226,"column":12},"end":{"line":228,"column":13}},"102":{"start":{"line":227,"column":16},"end":{"line":227,"column":23}},"103":{"start":{"line":230,"column":12},"end":{"line":230,"column":32}},"104":{"start":{"line":235,"column":0},"end":{"line":235,"column":20}}},"branchMap":{"1":{"line":17,"type":"binary-expr","locations":[{"start":{"line":17,"column":25},"end":{"line":17,"column":42}},{"start":{"line":17,"column":44},"end":{"line":17,"column":45}}]},"2":{"line":31,"type":"if","locations":[{"start":{"line":31,"column":4},"end":{"line":31,"column":4}},{"start":{"line":31,"column":4},"end":{"line":31,"column":4}}]},"3":{"line":37,"type":"if","locations":[{"start":{"line":37,"column":4},"end":{"line":37,"column":4}},{"start":{"line":37,"column":4},"end":{"line":37,"column":4}}]},"4":{"line":57,"type":"if","locations":[{"start":{"line":57,"column":4},"end":{"line":57,"column":4}},{"start":{"line":57,"column":4},"end":{"line":57,"column":4}}]},"5":{"line":62,"type":"if","locations":[{"start":{"line":62,"column":4},"end":{"line":62,"column":4}},{"start":{"line":62,"column":4},"end":{"line":62,"column":4}}]},"6":{"line":67,"type":"if","locations":[{"start":{"line":67,"column":8},"end":{"line":67,"column":8}},{"start":{"line":67,"column":8},"end":{"line":67,"column":8}}]},"7":{"line":67,"type":"binary-expr","locations":[{"start":{"line":67,"column":12},"end":{"line":67,"column":39}},{"start":{"line":67,"column":43},"end":{"line":67,"column":83}}]},"8":{"line":78,"type":"if","locations":[{"start":{"line":78,"column":8},"end":{"line":78,"column":8}},{"start":{"line":78,"column":8},"end":{"line":78,"column":8}}]},"9":{"line":88,"type":"if","locations":[{"start":{"line":88,"column":12},"end":{"line":88,"column":12}},{"start":{"line":88,"column":12},"end":{"line":88,"column":12}}]},"10":{"line":91,"type":"if","locations":[{"start":{"line":91,"column":12},"end":{"line":91,"column":12}},{"start":{"line":91,"column":12},"end":{"line":91,"column":12}}]},"11":{"line":94,"type":"if","locations":[{"start":{"line":94,"column":12},"end":{"line":94,"column":12}},{"start":{"line":94,"column":12},"end":{"line":94,"column":12}}]},"12":{"line":95,"type":"if","locations":[{"start":{"line":95,"column":16},"end":{"line":95,"column":16}},{"start":{"line":95,"column":16},"end":{"line":95,"column":16}}]},"13":{"line":140,"type":"if","locations":[{"start":{"line":140,"column":12},"end":{"line":140,"column":12}},{"start":{"line":140,"column":12},"end":{"line":140,"column":12}}]},"14":{"line":141,"type":"binary-expr","locations":[{"start":{"line":141,"column":16},"end":{"line":141,"column":42}},{"start":{"line":141,"column":46},"end":{"line":141,"column":71}}]},"15":{"line":169,"type":"if","locations":[{"start":{"line":169,"column":36},"end":{"line":169,"column":36}},{"start":{"line":169,"column":36},"end":{"line":169,"column":36}}]},"16":{"line":188,"type":"if","locations":[{"start":{"line":188,"column":12},"end":{"line":188,"column":12}},{"start":{"line":188,"column":12},"end":{"line":188,"column":12}}]},"17":{"line":193,"type":"if","locations":[{"start":{"line":193,"column":16},"end":{"line":193,"column":16}},{"start":{"line":193,"column":16},"end":{"line":193,"column":16}}]},"18":{"line":201,"type":"if","locations":[{"start":{"line":201,"column":12},"end":{"line":201,"column":12}},{"start":{"line":201,"column":12},"end":{"line":201,"column":12}}]},"19":{"line":206,"type":"if","locations":[{"start":{"line":206,"column":12},"end":{"line":206,"column":12}},{"start":{"line":206,"column":12},"end":{"line":206,"column":12}}]},"20":{"line":206,"type":"binary-expr","locations":[{"start":{"line":206,"column":15},"end":{"line":206,"column":52}},{"start":{"line":206,"column":56},"end":{"line":206,"column":97}}]},"21":{"line":226,"type":"if","locations":[{"start":{"line":226,"column":12},"end":{"line":226,"column":12}},{"start":{"line":226,"column":12},"end":{"line":226,"column":12}}]}}},"/home/bmiller/git/node-ipc/lib/socketServer.js":{"path":"/home/bmiller/git/node-ipc/lib/socketServer.js","s":{"1":1,"2":1,"3":2,"4":2,"5":2,"6":2,"7":2,"8":0,"9":2,"10":2,"11":2,"12":0,"13":0,"14":0,"15":2,"16":2,"17":0,"18":1,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":1,"32":4,"33":4,"34":0,"35":4,"36":0,"37":0,"38":4,"39":4,"40":4,"41":4,"42":2,"43":2,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":1,"61":2,"62":2,"63":2,"64":0,"65":0,"66":0,"67":2,"68":2,"69":2,"70":2,"71":4,"72":0,"73":0,"74":4,"75":1,"76":4,"77":4,"78":2,"79":4,"80":4,"81":0,"82":4,"83":0,"84":0,"85":4,"86":4,"87":4,"88":0,"89":0,"90":0,"91":4,"92":4,"93":4,"94":4,"95":0,"96":0,"97":4,"98":4,"99":4,"100":4,"101":4,"102":4,"103":4,"104":4,"105":4,"106":4,"107":2,"108":0,"109":2,"110":2,"111":2,"112":0,"113":2,"114":2,"115":4,"116":4,"117":0,"118":1,"119":4,"120":4,"121":1,"122":1,"123":0,"124":0,"125":0,"126":1,"127":1,"128":3,"129":1,"130":1,"131":1,"132":2,"133":2,"134":2,"135":4,"136":4,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":4,"152":1},"b":{"1":[0,2],"2":[2,0],"3":[2,1],"4":[0,2],"5":[2,2],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,4],"11":[3,1],"12":[2,2],"13":[4,3],"14":[2,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,2],"21":[1,1],"22":[2,2],"23":[2,2],"24":[4,3],"25":[0,4],"26":[4,0],"27":[0,4],"28":[4,4],"29":[4,0],"30":[0,2],"31":[0,2],"32":[0,4],"33":[1,3],"34":[0,1],"35":[1,2],"36":[3,2],"37":[0,1],"38":[1,1],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0]},"f":{"1":2,"2":0,"3":4,"4":4,"5":0,"6":4,"7":4,"8":4,"9":2,"10":2,"11":0,"12":2,"13":0,"14":4,"15":0,"16":0,"17":4,"18":2,"19":4,"20":0},"fnMap":{"1":{"name":"emit","line":9,"loc":{"start":{"line":9,"column":0},"end":{"line":9,"column":33}}},"2":{"name":"broadcast","line":40,"loc":{"start":{"line":40,"column":0},"end":{"line":40,"column":29}}},"3":{"name":"init","line":63,"loc":{"start":{"line":63,"column":0},"end":{"line":63,"column":35}}},"4":{"name":"(anonymous_4)","line":75,"loc":{"start":{"line":75,"column":26},"end":{"line":75,"column":42}}},"5":{"name":"(anonymous_5)","line":81,"loc":{"start":{"line":81,"column":13},"end":{"line":81,"column":23}}},"6":{"name":"(anonymous_6)","line":84,"loc":{"start":{"line":84,"column":26},"end":{"line":84,"column":36}}},"7":{"name":"(anonymous_7)","line":93,"loc":{"start":{"line":93,"column":20},"end":{"line":93,"column":36}}},"8":{"name":"(anonymous_8)","line":94,"loc":{"start":{"line":94,"column":31},"end":{"line":94,"column":43}}},"9":{"name":"UDPWrite","line":134,"loc":{"start":{"line":134,"column":32},"end":{"line":134,"column":65}}},"10":{"name":"(anonymous_10)","line":142,"loc":{"start":{"line":142,"column":40},"end":{"line":142,"column":61}}},"11":{"name":"(anonymous_11)","line":147,"loc":{"start":{"line":147,"column":52},"end":{"line":147,"column":65}}},"12":{"name":"(anonymous_12)","line":162,"loc":{"start":{"line":162,"column":36},"end":{"line":162,"column":48}}},"13":{"name":"(anonymous_13)","line":170,"loc":{"start":{"line":170,"column":32},"end":{"line":170,"column":45}}},"14":{"name":"serverCreated","line":182,"loc":{"start":{"line":182,"column":28},"end":{"line":182,"column":59}}},"15":{"name":"(anonymous_15)","line":191,"loc":{"start":{"line":191,"column":36},"end":{"line":191,"column":52}}},"16":{"name":"(anonymous_16)","line":201,"loc":{"start":{"line":201,"column":36},"end":{"line":201,"column":49}}},"17":{"name":"(anonymous_17)","line":210,"loc":{"start":{"line":210,"column":36},"end":{"line":210,"column":60}}},"18":{"name":"(anonymous_18)","line":256,"loc":{"start":{"line":256,"column":36},"end":{"line":256,"column":56}}},"19":{"name":"started","line":281,"loc":{"start":{"line":281,"column":28},"end":{"line":281,"column":52}}},"20":{"name":"(anonymous_20)","line":334,"loc":{"start":{"line":334,"column":8},"end":{"line":334,"column":18}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":7,"column":36}},"2":{"start":{"line":9,"column":0},"end":{"line":38,"column":1}},"3":{"start":{"line":10,"column":4},"end":{"line":10,"column":74}},"4":{"start":{"line":12,"column":4},"end":{"line":12,"column":28}},"5":{"start":{"line":13,"column":4},"end":{"line":13,"column":22}},"6":{"start":{"line":14,"column":4},"end":{"line":14,"column":22}},"7":{"start":{"line":16,"column":4},"end":{"line":20,"column":5}},"8":{"start":{"line":17,"column":8},"end":{"line":17,"column":47}},"9":{"start":{"line":19,"column":8},"end":{"line":19,"column":44}},"10":{"start":{"line":22,"column":4},"end":{"line":35,"column":5}},"11":{"start":{"line":24,"column":8},"end":{"line":28,"column":9}},"12":{"start":{"line":25,"column":12},"end":{"line":25,"column":166}},"13":{"start":{"line":26,"column":12},"end":{"line":26,"column":38}},"14":{"start":{"line":27,"column":12},"end":{"line":27,"column":19}},"15":{"start":{"line":30,"column":8},"end":{"line":33,"column":10}},"16":{"start":{"line":34,"column":8},"end":{"line":34,"column":15}},"17":{"start":{"line":37,"column":4},"end":{"line":37,"column":26}},"18":{"start":{"line":40,"column":0},"end":{"line":61,"column":1}},"19":{"start":{"line":41,"column":4},"end":{"line":41,"column":143}},"20":{"start":{"line":42,"column":4},"end":{"line":42,"column":28}},"21":{"start":{"line":43,"column":4},"end":{"line":43,"column":22}},"22":{"start":{"line":44,"column":4},"end":{"line":44,"column":22}},"23":{"start":{"line":46,"column":4},"end":{"line":50,"column":5}},"24":{"start":{"line":47,"column":8},"end":{"line":47,"column":47}},"25":{"start":{"line":49,"column":8},"end":{"line":49,"column":44}},"26":{"start":{"line":52,"column":4},"end":{"line":60,"column":5}},"27":{"start":{"line":53,"column":8},"end":{"line":55,"column":9}},"28":{"start":{"line":54,"column":12},"end":{"line":54,"column":55}},"29":{"start":{"line":57,"column":8},"end":{"line":59,"column":9}},"30":{"start":{"line":58,"column":12},"end":{"line":58,"column":43}},"31":{"start":{"line":63,"column":0},"end":{"line":362,"column":1}},"32":{"start":{"line":64,"column":4},"end":{"line":328,"column":6}},"33":{"start":{"line":76,"column":12},"end":{"line":79,"column":14}},"34":{"start":{"line":82,"column":12},"end":{"line":82,"column":34}},"35":{"start":{"line":85,"column":12},"end":{"line":88,"column":13}},"36":{"start":{"line":86,"column":16},"end":{"line":86,"column":87}},"37":{"start":{"line":87,"column":16},"end":{"line":87,"column":23}},"38":{"start":{"line":90,"column":12},"end":{"line":326,"column":14}},"39":{"start":{"line":94,"column":24},"end":{"line":323,"column":25}},"40":{"start":{"line":95,"column":28},"end":{"line":95,"column":133}},"41":{"start":{"line":97,"column":28},"end":{"line":166,"column":29}},"42":{"start":{"line":98,"column":32},"end":{"line":132,"column":33}},"43":{"start":{"line":99,"column":36},"end":{"line":101,"column":38}},"44":{"start":{"line":103,"column":36},"end":{"line":103,"column":94}},"45":{"start":{"line":104,"column":36},"end":{"line":108,"column":37}},"46":{"start":{"line":105,"column":40},"end":{"line":105,"column":105}},"47":{"start":{"line":107,"column":40},"end":{"line":107,"column":135}},"48":{"start":{"line":109,"column":36},"end":{"line":113,"column":37}},"49":{"start":{"line":110,"column":40},"end":{"line":110,"column":105}},"50":{"start":{"line":112,"column":40},"end":{"line":112,"column":128}},"51":{"start":{"line":114,"column":36},"end":{"line":116,"column":37}},"52":{"start":{"line":115,"column":40},"end":{"line":115,"column":109}},"53":{"start":{"line":117,"column":36},"end":{"line":127,"column":37}},"54":{"start":{"line":118,"column":40},"end":{"line":120,"column":41}},"55":{"start":{"line":119,"column":44},"end":{"line":119,"column":120}},"56":{"start":{"line":121,"column":40},"end":{"line":121,"column":64}},"57":{"start":{"line":122,"column":40},"end":{"line":126,"column":41}},"58":{"start":{"line":123,"column":44},"end":{"line":125,"column":46}},"59":{"start":{"line":128,"column":36},"end":{"line":131,"column":38}},"60":{"start":{"line":134,"column":32},"end":{"line":154,"column":33}},"61":{"start":{"line":135,"column":36},"end":{"line":135,"column":89}},"62":{"start":{"line":136,"column":36},"end":{"line":153,"column":38}},"63":{"start":{"line":143,"column":44},"end":{"line":151,"column":45}},"64":{"start":{"line":144,"column":48},"end":{"line":144,"column":100}},"65":{"start":{"line":145,"column":48},"end":{"line":150,"column":50}},"66":{"start":{"line":148,"column":56},"end":{"line":148,"column":84}},"67":{"start":{"line":156,"column":32},"end":{"line":158,"column":34}},"68":{"start":{"line":159,"column":32},"end":{"line":159,"column":61}},"69":{"start":{"line":160,"column":32},"end":{"line":165,"column":34}},"70":{"start":{"line":163,"column":40},"end":{"line":163,"column":68}},"71":{"start":{"line":168,"column":28},"end":{"line":178,"column":30}},"72":{"start":{"line":171,"column":36},"end":{"line":171,"column":72}},"73":{"start":{"line":173,"column":36},"end":{"line":176,"column":37}},"74":{"start":{"line":180,"column":28},"end":{"line":180,"column":86}},"75":{"start":{"line":182,"column":28},"end":{"line":279,"column":29}},"76":{"start":{"line":183,"column":32},"end":{"line":183,"column":60}},"77":{"start":{"line":185,"column":32},"end":{"line":186,"column":79}},"78":{"start":{"line":186,"column":36},"end":{"line":186,"column":79}},"79":{"start":{"line":188,"column":32},"end":{"line":188,"column":97}},"80":{"start":{"line":189,"column":32},"end":{"line":197,"column":34}},"81":{"start":{"line":192,"column":40},"end":{"line":195,"column":42}},"82":{"start":{"line":199,"column":32},"end":{"line":206,"column":34}},"83":{"start":{"line":202,"column":40},"end":{"line":202,"column":83}},"84":{"start":{"line":204,"column":40},"end":{"line":204,"column":68}},"85":{"start":{"line":208,"column":32},"end":{"line":252,"column":34}},"86":{"start":{"line":211,"column":40},"end":{"line":211,"column":100}},"87":{"start":{"line":212,"column":40},"end":{"line":220,"column":41}},"88":{"start":{"line":213,"column":44},"end":{"line":213,"column":80}},"89":{"start":{"line":214,"column":44},"end":{"line":218,"column":46}},"90":{"start":{"line":219,"column":44},"end":{"line":219,"column":51}},"91":{"start":{"line":222,"column":40},"end":{"line":223,"column":62}},"92":{"start":{"line":223,"column":44},"end":{"line":223,"column":62}},"93":{"start":{"line":225,"column":40},"end":{"line":225,"column":68}},"94":{"start":{"line":227,"column":40},"end":{"line":230,"column":41}},"95":{"start":{"line":228,"column":44},"end":{"line":228,"column":159}},"96":{"start":{"line":229,"column":44},"end":{"line":229,"column":51}},"97":{"start":{"line":232,"column":40},"end":{"line":232,"column":58}},"98":{"start":{"line":234,"column":40},"end":{"line":234,"column":69}},"99":{"start":{"line":236,"column":40},"end":{"line":250,"column":41}},"100":{"start":{"line":237,"column":44},"end":{"line":237,"column":68}},"101":{"start":{"line":238,"column":44},"end":{"line":238,"column":71}},"102":{"start":{"line":240,"column":44},"end":{"line":240,"column":116}},"103":{"start":{"line":242,"column":44},"end":{"line":243,"column":72}},"104":{"start":{"line":243,"column":48},"end":{"line":243,"column":72}},"105":{"start":{"line":245,"column":44},"end":{"line":249,"column":46}},"106":{"start":{"line":254,"column":32},"end":{"line":269,"column":34}},"107":{"start":{"line":257,"column":40},"end":{"line":258,"column":51}},"108":{"start":{"line":258,"column":44},"end":{"line":258,"column":51}},"109":{"start":{"line":259,"column":40},"end":{"line":259,"column":123}},"110":{"start":{"line":260,"column":40},"end":{"line":260,"column":49}},"111":{"start":{"line":262,"column":40},"end":{"line":266,"column":41}},"112":{"start":{"line":263,"column":44},"end":{"line":263,"column":79}},"113":{"start":{"line":265,"column":44},"end":{"line":265,"column":64}},"114":{"start":{"line":267,"column":40},"end":{"line":267,"column":71}},"115":{"start":{"line":271,"column":32},"end":{"line":274,"column":34}},"116":{"start":{"line":276,"column":32},"end":{"line":278,"column":33}},"117":{"start":{"line":277,"column":36},"end":{"line":277,"column":43}},"118":{"start":{"line":281,"column":28},"end":{"line":283,"column":29}},"119":{"start":{"line":282,"column":32},"end":{"line":282,"column":54}},"120":{"start":{"line":285,"column":28},"end":{"line":299,"column":29}},"121":{"start":{"line":286,"column":32},"end":{"line":286,"column":106}},"122":{"start":{"line":287,"column":32},"end":{"line":291,"column":15}},"123":{"start":{"line":288,"column":18},"end":{"line":288,"column":63}},"124":{"start":{"line":289,"column":18},"end":{"line":289,"column":64}},"125":{"start":{"line":290,"column":18},"end":{"line":290,"column":59}},"126":{"start":{"line":293,"column":32},"end":{"line":296,"column":34}},"127":{"start":{"line":298,"column":32},"end":{"line":298,"column":39}},"128":{"start":{"line":301,"column":28},"end":{"line":309,"column":29}},"129":{"start":{"line":302,"column":32},"end":{"line":302,"column":113}},"130":{"start":{"line":303,"column":32},"end":{"line":307,"column":34}},"131":{"start":{"line":308,"column":32},"end":{"line":308,"column":39}},"132":{"start":{"line":311,"column":28},"end":{"line":311,"column":107}},"133":{"start":{"line":312,"column":28},"end":{"line":315,"column":30}},"134":{"start":{"line":317,"column":28},"end":{"line":322,"column":30}},"135":{"start":{"line":330,"column":4},"end":{"line":330,"column":23}},"136":{"start":{"line":332,"column":4},"end":{"line":359,"column":6}},"137":{"start":{"line":335,"column":12},"end":{"line":357,"column":13}},"138":{"start":{"line":336,"column":16},"end":{"line":336,"column":45}},"139":{"start":{"line":337,"column":16},"end":{"line":337,"column":44}},"140":{"start":{"line":339,"column":16},"end":{"line":342,"column":17}},"141":{"start":{"line":340,"column":20},"end":{"line":341,"column":33}},"142":{"start":{"line":341,"column":24},"end":{"line":341,"column":33}},"143":{"start":{"line":344,"column":16},"end":{"line":345,"column":47}},"144":{"start":{"line":345,"column":19},"end":{"line":345,"column":47}},"145":{"start":{"line":347,"column":16},"end":{"line":347,"column":88}},"146":{"start":{"line":349,"column":16},"end":{"line":350,"column":37}},"147":{"start":{"line":350,"column":20},"end":{"line":350,"column":37}},"148":{"start":{"line":352,"column":16},"end":{"line":352,"column":43}},"149":{"start":{"line":354,"column":16},"end":{"line":354,"column":81}},"150":{"start":{"line":356,"column":16},"end":{"line":356,"column":23}},"151":{"start":{"line":361,"column":4},"end":{"line":361,"column":18}},"152":{"start":{"line":364,"column":0},"end":{"line":364,"column":20}}},"branchMap":{"1":{"line":16,"type":"if","locations":[{"start":{"line":16,"column":4},"end":{"line":16,"column":4}},{"start":{"line":16,"column":4},"end":{"line":16,"column":4}}]},"2":{"line":22,"type":"if","locations":[{"start":{"line":22,"column":4},"end":{"line":22,"column":4}},{"start":{"line":22,"column":4},"end":{"line":22,"column":4}}]},"3":{"line":22,"type":"binary-expr","locations":[{"start":{"line":22,"column":7},"end":{"line":22,"column":16}},{"start":{"line":22,"column":20},"end":{"line":22,"column":29}}]},"4":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":8},"end":{"line":24,"column":8}},{"start":{"line":24,"column":8},"end":{"line":24,"column":8}}]},"5":{"line":24,"type":"binary-expr","locations":[{"start":{"line":24,"column":11},"end":{"line":24,"column":26}},{"start":{"line":24,"column":30},"end":{"line":24,"column":42}}]},"6":{"line":41,"type":"cond-expr","locations":[{"start":{"line":41,"column":115},"end":{"line":41,"column":124}},{"start":{"line":41,"column":125},"end":{"line":41,"column":127}}]},"7":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":4},"end":{"line":46,"column":4}},{"start":{"line":46,"column":4},"end":{"line":46,"column":4}}]},"8":{"line":52,"type":"if","locations":[{"start":{"line":52,"column":4},"end":{"line":52,"column":4}},{"start":{"line":52,"column":4},"end":{"line":52,"column":4}}]},"9":{"line":52,"type":"binary-expr","locations":[{"start":{"line":52,"column":7},"end":{"line":52,"column":16}},{"start":{"line":52,"column":20},"end":{"line":52,"column":29}}]},"10":{"line":85,"type":"if","locations":[{"start":{"line":85,"column":12},"end":{"line":85,"column":12}},{"start":{"line":85,"column":12},"end":{"line":85,"column":12}}]},"11":{"line":95,"type":"cond-expr","locations":[{"start":{"line":95,"column":103},"end":{"line":95,"column":118}},{"start":{"line":95,"column":119},"end":{"line":95,"column":121}}]},"12":{"line":97,"type":"if","locations":[{"start":{"line":97,"column":28},"end":{"line":97,"column":28}},{"start":{"line":97,"column":28},"end":{"line":97,"column":28}}]},"13":{"line":97,"type":"binary-expr","locations":[{"start":{"line":97,"column":31},"end":{"line":97,"column":43}},{"start":{"line":97,"column":47},"end":{"line":97,"column":59}}]},"14":{"line":98,"type":"if","locations":[{"start":{"line":98,"column":32},"end":{"line":98,"column":32}},{"start":{"line":98,"column":32},"end":{"line":98,"column":32}}]},"15":{"line":104,"type":"if","locations":[{"start":{"line":104,"column":36},"end":{"line":104,"column":36}},{"start":{"line":104,"column":36},"end":{"line":104,"column":36}}]},"16":{"line":109,"type":"if","locations":[{"start":{"line":109,"column":36},"end":{"line":109,"column":36}},{"start":{"line":109,"column":36},"end":{"line":109,"column":36}}]},"17":{"line":114,"type":"if","locations":[{"start":{"line":114,"column":36},"end":{"line":114,"column":36}},{"start":{"line":114,"column":36},"end":{"line":114,"column":36}}]},"18":{"line":117,"type":"if","locations":[{"start":{"line":117,"column":36},"end":{"line":117,"column":36}},{"start":{"line":117,"column":36},"end":{"line":117,"column":36}}]},"19":{"line":118,"type":"if","locations":[{"start":{"line":118,"column":40},"end":{"line":118,"column":40}},{"start":{"line":118,"column":40},"end":{"line":118,"column":40}}]},"20":{"line":143,"type":"if","locations":[{"start":{"line":143,"column":44},"end":{"line":143,"column":44}},{"start":{"line":143,"column":44},"end":{"line":143,"column":44}}]},"21":{"line":157,"type":"cond-expr","locations":[{"start":{"line":157,"column":52},"end":{"line":157,"column":58}},{"start":{"line":157,"column":59},"end":{"line":157,"column":65}}]},"22":{"line":185,"type":"if","locations":[{"start":{"line":185,"column":32},"end":{"line":185,"column":32}},{"start":{"line":185,"column":32},"end":{"line":185,"column":32}}]},"23":{"line":211,"type":"cond-expr","locations":[{"start":{"line":211,"column":80},"end":{"line":211,"column":89}},{"start":{"line":211,"column":92},"end":{"line":211,"column":98}}]},"24":{"line":211,"type":"binary-expr","locations":[{"start":{"line":211,"column":51},"end":{"line":211,"column":62}},{"start":{"line":211,"column":66},"end":{"line":211,"column":77}}]},"25":{"line":212,"type":"if","locations":[{"start":{"line":212,"column":40},"end":{"line":212,"column":40}},{"start":{"line":212,"column":40},"end":{"line":212,"column":40}}]},"26":{"line":222,"type":"if","locations":[{"start":{"line":222,"column":40},"end":{"line":222,"column":40}},{"start":{"line":222,"column":40},"end":{"line":222,"column":40}}]},"27":{"line":227,"type":"if","locations":[{"start":{"line":227,"column":40},"end":{"line":227,"column":40}},{"start":{"line":227,"column":40},"end":{"line":227,"column":40}}]},"28":{"line":227,"type":"binary-expr","locations":[{"start":{"line":227,"column":43},"end":{"line":227,"column":80}},{"start":{"line":227,"column":84},"end":{"line":227,"column":125}}]},"29":{"line":242,"type":"if","locations":[{"start":{"line":242,"column":44},"end":{"line":242,"column":44}},{"start":{"line":242,"column":44},"end":{"line":242,"column":44}}]},"30":{"line":257,"type":"if","locations":[{"start":{"line":257,"column":40},"end":{"line":257,"column":40}},{"start":{"line":257,"column":40},"end":{"line":257,"column":40}}]},"31":{"line":262,"type":"if","locations":[{"start":{"line":262,"column":40},"end":{"line":262,"column":40}},{"start":{"line":262,"column":40},"end":{"line":262,"column":40}}]},"32":{"line":276,"type":"if","locations":[{"start":{"line":276,"column":32},"end":{"line":276,"column":32}},{"start":{"line":276,"column":32},"end":{"line":276,"column":32}}]},"33":{"line":285,"type":"if","locations":[{"start":{"line":285,"column":28},"end":{"line":285,"column":28}},{"start":{"line":285,"column":28},"end":{"line":285,"column":28}}]},"34":{"line":287,"type":"if","locations":[{"start":{"line":287,"column":32},"end":{"line":287,"column":32}},{"start":{"line":287,"column":32},"end":{"line":287,"column":32}}]},"35":{"line":301,"type":"if","locations":[{"start":{"line":301,"column":28},"end":{"line":301,"column":28}},{"start":{"line":301,"column":28},"end":{"line":301,"column":28}}]},"36":{"line":301,"type":"binary-expr","locations":[{"start":{"line":301,"column":31},"end":{"line":301,"column":43}},{"start":{"line":301,"column":47},"end":{"line":301,"column":59}}]},"37":{"line":302,"type":"cond-expr","locations":[{"start":{"line":302,"column":90},"end":{"line":302,"column":95}},{"start":{"line":302,"column":96},"end":{"line":302,"column":101}}]},"38":{"line":311,"type":"cond-expr","locations":[{"start":{"line":311,"column":82},"end":{"line":311,"column":88}},{"start":{"line":311,"column":89},"end":{"line":311,"column":95}}]},"39":{"line":339,"type":"if","locations":[{"start":{"line":339,"column":16},"end":{"line":339,"column":16}},{"start":{"line":339,"column":16},"end":{"line":339,"column":16}}]},"40":{"line":340,"type":"if","locations":[{"start":{"line":340,"column":20},"end":{"line":340,"column":20}},{"start":{"line":340,"column":20},"end":{"line":340,"column":20}}]},"41":{"line":344,"type":"if","locations":[{"start":{"line":344,"column":16},"end":{"line":344,"column":16}},{"start":{"line":344,"column":16},"end":{"line":344,"column":16}}]},"42":{"line":349,"type":"if","locations":[{"start":{"line":349,"column":16},"end":{"line":349,"column":16}},{"start":{"line":349,"column":16},"end":{"line":349,"column":16}}]}}}} \ No newline at end of file +{"/home/bmiller/git/node-ipc/node-ipc.js":{"path":"/home/bmiller/git/node-ipc/node-ipc.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":55,"8":0,"9":55,"10":55,"11":177,"12":160,"13":17,"14":55,"15":1,"16":4,"17":0,"18":4,"19":4,"20":4,"21":4,"22":4,"23":4,"24":1,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":1,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":1,"75":4,"76":2,"77":2,"78":4,"79":0,"80":4,"81":0,"82":0,"83":4,"84":2,"85":2,"86":4,"87":0,"88":0,"89":0,"90":0,"91":0,"92":4,"93":4,"94":4,"95":4,"96":4,"97":1,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":1},"b":{"1":[0,1],"2":[0,55],"3":[160,17],"4":[0,4],"5":[4,0],"6":[4,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[2,2],"22":[0,4],"23":[0,4],"24":[2,2],"25":[0,4],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0]},"f":{"1":55,"2":4,"3":0,"4":0,"5":0,"6":0,"7":4,"8":0,"9":0,"10":0},"fnMap":{"1":{"name":"log","line":56,"loc":{"start":{"line":56,"column":0},"end":{"line":56,"column":14}}},"2":{"name":"disconnect","line":76,"loc":{"start":{"line":76,"column":0},"end":{"line":76,"column":23}}},"3":{"name":"serve","line":93,"loc":{"start":{"line":93,"column":0},"end":{"line":93,"column":29}}},"4":{"name":"(anonymous_4)","line":108,"loc":{"start":{"line":108,"column":17},"end":{"line":108,"column":27}}},"5":{"name":"serveNet","line":123,"loc":{"start":{"line":123,"column":0},"end":{"line":123,"column":45}}},"6":{"name":"(anonymous_6)","line":176,"loc":{"start":{"line":176,"column":17},"end":{"line":176,"column":27}}},"7":{"name":"connect","line":196,"loc":{"start":{"line":196,"column":0},"end":{"line":196,"column":34}}},"8":{"name":"(anonymous_8)","line":203,"loc":{"start":{"line":203,"column":17},"end":{"line":203,"column":27}}},"9":{"name":"connectNet","line":245,"loc":{"start":{"line":245,"column":0},"end":{"line":245,"column":42}}},"10":{"name":"(anonymous_10)","line":290,"loc":{"start":{"line":290,"column":17},"end":{"line":290,"column":27}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":8,"column":51}},"2":{"start":{"line":10,"column":0},"end":{"line":20,"column":2}},"3":{"start":{"line":22,"column":0},"end":{"line":24,"column":11}},"4":{"start":{"line":26,"column":0},"end":{"line":42,"column":1}},"5":{"start":{"line":44,"column":0},"end":{"line":54,"column":1}},"6":{"start":{"line":56,"column":0},"end":{"line":74,"column":1}},"7":{"start":{"line":57,"column":4},"end":{"line":59,"column":5}},"8":{"start":{"line":58,"column":8},"end":{"line":58,"column":15}},"9":{"start":{"line":61,"column":4},"end":{"line":61,"column":51}},"10":{"start":{"line":63,"column":4},"end":{"line":69,"column":5}},"11":{"start":{"line":64,"column":8},"end":{"line":66,"column":9}},"12":{"start":{"line":65,"column":12},"end":{"line":65,"column":21}},"13":{"start":{"line":68,"column":8},"end":{"line":68,"column":52}},"14":{"start":{"line":71,"column":4},"end":{"line":73,"column":6}},"15":{"start":{"line":76,"column":0},"end":{"line":91,"column":1}},"16":{"start":{"line":77,"column":4},"end":{"line":79,"column":5}},"17":{"start":{"line":78,"column":8},"end":{"line":78,"column":15}},"18":{"start":{"line":81,"column":4},"end":{"line":81,"column":40}},"19":{"start":{"line":83,"column":4},"end":{"line":83,"column":24}},"20":{"start":{"line":84,"column":4},"end":{"line":88,"column":5}},"21":{"start":{"line":85,"column":8},"end":{"line":87,"column":9}},"22":{"start":{"line":86,"column":12},"end":{"line":86,"column":40}},"23":{"start":{"line":90,"column":4},"end":{"line":90,"column":22}},"24":{"start":{"line":93,"column":0},"end":{"line":121,"column":1}},"25":{"start":{"line":94,"column":4},"end":{"line":97,"column":5}},"26":{"start":{"line":95,"column":8},"end":{"line":95,"column":22}},"27":{"start":{"line":96,"column":8},"end":{"line":96,"column":19}},"28":{"start":{"line":98,"column":4},"end":{"line":105,"column":5}},"29":{"start":{"line":99,"column":8},"end":{"line":103,"column":10}},"30":{"start":{"line":104,"column":8},"end":{"line":104,"column":69}},"31":{"start":{"line":107,"column":4},"end":{"line":109,"column":5}},"32":{"start":{"line":108,"column":8},"end":{"line":108,"column":30}},"33":{"start":{"line":111,"column":4},"end":{"line":115,"column":6}},"34":{"start":{"line":117,"column":4},"end":{"line":120,"column":6}},"35":{"start":{"line":123,"column":0},"end":{"line":194,"column":1}},"36":{"start":{"line":124,"column":4},"end":{"line":129,"column":5}},"37":{"start":{"line":125,"column":8},"end":{"line":125,"column":25}},"38":{"start":{"line":126,"column":8},"end":{"line":126,"column":21}},"39":{"start":{"line":127,"column":8},"end":{"line":127,"column":18}},"40":{"start":{"line":128,"column":8},"end":{"line":128,"column":19}},"41":{"start":{"line":130,"column":4},"end":{"line":135,"column":5}},"42":{"start":{"line":131,"column":8},"end":{"line":131,"column":22}},"43":{"start":{"line":132,"column":8},"end":{"line":132,"column":22}},"44":{"start":{"line":133,"column":8},"end":{"line":133,"column":19}},"45":{"start":{"line":134,"column":8},"end":{"line":134,"column":19}},"46":{"start":{"line":136,"column":4},"end":{"line":143,"column":5}},"47":{"start":{"line":137,"column":8},"end":{"line":141,"column":10}},"48":{"start":{"line":142,"column":8},"end":{"line":142,"column":36}},"49":{"start":{"line":144,"column":4},"end":{"line":149,"column":5}},"50":{"start":{"line":145,"column":8},"end":{"line":145,"column":22}},"51":{"start":{"line":146,"column":8},"end":{"line":146,"column":35}},"52":{"start":{"line":147,"column":8},"end":{"line":147,"column":19}},"53":{"start":{"line":148,"column":8},"end":{"line":148,"column":36}},"54":{"start":{"line":151,"column":4},"end":{"line":155,"column":5}},"55":{"start":{"line":152,"column":8},"end":{"line":152,"column":25}},"56":{"start":{"line":153,"column":8},"end":{"line":153,"column":21}},"57":{"start":{"line":154,"column":8},"end":{"line":154,"column":19}},"58":{"start":{"line":156,"column":4},"end":{"line":160,"column":5}},"59":{"start":{"line":157,"column":8},"end":{"line":157,"column":22}},"60":{"start":{"line":158,"column":8},"end":{"line":158,"column":22}},"61":{"start":{"line":159,"column":8},"end":{"line":159,"column":19}},"62":{"start":{"line":161,"column":4},"end":{"line":168,"column":5}},"63":{"start":{"line":162,"column":8},"end":{"line":166,"column":10}},"64":{"start":{"line":167,"column":8},"end":{"line":167,"column":36}},"65":{"start":{"line":170,"column":4},"end":{"line":173,"column":5}},"66":{"start":{"line":171,"column":8},"end":{"line":171,"column":25}},"67":{"start":{"line":172,"column":8},"end":{"line":172,"column":22}},"68":{"start":{"line":175,"column":4},"end":{"line":177,"column":5}},"69":{"start":{"line":176,"column":8},"end":{"line":176,"column":30}},"70":{"start":{"line":179,"column":4},"end":{"line":184,"column":6}},"71":{"start":{"line":186,"column":4},"end":{"line":188,"column":5}},"72":{"start":{"line":187,"column":8},"end":{"line":187,"column":33}},"73":{"start":{"line":190,"column":4},"end":{"line":193,"column":6}},"74":{"start":{"line":196,"column":0},"end":{"line":243,"column":1}},"75":{"start":{"line":197,"column":4},"end":{"line":200,"column":5}},"76":{"start":{"line":198,"column":8},"end":{"line":198,"column":22}},"77":{"start":{"line":199,"column":8},"end":{"line":199,"column":19}},"78":{"start":{"line":202,"column":4},"end":{"line":204,"column":5}},"79":{"start":{"line":203,"column":8},"end":{"line":203,"column":30}},"80":{"start":{"line":206,"column":4},"end":{"line":212,"column":5}},"81":{"start":{"line":207,"column":8},"end":{"line":210,"column":10}},"82":{"start":{"line":211,"column":8},"end":{"line":211,"column":15}},"83":{"start":{"line":214,"column":4},"end":{"line":221,"column":5}},"84":{"start":{"line":215,"column":8},"end":{"line":219,"column":10}},"85":{"start":{"line":220,"column":8},"end":{"line":220,"column":58}},"86":{"start":{"line":223,"column":4},"end":{"line":234,"column":5}},"87":{"start":{"line":224,"column":8},"end":{"line":232,"column":9}},"88":{"start":{"line":225,"column":12},"end":{"line":229,"column":14}},"89":{"start":{"line":230,"column":12},"end":{"line":230,"column":23}},"90":{"start":{"line":231,"column":12},"end":{"line":231,"column":19}},"91":{"start":{"line":233,"column":8},"end":{"line":233,"column":36}},"92":{"start":{"line":236,"column":4},"end":{"line":236,"column":54}},"93":{"start":{"line":237,"column":4},"end":{"line":237,"column":26}},"94":{"start":{"line":238,"column":4},"end":{"line":238,"column":28}},"95":{"start":{"line":240,"column":4},"end":{"line":240,"column":25}},"96":{"start":{"line":242,"column":4},"end":{"line":242,"column":18}},"97":{"start":{"line":245,"column":0},"end":{"line":314,"column":1}},"98":{"start":{"line":246,"column":4},"end":{"line":252,"column":5}},"99":{"start":{"line":247,"column":8},"end":{"line":250,"column":10}},"100":{"start":{"line":251,"column":8},"end":{"line":251,"column":15}},"101":{"start":{"line":253,"column":4},"end":{"line":257,"column":5}},"102":{"start":{"line":254,"column":8},"end":{"line":254,"column":22}},"103":{"start":{"line":255,"column":8},"end":{"line":255,"column":18}},"104":{"start":{"line":256,"column":8},"end":{"line":256,"column":19}},"105":{"start":{"line":258,"column":4},"end":{"line":262,"column":5}},"106":{"start":{"line":259,"column":8},"end":{"line":259,"column":22}},"107":{"start":{"line":260,"column":8},"end":{"line":260,"column":19}},"108":{"start":{"line":261,"column":8},"end":{"line":261,"column":19}},"109":{"start":{"line":263,"column":4},"end":{"line":270,"column":5}},"110":{"start":{"line":264,"column":8},"end":{"line":268,"column":10}},"111":{"start":{"line":269,"column":8},"end":{"line":269,"column":36}},"112":{"start":{"line":272,"column":4},"end":{"line":275,"column":5}},"113":{"start":{"line":273,"column":8},"end":{"line":273,"column":22}},"114":{"start":{"line":274,"column":8},"end":{"line":274,"column":19}},"115":{"start":{"line":276,"column":4},"end":{"line":283,"column":5}},"116":{"start":{"line":277,"column":8},"end":{"line":281,"column":10}},"117":{"start":{"line":282,"column":8},"end":{"line":282,"column":36}},"118":{"start":{"line":285,"column":4},"end":{"line":288,"column":5}},"119":{"start":{"line":286,"column":8},"end":{"line":286,"column":25}},"120":{"start":{"line":287,"column":8},"end":{"line":287,"column":23}},"121":{"start":{"line":289,"column":4},"end":{"line":291,"column":5}},"122":{"start":{"line":290,"column":8},"end":{"line":290,"column":30}},"123":{"start":{"line":293,"column":4},"end":{"line":304,"column":5}},"124":{"start":{"line":294,"column":8},"end":{"line":302,"column":9}},"125":{"start":{"line":295,"column":12},"end":{"line":299,"column":14}},"126":{"start":{"line":300,"column":12},"end":{"line":300,"column":23}},"127":{"start":{"line":301,"column":12},"end":{"line":301,"column":19}},"128":{"start":{"line":303,"column":8},"end":{"line":303,"column":36}},"129":{"start":{"line":306,"column":4},"end":{"line":306,"column":54}},"130":{"start":{"line":307,"column":4},"end":{"line":307,"column":26}},"131":{"start":{"line":308,"column":4},"end":{"line":308,"column":28}},"132":{"start":{"line":309,"column":4},"end":{"line":309,"column":28}},"133":{"start":{"line":311,"column":4},"end":{"line":311,"column":25}},"134":{"start":{"line":313,"column":4},"end":{"line":313,"column":18}},"135":{"start":{"line":316,"column":0},"end":{"line":316,"column":19}}},"branchMap":{"1":{"line":29,"type":"cond-expr","locations":[{"start":{"line":29,"column":40},"end":{"line":29,"column":45}},{"start":{"line":29,"column":48},"end":{"line":29,"column":59}}]},"2":{"line":57,"type":"if","locations":[{"start":{"line":57,"column":4},"end":{"line":57,"column":4}},{"start":{"line":57,"column":4},"end":{"line":57,"column":4}}]},"3":{"line":64,"type":"if","locations":[{"start":{"line":64,"column":8},"end":{"line":64,"column":8}},{"start":{"line":64,"column":8},"end":{"line":64,"column":8}}]},"4":{"line":77,"type":"if","locations":[{"start":{"line":77,"column":4},"end":{"line":77,"column":4}},{"start":{"line":77,"column":4},"end":{"line":77,"column":4}}]},"5":{"line":84,"type":"if","locations":[{"start":{"line":84,"column":4},"end":{"line":84,"column":4}},{"start":{"line":84,"column":4},"end":{"line":84,"column":4}}]},"6":{"line":85,"type":"if","locations":[{"start":{"line":85,"column":8},"end":{"line":85,"column":8}},{"start":{"line":85,"column":8},"end":{"line":85,"column":8}}]},"7":{"line":94,"type":"if","locations":[{"start":{"line":94,"column":4},"end":{"line":94,"column":4}},{"start":{"line":94,"column":4},"end":{"line":94,"column":4}}]},"8":{"line":98,"type":"if","locations":[{"start":{"line":98,"column":4},"end":{"line":98,"column":4}},{"start":{"line":98,"column":4},"end":{"line":98,"column":4}}]},"9":{"line":107,"type":"if","locations":[{"start":{"line":107,"column":4},"end":{"line":107,"column":4}},{"start":{"line":107,"column":4},"end":{"line":107,"column":4}}]},"10":{"line":124,"type":"if","locations":[{"start":{"line":124,"column":4},"end":{"line":124,"column":4}},{"start":{"line":124,"column":4},"end":{"line":124,"column":4}}]},"11":{"line":130,"type":"if","locations":[{"start":{"line":130,"column":4},"end":{"line":130,"column":4}},{"start":{"line":130,"column":4},"end":{"line":130,"column":4}}]},"12":{"line":136,"type":"if","locations":[{"start":{"line":136,"column":4},"end":{"line":136,"column":4}},{"start":{"line":136,"column":4},"end":{"line":136,"column":4}}]},"13":{"line":144,"type":"if","locations":[{"start":{"line":144,"column":4},"end":{"line":144,"column":4}},{"start":{"line":144,"column":4},"end":{"line":144,"column":4}}]},"14":{"line":144,"type":"binary-expr","locations":[{"start":{"line":144,"column":7},"end":{"line":144,"column":33}},{"start":{"line":144,"column":37},"end":{"line":144,"column":63}}]},"15":{"line":151,"type":"if","locations":[{"start":{"line":151,"column":4},"end":{"line":151,"column":4}},{"start":{"line":151,"column":4},"end":{"line":151,"column":4}}]},"16":{"line":156,"type":"if","locations":[{"start":{"line":156,"column":4},"end":{"line":156,"column":4}},{"start":{"line":156,"column":4},"end":{"line":156,"column":4}}]},"17":{"line":161,"type":"if","locations":[{"start":{"line":161,"column":4},"end":{"line":161,"column":4}},{"start":{"line":161,"column":4},"end":{"line":161,"column":4}}]},"18":{"line":170,"type":"if","locations":[{"start":{"line":170,"column":4},"end":{"line":170,"column":4}},{"start":{"line":170,"column":4},"end":{"line":170,"column":4}}]},"19":{"line":175,"type":"if","locations":[{"start":{"line":175,"column":4},"end":{"line":175,"column":4}},{"start":{"line":175,"column":4},"end":{"line":175,"column":4}}]},"20":{"line":186,"type":"if","locations":[{"start":{"line":186,"column":4},"end":{"line":186,"column":4}},{"start":{"line":186,"column":4},"end":{"line":186,"column":4}}]},"21":{"line":197,"type":"if","locations":[{"start":{"line":197,"column":4},"end":{"line":197,"column":4}},{"start":{"line":197,"column":4},"end":{"line":197,"column":4}}]},"22":{"line":202,"type":"if","locations":[{"start":{"line":202,"column":4},"end":{"line":202,"column":4}},{"start":{"line":202,"column":4},"end":{"line":202,"column":4}}]},"23":{"line":206,"type":"if","locations":[{"start":{"line":206,"column":4},"end":{"line":206,"column":4}},{"start":{"line":206,"column":4},"end":{"line":206,"column":4}}]},"24":{"line":214,"type":"if","locations":[{"start":{"line":214,"column":4},"end":{"line":214,"column":4}},{"start":{"line":214,"column":4},"end":{"line":214,"column":4}}]},"25":{"line":223,"type":"if","locations":[{"start":{"line":223,"column":4},"end":{"line":223,"column":4}},{"start":{"line":223,"column":4},"end":{"line":223,"column":4}}]},"26":{"line":224,"type":"if","locations":[{"start":{"line":224,"column":8},"end":{"line":224,"column":8}},{"start":{"line":224,"column":8},"end":{"line":224,"column":8}}]},"27":{"line":246,"type":"if","locations":[{"start":{"line":246,"column":4},"end":{"line":246,"column":4}},{"start":{"line":246,"column":4},"end":{"line":246,"column":4}}]},"28":{"line":253,"type":"if","locations":[{"start":{"line":253,"column":4},"end":{"line":253,"column":4}},{"start":{"line":253,"column":4},"end":{"line":253,"column":4}}]},"29":{"line":258,"type":"if","locations":[{"start":{"line":258,"column":4},"end":{"line":258,"column":4}},{"start":{"line":258,"column":4},"end":{"line":258,"column":4}}]},"30":{"line":263,"type":"if","locations":[{"start":{"line":263,"column":4},"end":{"line":263,"column":4}},{"start":{"line":263,"column":4},"end":{"line":263,"column":4}}]},"31":{"line":272,"type":"if","locations":[{"start":{"line":272,"column":4},"end":{"line":272,"column":4}},{"start":{"line":272,"column":4},"end":{"line":272,"column":4}}]},"32":{"line":276,"type":"if","locations":[{"start":{"line":276,"column":4},"end":{"line":276,"column":4}},{"start":{"line":276,"column":4},"end":{"line":276,"column":4}}]},"33":{"line":285,"type":"if","locations":[{"start":{"line":285,"column":4},"end":{"line":285,"column":4}},{"start":{"line":285,"column":4},"end":{"line":285,"column":4}}]},"34":{"line":289,"type":"if","locations":[{"start":{"line":289,"column":4},"end":{"line":289,"column":4}},{"start":{"line":289,"column":4},"end":{"line":289,"column":4}}]},"35":{"line":293,"type":"if","locations":[{"start":{"line":293,"column":4},"end":{"line":293,"column":4}},{"start":{"line":293,"column":4},"end":{"line":293,"column":4}}]},"36":{"line":294,"type":"if","locations":[{"start":{"line":294,"column":8},"end":{"line":294,"column":8}},{"start":{"line":294,"column":8},"end":{"line":294,"column":8}}]}}},"/home/bmiller/git/node-ipc/lib/eventParser.js":{"path":"/home/bmiller/git/node-ipc/lib/eventParser.js","s":{"1":1,"2":1,"3":6,"4":0,"5":6,"6":0,"7":6,"8":6,"9":1,"10":6,"11":6,"12":6,"13":1,"14":1},"b":{"1":[0,6],"2":[0,6]},"f":{"1":6,"2":6},"fnMap":{"1":{"name":"formatData","line":3,"loc":{"start":{"line":3,"column":0},"end":{"line":3,"column":28}}},"2":{"name":"parseDataEvents","line":15,"loc":{"start":{"line":15,"column":0},"end":{"line":15,"column":30}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},"2":{"start":{"line":3,"column":0},"end":{"line":13,"column":1}},"3":{"start":{"line":4,"column":4},"end":{"line":6,"column":5}},"4":{"start":{"line":5,"column":8},"end":{"line":5,"column":24}},"5":{"start":{"line":7,"column":4},"end":{"line":9,"column":5}},"6":{"start":{"line":8,"column":8},"end":{"line":8,"column":24}},"7":{"start":{"line":11,"column":4},"end":{"line":11,"column":42}},"8":{"start":{"line":12,"column":4},"end":{"line":12,"column":19}},"9":{"start":{"line":15,"column":0},"end":{"line":19,"column":1}},"10":{"start":{"line":16,"column":4},"end":{"line":16,"column":44}},"11":{"start":{"line":17,"column":4},"end":{"line":17,"column":17}},"12":{"start":{"line":18,"column":4},"end":{"line":18,"column":18}},"13":{"start":{"line":21,"column":0},"end":{"line":25,"column":1}},"14":{"start":{"line":27,"column":0},"end":{"line":27,"column":22}}},"branchMap":{"1":{"line":4,"type":"if","locations":[{"start":{"line":4,"column":4},"end":{"line":4,"column":4}},{"start":{"line":4,"column":4},"end":{"line":4,"column":4}}]},"2":{"line":7,"type":"if","locations":[{"start":{"line":7,"column":4},"end":{"line":7,"column":4}},{"start":{"line":7,"column":4},"end":{"line":7,"column":4}}]}}},"/home/bmiller/git/node-ipc/lib/client.js":{"path":"/home/bmiller/git/node-ipc/lib/client.js","s":{"1":1,"2":1,"3":4,"4":4,"5":4,"6":1,"7":6,"8":6,"9":6,"10":6,"11":6,"12":0,"13":6,"14":6,"15":1,"16":1,"17":5,"18":1,"19":5,"20":5,"21":1,"22":7,"23":7,"24":7,"25":0,"26":0,"27":7,"28":7,"29":7,"30":7,"31":0,"32":0,"33":0,"34":7,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":7,"53":7,"54":5,"55":5,"56":7,"57":2,"58":2,"59":2,"60":7,"61":6,"62":6,"63":3,"64":3,"65":3,"66":3,"67":3,"68":3,"69":3,"70":3,"71":3,"72":3,"73":3,"74":3,"75":3,"76":3,"77":1,"78":3,"79":7,"80":6,"81":6,"82":0,"83":0,"84":0,"85":0,"86":0,"87":6,"88":6,"89":6,"90":6,"91":0,"92":0,"93":6,"94":6,"95":6,"96":6,"97":6,"98":6,"99":6,"100":6,"101":5,"102":0,"103":5,"104":1},"b":{"1":[4,0],"2":[0,6],"3":[1,5],"4":[0,7],"5":[7,0],"6":[0,7],"7":[7,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[3,3],"14":[6,4],"15":[1,2],"16":[0,6],"17":[0,0],"18":[6,0],"19":[0,6],"20":[6,6],"21":[0,5]},"f":{"1":4,"2":6,"3":5,"4":7,"5":5,"6":2,"7":6,"8":3,"9":3,"10":3,"11":6},"fnMap":{"1":{"name":"init","line":9,"loc":{"start":{"line":9,"column":0},"end":{"line":9,"column":25}}},"2":{"name":"emit","line":24,"loc":{"start":{"line":24,"column":0},"end":{"line":24,"column":24}}},"3":{"name":"syncEmit","line":47,"loc":{"start":{"line":47,"column":0},"end":{"line":47,"column":26}}},"4":{"name":"connect","line":52,"loc":{"start":{"line":52,"column":0},"end":{"line":52,"column":18}}},"5":{"name":"(anonymous_5)","line":119,"loc":{"start":{"line":119,"column":8},"end":{"line":119,"column":21}}},"6":{"name":"(anonymous_6)","line":128,"loc":{"start":{"line":128,"column":8},"end":{"line":128,"column":18}}},"7":{"name":"(anonymous_7)","line":137,"loc":{"start":{"line":137,"column":8},"end":{"line":137,"column":18}}},"8":{"name":"(anonymous_8)","line":162,"loc":{"start":{"line":162,"column":20},"end":{"line":162,"column":36}}},"9":{"name":"(anonymous_9)","line":163,"loc":{"start":{"line":163,"column":31},"end":{"line":163,"column":41}}},"10":{"name":"(anonymous_10)","line":168,"loc":{"start":{"line":168,"column":32},"end":{"line":168,"column":42}}},"11":{"name":"(anonymous_11)","line":186,"loc":{"start":{"line":186,"column":8},"end":{"line":186,"column":23}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":7,"column":38}},"2":{"start":{"line":9,"column":0},"end":{"line":22,"column":1}},"3":{"start":{"line":10,"column":4},"end":{"line":18,"column":5}},"4":{"start":{"line":19,"column":4},"end":{"line":19,"column":23}},"5":{"start":{"line":21,"column":4},"end":{"line":21,"column":18}},"6":{"start":{"line":24,"column":0},"end":{"line":45,"column":1}},"7":{"start":{"line":25,"column":4},"end":{"line":25,"column":109}},"8":{"start":{"line":27,"column":4},"end":{"line":27,"column":28}},"9":{"start":{"line":28,"column":4},"end":{"line":28,"column":22}},"10":{"start":{"line":29,"column":4},"end":{"line":29,"column":22}},"11":{"start":{"line":31,"column":4},"end":{"line":35,"column":5}},"12":{"start":{"line":32,"column":8},"end":{"line":32,"column":47}},"13":{"start":{"line":34,"column":8},"end":{"line":34,"column":44}},"14":{"start":{"line":37,"column":4},"end":{"line":40,"column":5}},"15":{"start":{"line":38,"column":8},"end":{"line":38,"column":35}},"16":{"start":{"line":39,"column":8},"end":{"line":39,"column":15}},"17":{"start":{"line":42,"column":4},"end":{"line":44,"column":6}},"18":{"start":{"line":47,"column":0},"end":{"line":50,"column":1}},"19":{"start":{"line":48,"column":4},"end":{"line":48,"column":102}},"20":{"start":{"line":49,"column":4},"end":{"line":49,"column":31}},"21":{"start":{"line":52,"column":0},"end":{"line":233,"column":1}},"22":{"start":{"line":54,"column":4},"end":{"line":54,"column":20}},"23":{"start":{"line":56,"column":4},"end":{"line":56,"column":91}},"24":{"start":{"line":57,"column":4},"end":{"line":60,"column":5}},"25":{"start":{"line":58,"column":8},"end":{"line":58,"column":136}},"26":{"start":{"line":59,"column":8},"end":{"line":59,"column":15}},"27":{"start":{"line":62,"column":4},"end":{"line":113,"column":5}},"28":{"start":{"line":63,"column":8},"end":{"line":63,"column":85}},"29":{"start":{"line":65,"column":8},"end":{"line":65,"column":31}},"30":{"start":{"line":67,"column":8},"end":{"line":71,"column":9}},"31":{"start":{"line":68,"column":12},"end":{"line":68,"column":43}},"32":{"start":{"line":69,"column":12},"end":{"line":69,"column":44}},"33":{"start":{"line":70,"column":12},"end":{"line":70,"column":39}},"34":{"start":{"line":72,"column":8},"end":{"line":76,"column":10}},"35":{"start":{"line":78,"column":8},"end":{"line":112,"column":9}},"36":{"start":{"line":79,"column":12},"end":{"line":79,"column":96}},"37":{"start":{"line":80,"column":12},"end":{"line":85,"column":14}},"38":{"start":{"line":87,"column":12},"end":{"line":87,"column":114}},"39":{"start":{"line":88,"column":12},"end":{"line":90,"column":13}},"40":{"start":{"line":89,"column":16},"end":{"line":89,"column":81}},"41":{"start":{"line":91,"column":12},"end":{"line":93,"column":13}},"42":{"start":{"line":92,"column":16},"end":{"line":92,"column":81}},"43":{"start":{"line":94,"column":12},"end":{"line":104,"column":13}},"44":{"start":{"line":95,"column":16},"end":{"line":97,"column":17}},"45":{"start":{"line":96,"column":20},"end":{"line":96,"column":96}},"46":{"start":{"line":98,"column":16},"end":{"line":98,"column":40}},"47":{"start":{"line":99,"column":16},"end":{"line":103,"column":17}},"48":{"start":{"line":100,"column":20},"end":{"line":102,"column":22}},"49":{"start":{"line":106,"column":12},"end":{"line":106,"column":47}},"50":{"start":{"line":107,"column":12},"end":{"line":107,"column":47}},"51":{"start":{"line":109,"column":12},"end":{"line":111,"column":14}},"52":{"start":{"line":115,"column":4},"end":{"line":115,"column":52}},"53":{"start":{"line":117,"column":4},"end":{"line":124,"column":6}},"54":{"start":{"line":120,"column":12},"end":{"line":120,"column":57}},"55":{"start":{"line":121,"column":12},"end":{"line":121,"column":41}},"56":{"start":{"line":126,"column":4},"end":{"line":133,"column":6}},"57":{"start":{"line":129,"column":12},"end":{"line":129,"column":38}},"58":{"start":{"line":130,"column":12},"end":{"line":130,"column":61}},"59":{"start":{"line":131,"column":12},"end":{"line":131,"column":41}},"60":{"start":{"line":135,"column":4},"end":{"line":182,"column":6}},"61":{"start":{"line":138,"column":12},"end":{"line":138,"column":167}},"62":{"start":{"line":140,"column":12},"end":{"line":156,"column":13}},"63":{"start":{"line":144,"column":16},"end":{"line":144,"column":45}},"64":{"start":{"line":145,"column":16},"end":{"line":149,"column":18}},"65":{"start":{"line":151,"column":16},"end":{"line":151,"column":40}},"66":{"start":{"line":152,"column":16},"end":{"line":152,"column":42}},"67":{"start":{"line":153,"column":16},"end":{"line":153,"column":33}},"68":{"start":{"line":155,"column":16},"end":{"line":155,"column":23}},"69":{"start":{"line":158,"column":12},"end":{"line":158,"column":35}},"70":{"start":{"line":160,"column":12},"end":{"line":178,"column":14}},"71":{"start":{"line":163,"column":24},"end":{"line":174,"column":25}},"72":{"start":{"line":164,"column":28},"end":{"line":164,"column":54}},"73":{"start":{"line":165,"column":28},"end":{"line":165,"column":52}},"74":{"start":{"line":166,"column":28},"end":{"line":166,"column":45}},"75":{"start":{"line":167,"column":28},"end":{"line":173,"column":29}},"76":{"start":{"line":169,"column":36},"end":{"line":170,"column":89}},"77":{"start":{"line":170,"column":40},"end":{"line":170,"column":89}},"78":{"start":{"line":180,"column":12},"end":{"line":180,"column":41}},"79":{"start":{"line":184,"column":4},"end":{"line":232,"column":6}},"80":{"start":{"line":187,"column":12},"end":{"line":187,"column":56}},"81":{"start":{"line":188,"column":12},"end":{"line":199,"column":13}},"82":{"start":{"line":189,"column":16},"end":{"line":192,"column":18}},"83":{"start":{"line":193,"column":16},"end":{"line":195,"column":17}},"84":{"start":{"line":194,"column":20},"end":{"line":194,"column":27}},"85":{"start":{"line":197,"column":16},"end":{"line":197,"column":36}},"86":{"start":{"line":198,"column":16},"end":{"line":198,"column":23}},"87":{"start":{"line":201,"column":12},"end":{"line":202,"column":34}},"88":{"start":{"line":202,"column":16},"end":{"line":202,"column":34}},"89":{"start":{"line":204,"column":12},"end":{"line":204,"column":40}},"90":{"start":{"line":206,"column":12},"end":{"line":209,"column":13}},"91":{"start":{"line":207,"column":16},"end":{"line":207,"column":131}},"92":{"start":{"line":208,"column":16},"end":{"line":208,"column":23}},"93":{"start":{"line":211,"column":12},"end":{"line":211,"column":30}},"94":{"start":{"line":213,"column":12},"end":{"line":213,"column":49}},"95":{"start":{"line":214,"column":12},"end":{"line":214,"column":39}},"96":{"start":{"line":215,"column":12},"end":{"line":224,"column":13}},"97":{"start":{"line":216,"column":16},"end":{"line":216,"column":40}},"98":{"start":{"line":217,"column":16},"end":{"line":217,"column":40}},"99":{"start":{"line":219,"column":16},"end":{"line":219,"column":94}},"100":{"start":{"line":220,"column":16},"end":{"line":223,"column":18}},"101":{"start":{"line":226,"column":12},"end":{"line":228,"column":13}},"102":{"start":{"line":227,"column":16},"end":{"line":227,"column":23}},"103":{"start":{"line":230,"column":12},"end":{"line":230,"column":32}},"104":{"start":{"line":235,"column":0},"end":{"line":235,"column":20}}},"branchMap":{"1":{"line":17,"type":"binary-expr","locations":[{"start":{"line":17,"column":25},"end":{"line":17,"column":42}},{"start":{"line":17,"column":44},"end":{"line":17,"column":45}}]},"2":{"line":31,"type":"if","locations":[{"start":{"line":31,"column":4},"end":{"line":31,"column":4}},{"start":{"line":31,"column":4},"end":{"line":31,"column":4}}]},"3":{"line":37,"type":"if","locations":[{"start":{"line":37,"column":4},"end":{"line":37,"column":4}},{"start":{"line":37,"column":4},"end":{"line":37,"column":4}}]},"4":{"line":57,"type":"if","locations":[{"start":{"line":57,"column":4},"end":{"line":57,"column":4}},{"start":{"line":57,"column":4},"end":{"line":57,"column":4}}]},"5":{"line":62,"type":"if","locations":[{"start":{"line":62,"column":4},"end":{"line":62,"column":4}},{"start":{"line":62,"column":4},"end":{"line":62,"column":4}}]},"6":{"line":67,"type":"if","locations":[{"start":{"line":67,"column":8},"end":{"line":67,"column":8}},{"start":{"line":67,"column":8},"end":{"line":67,"column":8}}]},"7":{"line":67,"type":"binary-expr","locations":[{"start":{"line":67,"column":12},"end":{"line":67,"column":39}},{"start":{"line":67,"column":43},"end":{"line":67,"column":83}}]},"8":{"line":78,"type":"if","locations":[{"start":{"line":78,"column":8},"end":{"line":78,"column":8}},{"start":{"line":78,"column":8},"end":{"line":78,"column":8}}]},"9":{"line":88,"type":"if","locations":[{"start":{"line":88,"column":12},"end":{"line":88,"column":12}},{"start":{"line":88,"column":12},"end":{"line":88,"column":12}}]},"10":{"line":91,"type":"if","locations":[{"start":{"line":91,"column":12},"end":{"line":91,"column":12}},{"start":{"line":91,"column":12},"end":{"line":91,"column":12}}]},"11":{"line":94,"type":"if","locations":[{"start":{"line":94,"column":12},"end":{"line":94,"column":12}},{"start":{"line":94,"column":12},"end":{"line":94,"column":12}}]},"12":{"line":95,"type":"if","locations":[{"start":{"line":95,"column":16},"end":{"line":95,"column":16}},{"start":{"line":95,"column":16},"end":{"line":95,"column":16}}]},"13":{"line":140,"type":"if","locations":[{"start":{"line":140,"column":12},"end":{"line":140,"column":12}},{"start":{"line":140,"column":12},"end":{"line":140,"column":12}}]},"14":{"line":141,"type":"binary-expr","locations":[{"start":{"line":141,"column":16},"end":{"line":141,"column":42}},{"start":{"line":141,"column":46},"end":{"line":141,"column":71}}]},"15":{"line":169,"type":"if","locations":[{"start":{"line":169,"column":36},"end":{"line":169,"column":36}},{"start":{"line":169,"column":36},"end":{"line":169,"column":36}}]},"16":{"line":188,"type":"if","locations":[{"start":{"line":188,"column":12},"end":{"line":188,"column":12}},{"start":{"line":188,"column":12},"end":{"line":188,"column":12}}]},"17":{"line":193,"type":"if","locations":[{"start":{"line":193,"column":16},"end":{"line":193,"column":16}},{"start":{"line":193,"column":16},"end":{"line":193,"column":16}}]},"18":{"line":201,"type":"if","locations":[{"start":{"line":201,"column":12},"end":{"line":201,"column":12}},{"start":{"line":201,"column":12},"end":{"line":201,"column":12}}]},"19":{"line":206,"type":"if","locations":[{"start":{"line":206,"column":12},"end":{"line":206,"column":12}},{"start":{"line":206,"column":12},"end":{"line":206,"column":12}}]},"20":{"line":206,"type":"binary-expr","locations":[{"start":{"line":206,"column":15},"end":{"line":206,"column":52}},{"start":{"line":206,"column":56},"end":{"line":206,"column":97}}]},"21":{"line":226,"type":"if","locations":[{"start":{"line":226,"column":12},"end":{"line":226,"column":12}},{"start":{"line":226,"column":12},"end":{"line":226,"column":12}}]}}},"/home/bmiller/git/node-ipc/lib/socketServer.js":{"path":"/home/bmiller/git/node-ipc/lib/socketServer.js","s":{"1":1,"2":1,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":1,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":1,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":1,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":1,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":1,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":1},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0},"fnMap":{"1":{"name":"emit","line":9,"loc":{"start":{"line":9,"column":0},"end":{"line":9,"column":33}}},"2":{"name":"broadcast","line":40,"loc":{"start":{"line":40,"column":0},"end":{"line":40,"column":29}}},"3":{"name":"init","line":63,"loc":{"start":{"line":63,"column":0},"end":{"line":63,"column":35}}},"4":{"name":"(anonymous_4)","line":75,"loc":{"start":{"line":75,"column":26},"end":{"line":75,"column":42}}},"5":{"name":"(anonymous_5)","line":81,"loc":{"start":{"line":81,"column":13},"end":{"line":81,"column":23}}},"6":{"name":"(anonymous_6)","line":84,"loc":{"start":{"line":84,"column":26},"end":{"line":84,"column":36}}},"7":{"name":"(anonymous_7)","line":93,"loc":{"start":{"line":93,"column":20},"end":{"line":93,"column":36}}},"8":{"name":"(anonymous_8)","line":94,"loc":{"start":{"line":94,"column":31},"end":{"line":94,"column":43}}},"9":{"name":"UDPWrite","line":134,"loc":{"start":{"line":134,"column":32},"end":{"line":134,"column":65}}},"10":{"name":"(anonymous_10)","line":142,"loc":{"start":{"line":142,"column":40},"end":{"line":142,"column":61}}},"11":{"name":"(anonymous_11)","line":147,"loc":{"start":{"line":147,"column":52},"end":{"line":147,"column":65}}},"12":{"name":"(anonymous_12)","line":162,"loc":{"start":{"line":162,"column":36},"end":{"line":162,"column":48}}},"13":{"name":"(anonymous_13)","line":170,"loc":{"start":{"line":170,"column":32},"end":{"line":170,"column":45}}},"14":{"name":"serverCreated","line":182,"loc":{"start":{"line":182,"column":28},"end":{"line":182,"column":59}}},"15":{"name":"(anonymous_15)","line":191,"loc":{"start":{"line":191,"column":36},"end":{"line":191,"column":52}}},"16":{"name":"(anonymous_16)","line":201,"loc":{"start":{"line":201,"column":36},"end":{"line":201,"column":49}}},"17":{"name":"(anonymous_17)","line":210,"loc":{"start":{"line":210,"column":36},"end":{"line":210,"column":60}}},"18":{"name":"(anonymous_18)","line":256,"loc":{"start":{"line":256,"column":36},"end":{"line":256,"column":56}}},"19":{"name":"started","line":281,"loc":{"start":{"line":281,"column":28},"end":{"line":281,"column":52}}},"20":{"name":"(anonymous_20)","line":334,"loc":{"start":{"line":334,"column":8},"end":{"line":334,"column":18}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":7,"column":36}},"2":{"start":{"line":9,"column":0},"end":{"line":38,"column":1}},"3":{"start":{"line":10,"column":4},"end":{"line":10,"column":74}},"4":{"start":{"line":12,"column":4},"end":{"line":12,"column":28}},"5":{"start":{"line":13,"column":4},"end":{"line":13,"column":22}},"6":{"start":{"line":14,"column":4},"end":{"line":14,"column":22}},"7":{"start":{"line":16,"column":4},"end":{"line":20,"column":5}},"8":{"start":{"line":17,"column":8},"end":{"line":17,"column":47}},"9":{"start":{"line":19,"column":8},"end":{"line":19,"column":44}},"10":{"start":{"line":22,"column":4},"end":{"line":35,"column":5}},"11":{"start":{"line":24,"column":8},"end":{"line":28,"column":9}},"12":{"start":{"line":25,"column":12},"end":{"line":25,"column":166}},"13":{"start":{"line":26,"column":12},"end":{"line":26,"column":38}},"14":{"start":{"line":27,"column":12},"end":{"line":27,"column":19}},"15":{"start":{"line":30,"column":8},"end":{"line":33,"column":10}},"16":{"start":{"line":34,"column":8},"end":{"line":34,"column":15}},"17":{"start":{"line":37,"column":4},"end":{"line":37,"column":26}},"18":{"start":{"line":40,"column":0},"end":{"line":61,"column":1}},"19":{"start":{"line":41,"column":4},"end":{"line":41,"column":143}},"20":{"start":{"line":42,"column":4},"end":{"line":42,"column":28}},"21":{"start":{"line":43,"column":4},"end":{"line":43,"column":22}},"22":{"start":{"line":44,"column":4},"end":{"line":44,"column":22}},"23":{"start":{"line":46,"column":4},"end":{"line":50,"column":5}},"24":{"start":{"line":47,"column":8},"end":{"line":47,"column":47}},"25":{"start":{"line":49,"column":8},"end":{"line":49,"column":44}},"26":{"start":{"line":52,"column":4},"end":{"line":60,"column":5}},"27":{"start":{"line":53,"column":8},"end":{"line":55,"column":9}},"28":{"start":{"line":54,"column":12},"end":{"line":54,"column":55}},"29":{"start":{"line":57,"column":8},"end":{"line":59,"column":9}},"30":{"start":{"line":58,"column":12},"end":{"line":58,"column":43}},"31":{"start":{"line":63,"column":0},"end":{"line":362,"column":1}},"32":{"start":{"line":64,"column":4},"end":{"line":328,"column":6}},"33":{"start":{"line":76,"column":12},"end":{"line":79,"column":14}},"34":{"start":{"line":82,"column":12},"end":{"line":82,"column":34}},"35":{"start":{"line":85,"column":12},"end":{"line":88,"column":13}},"36":{"start":{"line":86,"column":16},"end":{"line":86,"column":87}},"37":{"start":{"line":87,"column":16},"end":{"line":87,"column":23}},"38":{"start":{"line":90,"column":12},"end":{"line":326,"column":14}},"39":{"start":{"line":94,"column":24},"end":{"line":323,"column":25}},"40":{"start":{"line":95,"column":28},"end":{"line":95,"column":133}},"41":{"start":{"line":97,"column":28},"end":{"line":166,"column":29}},"42":{"start":{"line":98,"column":32},"end":{"line":132,"column":33}},"43":{"start":{"line":99,"column":36},"end":{"line":101,"column":38}},"44":{"start":{"line":103,"column":36},"end":{"line":103,"column":94}},"45":{"start":{"line":104,"column":36},"end":{"line":108,"column":37}},"46":{"start":{"line":105,"column":40},"end":{"line":105,"column":105}},"47":{"start":{"line":107,"column":40},"end":{"line":107,"column":135}},"48":{"start":{"line":109,"column":36},"end":{"line":113,"column":37}},"49":{"start":{"line":110,"column":40},"end":{"line":110,"column":105}},"50":{"start":{"line":112,"column":40},"end":{"line":112,"column":128}},"51":{"start":{"line":114,"column":36},"end":{"line":116,"column":37}},"52":{"start":{"line":115,"column":40},"end":{"line":115,"column":109}},"53":{"start":{"line":117,"column":36},"end":{"line":127,"column":37}},"54":{"start":{"line":118,"column":40},"end":{"line":120,"column":41}},"55":{"start":{"line":119,"column":44},"end":{"line":119,"column":120}},"56":{"start":{"line":121,"column":40},"end":{"line":121,"column":64}},"57":{"start":{"line":122,"column":40},"end":{"line":126,"column":41}},"58":{"start":{"line":123,"column":44},"end":{"line":125,"column":46}},"59":{"start":{"line":128,"column":36},"end":{"line":131,"column":38}},"60":{"start":{"line":134,"column":32},"end":{"line":154,"column":33}},"61":{"start":{"line":135,"column":36},"end":{"line":135,"column":89}},"62":{"start":{"line":136,"column":36},"end":{"line":153,"column":38}},"63":{"start":{"line":143,"column":44},"end":{"line":151,"column":45}},"64":{"start":{"line":144,"column":48},"end":{"line":144,"column":100}},"65":{"start":{"line":145,"column":48},"end":{"line":150,"column":50}},"66":{"start":{"line":148,"column":56},"end":{"line":148,"column":84}},"67":{"start":{"line":156,"column":32},"end":{"line":158,"column":34}},"68":{"start":{"line":159,"column":32},"end":{"line":159,"column":61}},"69":{"start":{"line":160,"column":32},"end":{"line":165,"column":34}},"70":{"start":{"line":163,"column":40},"end":{"line":163,"column":68}},"71":{"start":{"line":168,"column":28},"end":{"line":178,"column":30}},"72":{"start":{"line":171,"column":36},"end":{"line":171,"column":72}},"73":{"start":{"line":173,"column":36},"end":{"line":176,"column":37}},"74":{"start":{"line":180,"column":28},"end":{"line":180,"column":86}},"75":{"start":{"line":182,"column":28},"end":{"line":279,"column":29}},"76":{"start":{"line":183,"column":32},"end":{"line":183,"column":60}},"77":{"start":{"line":185,"column":32},"end":{"line":186,"column":79}},"78":{"start":{"line":186,"column":36},"end":{"line":186,"column":79}},"79":{"start":{"line":188,"column":32},"end":{"line":188,"column":97}},"80":{"start":{"line":189,"column":32},"end":{"line":197,"column":34}},"81":{"start":{"line":192,"column":40},"end":{"line":195,"column":42}},"82":{"start":{"line":199,"column":32},"end":{"line":206,"column":34}},"83":{"start":{"line":202,"column":40},"end":{"line":202,"column":83}},"84":{"start":{"line":204,"column":40},"end":{"line":204,"column":68}},"85":{"start":{"line":208,"column":32},"end":{"line":252,"column":34}},"86":{"start":{"line":211,"column":40},"end":{"line":211,"column":100}},"87":{"start":{"line":212,"column":40},"end":{"line":220,"column":41}},"88":{"start":{"line":213,"column":44},"end":{"line":213,"column":80}},"89":{"start":{"line":214,"column":44},"end":{"line":218,"column":46}},"90":{"start":{"line":219,"column":44},"end":{"line":219,"column":51}},"91":{"start":{"line":222,"column":40},"end":{"line":223,"column":62}},"92":{"start":{"line":223,"column":44},"end":{"line":223,"column":62}},"93":{"start":{"line":225,"column":40},"end":{"line":225,"column":68}},"94":{"start":{"line":227,"column":40},"end":{"line":230,"column":41}},"95":{"start":{"line":228,"column":44},"end":{"line":228,"column":159}},"96":{"start":{"line":229,"column":44},"end":{"line":229,"column":51}},"97":{"start":{"line":232,"column":40},"end":{"line":232,"column":58}},"98":{"start":{"line":234,"column":40},"end":{"line":234,"column":69}},"99":{"start":{"line":236,"column":40},"end":{"line":250,"column":41}},"100":{"start":{"line":237,"column":44},"end":{"line":237,"column":68}},"101":{"start":{"line":238,"column":44},"end":{"line":238,"column":71}},"102":{"start":{"line":240,"column":44},"end":{"line":240,"column":116}},"103":{"start":{"line":242,"column":44},"end":{"line":243,"column":72}},"104":{"start":{"line":243,"column":48},"end":{"line":243,"column":72}},"105":{"start":{"line":245,"column":44},"end":{"line":249,"column":46}},"106":{"start":{"line":254,"column":32},"end":{"line":269,"column":34}},"107":{"start":{"line":257,"column":40},"end":{"line":258,"column":51}},"108":{"start":{"line":258,"column":44},"end":{"line":258,"column":51}},"109":{"start":{"line":259,"column":40},"end":{"line":259,"column":123}},"110":{"start":{"line":260,"column":40},"end":{"line":260,"column":49}},"111":{"start":{"line":262,"column":40},"end":{"line":266,"column":41}},"112":{"start":{"line":263,"column":44},"end":{"line":263,"column":79}},"113":{"start":{"line":265,"column":44},"end":{"line":265,"column":64}},"114":{"start":{"line":267,"column":40},"end":{"line":267,"column":71}},"115":{"start":{"line":271,"column":32},"end":{"line":274,"column":34}},"116":{"start":{"line":276,"column":32},"end":{"line":278,"column":33}},"117":{"start":{"line":277,"column":36},"end":{"line":277,"column":43}},"118":{"start":{"line":281,"column":28},"end":{"line":283,"column":29}},"119":{"start":{"line":282,"column":32},"end":{"line":282,"column":54}},"120":{"start":{"line":285,"column":28},"end":{"line":299,"column":29}},"121":{"start":{"line":286,"column":32},"end":{"line":286,"column":106}},"122":{"start":{"line":287,"column":32},"end":{"line":291,"column":15}},"123":{"start":{"line":288,"column":18},"end":{"line":288,"column":63}},"124":{"start":{"line":289,"column":18},"end":{"line":289,"column":64}},"125":{"start":{"line":290,"column":18},"end":{"line":290,"column":59}},"126":{"start":{"line":293,"column":32},"end":{"line":296,"column":34}},"127":{"start":{"line":298,"column":32},"end":{"line":298,"column":39}},"128":{"start":{"line":301,"column":28},"end":{"line":309,"column":29}},"129":{"start":{"line":302,"column":32},"end":{"line":302,"column":113}},"130":{"start":{"line":303,"column":32},"end":{"line":307,"column":34}},"131":{"start":{"line":308,"column":32},"end":{"line":308,"column":39}},"132":{"start":{"line":311,"column":28},"end":{"line":311,"column":107}},"133":{"start":{"line":312,"column":28},"end":{"line":315,"column":30}},"134":{"start":{"line":317,"column":28},"end":{"line":322,"column":30}},"135":{"start":{"line":330,"column":4},"end":{"line":330,"column":23}},"136":{"start":{"line":332,"column":4},"end":{"line":359,"column":6}},"137":{"start":{"line":335,"column":12},"end":{"line":357,"column":13}},"138":{"start":{"line":336,"column":16},"end":{"line":336,"column":45}},"139":{"start":{"line":337,"column":16},"end":{"line":337,"column":44}},"140":{"start":{"line":339,"column":16},"end":{"line":342,"column":17}},"141":{"start":{"line":340,"column":20},"end":{"line":341,"column":33}},"142":{"start":{"line":341,"column":24},"end":{"line":341,"column":33}},"143":{"start":{"line":344,"column":16},"end":{"line":345,"column":47}},"144":{"start":{"line":345,"column":19},"end":{"line":345,"column":47}},"145":{"start":{"line":347,"column":16},"end":{"line":347,"column":88}},"146":{"start":{"line":349,"column":16},"end":{"line":350,"column":37}},"147":{"start":{"line":350,"column":20},"end":{"line":350,"column":37}},"148":{"start":{"line":352,"column":16},"end":{"line":352,"column":43}},"149":{"start":{"line":354,"column":16},"end":{"line":354,"column":81}},"150":{"start":{"line":356,"column":16},"end":{"line":356,"column":23}},"151":{"start":{"line":361,"column":4},"end":{"line":361,"column":18}},"152":{"start":{"line":364,"column":0},"end":{"line":364,"column":20}}},"branchMap":{"1":{"line":16,"type":"if","locations":[{"start":{"line":16,"column":4},"end":{"line":16,"column":4}},{"start":{"line":16,"column":4},"end":{"line":16,"column":4}}]},"2":{"line":22,"type":"if","locations":[{"start":{"line":22,"column":4},"end":{"line":22,"column":4}},{"start":{"line":22,"column":4},"end":{"line":22,"column":4}}]},"3":{"line":22,"type":"binary-expr","locations":[{"start":{"line":22,"column":7},"end":{"line":22,"column":16}},{"start":{"line":22,"column":20},"end":{"line":22,"column":29}}]},"4":{"line":24,"type":"if","locations":[{"start":{"line":24,"column":8},"end":{"line":24,"column":8}},{"start":{"line":24,"column":8},"end":{"line":24,"column":8}}]},"5":{"line":24,"type":"binary-expr","locations":[{"start":{"line":24,"column":11},"end":{"line":24,"column":26}},{"start":{"line":24,"column":30},"end":{"line":24,"column":42}}]},"6":{"line":41,"type":"cond-expr","locations":[{"start":{"line":41,"column":115},"end":{"line":41,"column":124}},{"start":{"line":41,"column":125},"end":{"line":41,"column":127}}]},"7":{"line":46,"type":"if","locations":[{"start":{"line":46,"column":4},"end":{"line":46,"column":4}},{"start":{"line":46,"column":4},"end":{"line":46,"column":4}}]},"8":{"line":52,"type":"if","locations":[{"start":{"line":52,"column":4},"end":{"line":52,"column":4}},{"start":{"line":52,"column":4},"end":{"line":52,"column":4}}]},"9":{"line":52,"type":"binary-expr","locations":[{"start":{"line":52,"column":7},"end":{"line":52,"column":16}},{"start":{"line":52,"column":20},"end":{"line":52,"column":29}}]},"10":{"line":85,"type":"if","locations":[{"start":{"line":85,"column":12},"end":{"line":85,"column":12}},{"start":{"line":85,"column":12},"end":{"line":85,"column":12}}]},"11":{"line":95,"type":"cond-expr","locations":[{"start":{"line":95,"column":103},"end":{"line":95,"column":118}},{"start":{"line":95,"column":119},"end":{"line":95,"column":121}}]},"12":{"line":97,"type":"if","locations":[{"start":{"line":97,"column":28},"end":{"line":97,"column":28}},{"start":{"line":97,"column":28},"end":{"line":97,"column":28}}]},"13":{"line":97,"type":"binary-expr","locations":[{"start":{"line":97,"column":31},"end":{"line":97,"column":43}},{"start":{"line":97,"column":47},"end":{"line":97,"column":59}}]},"14":{"line":98,"type":"if","locations":[{"start":{"line":98,"column":32},"end":{"line":98,"column":32}},{"start":{"line":98,"column":32},"end":{"line":98,"column":32}}]},"15":{"line":104,"type":"if","locations":[{"start":{"line":104,"column":36},"end":{"line":104,"column":36}},{"start":{"line":104,"column":36},"end":{"line":104,"column":36}}]},"16":{"line":109,"type":"if","locations":[{"start":{"line":109,"column":36},"end":{"line":109,"column":36}},{"start":{"line":109,"column":36},"end":{"line":109,"column":36}}]},"17":{"line":114,"type":"if","locations":[{"start":{"line":114,"column":36},"end":{"line":114,"column":36}},{"start":{"line":114,"column":36},"end":{"line":114,"column":36}}]},"18":{"line":117,"type":"if","locations":[{"start":{"line":117,"column":36},"end":{"line":117,"column":36}},{"start":{"line":117,"column":36},"end":{"line":117,"column":36}}]},"19":{"line":118,"type":"if","locations":[{"start":{"line":118,"column":40},"end":{"line":118,"column":40}},{"start":{"line":118,"column":40},"end":{"line":118,"column":40}}]},"20":{"line":143,"type":"if","locations":[{"start":{"line":143,"column":44},"end":{"line":143,"column":44}},{"start":{"line":143,"column":44},"end":{"line":143,"column":44}}]},"21":{"line":157,"type":"cond-expr","locations":[{"start":{"line":157,"column":52},"end":{"line":157,"column":58}},{"start":{"line":157,"column":59},"end":{"line":157,"column":65}}]},"22":{"line":185,"type":"if","locations":[{"start":{"line":185,"column":32},"end":{"line":185,"column":32}},{"start":{"line":185,"column":32},"end":{"line":185,"column":32}}]},"23":{"line":211,"type":"cond-expr","locations":[{"start":{"line":211,"column":80},"end":{"line":211,"column":89}},{"start":{"line":211,"column":92},"end":{"line":211,"column":98}}]},"24":{"line":211,"type":"binary-expr","locations":[{"start":{"line":211,"column":51},"end":{"line":211,"column":62}},{"start":{"line":211,"column":66},"end":{"line":211,"column":77}}]},"25":{"line":212,"type":"if","locations":[{"start":{"line":212,"column":40},"end":{"line":212,"column":40}},{"start":{"line":212,"column":40},"end":{"line":212,"column":40}}]},"26":{"line":222,"type":"if","locations":[{"start":{"line":222,"column":40},"end":{"line":222,"column":40}},{"start":{"line":222,"column":40},"end":{"line":222,"column":40}}]},"27":{"line":227,"type":"if","locations":[{"start":{"line":227,"column":40},"end":{"line":227,"column":40}},{"start":{"line":227,"column":40},"end":{"line":227,"column":40}}]},"28":{"line":227,"type":"binary-expr","locations":[{"start":{"line":227,"column":43},"end":{"line":227,"column":80}},{"start":{"line":227,"column":84},"end":{"line":227,"column":125}}]},"29":{"line":242,"type":"if","locations":[{"start":{"line":242,"column":44},"end":{"line":242,"column":44}},{"start":{"line":242,"column":44},"end":{"line":242,"column":44}}]},"30":{"line":257,"type":"if","locations":[{"start":{"line":257,"column":40},"end":{"line":257,"column":40}},{"start":{"line":257,"column":40},"end":{"line":257,"column":40}}]},"31":{"line":262,"type":"if","locations":[{"start":{"line":262,"column":40},"end":{"line":262,"column":40}},{"start":{"line":262,"column":40},"end":{"line":262,"column":40}}]},"32":{"line":276,"type":"if","locations":[{"start":{"line":276,"column":32},"end":{"line":276,"column":32}},{"start":{"line":276,"column":32},"end":{"line":276,"column":32}}]},"33":{"line":285,"type":"if","locations":[{"start":{"line":285,"column":28},"end":{"line":285,"column":28}},{"start":{"line":285,"column":28},"end":{"line":285,"column":28}}]},"34":{"line":287,"type":"if","locations":[{"start":{"line":287,"column":32},"end":{"line":287,"column":32}},{"start":{"line":287,"column":32},"end":{"line":287,"column":32}}]},"35":{"line":301,"type":"if","locations":[{"start":{"line":301,"column":28},"end":{"line":301,"column":28}},{"start":{"line":301,"column":28},"end":{"line":301,"column":28}}]},"36":{"line":301,"type":"binary-expr","locations":[{"start":{"line":301,"column":31},"end":{"line":301,"column":43}},{"start":{"line":301,"column":47},"end":{"line":301,"column":59}}]},"37":{"line":302,"type":"cond-expr","locations":[{"start":{"line":302,"column":90},"end":{"line":302,"column":95}},{"start":{"line":302,"column":96},"end":{"line":302,"column":101}}]},"38":{"line":311,"type":"cond-expr","locations":[{"start":{"line":311,"column":82},"end":{"line":311,"column":88}},{"start":{"line":311,"column":89},"end":{"line":311,"column":95}}]},"39":{"line":339,"type":"if","locations":[{"start":{"line":339,"column":16},"end":{"line":339,"column":16}},{"start":{"line":339,"column":16},"end":{"line":339,"column":16}}]},"40":{"line":340,"type":"if","locations":[{"start":{"line":340,"column":20},"end":{"line":340,"column":20}},{"start":{"line":340,"column":20},"end":{"line":340,"column":20}}]},"41":{"line":344,"type":"if","locations":[{"start":{"line":344,"column":16},"end":{"line":344,"column":16}},{"start":{"line":344,"column":16},"end":{"line":344,"column":16}}]},"42":{"line":349,"type":"if","locations":[{"start":{"line":349,"column":16},"end":{"line":349,"column":16}},{"start":{"line":349,"column":16},"end":{"line":349,"column":16}}]}}}} \ No newline at end of file diff --git a/spec/coverage/lcov-report/index.html b/spec/coverage/lcov-report/index.html index 52038db..41effe1 100644 --- a/spec/coverage/lcov-report/index.html +++ b/spec/coverage/lcov-report/index.html @@ -20,28 +20,28 @@
- 65.68% + 32.84% Statements - 266/405 + 133/405
- 54.95% + 17.82% Branches - 111/202 + 36/202
- 74.42% + 37.21% Functions - 32/43 + 16/43
- 65.68% + 32.84% Lines - 266/405 + 133/405
-
+
@@ -59,29 +59,29 @@ - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + @@ -90,7 +90,7 @@ diff --git a/spec/coverage/lcov-report/node-ipc/index.html b/spec/coverage/lcov-report/node-ipc/index.html index d42a353..b28879b 100644 --- a/spec/coverage/lcov-report/node-ipc/index.html +++ b/spec/coverage/lcov-report/node-ipc/index.html @@ -20,28 +20,28 @@
- 70.37% + 29.63% Statements - 95/135 + 40/135
- 61.11% + 19.44% Branches - 44/72 + 14/72
- 60% + 30% Functions - 6/10 + 3/10
- 70.37% + 29.63% Lines - 95/135 + 40/135
-
+
node-ipc/
70.37%95/13561.11%44/7260%6/1070.37%95/135node-ipc/
29.63%40/13519.44%14/7230%3/1029.63%40/135
node-ipc/lib/
63.33%171/27051.54%67/13078.79%26/3363.33%171/270node-ipc/lib/
34.44%93/27016.92%22/13039.39%13/3334.44%93/270
@@ -59,16 +59,16 @@ - - - - - - - - - - + + + + + + + + + + @@ -77,7 +77,7 @@ diff --git a/spec/coverage/lcov-report/node-ipc/lib/client.js.html b/spec/coverage/lcov-report/node-ipc/lib/client.js.html index 15dce41..657db48 100644 --- a/spec/coverage/lcov-report/node-ipc/lib/client.js.html +++ b/spec/coverage/lcov-report/node-ipc/lib/client.js.html @@ -20,14 +20,14 @@
- 73.08% + 70.19% Statements - 76/104 + 73/104
- 52.38% + 47.62% Branches - 22/42 + 20/42
100% @@ -35,9 +35,9 @@ 11/11
- 73.08% + 70.19% Lines - 76/104 + 73/104
@@ -287,185 +287,185 @@    - -  -  -  -  -  -  -  -  - -  - -  -  - -12× -  -12× -12× -12× -  -12× -  -  -12× -  -  -12× - - -  -  -11× -  -  -  -  - -11× -11× -  -  - -  -14× -  -14× -14× -  -  -  -  -14× - -  - -  - -  -  -  -  - -  -  -  -  -  - - - -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -14× -  -14× -  -  -10× -10× -  -  -  -  -14× -  -  - -    -14× -  -  -14× -  -14× -  -  -  - -      - - - +  - +   +  -  -  - - -  +  +  + +  +  + + + +  +  + +  +  +  +  + + + +  +  + +  + +  + + +  +  +  +  + + +  + +  + +  +  +  +  + +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  + +  + +  +  + + +  +  +  +  + +  +  + +    +   -  -  -  +     -14× + +   -12× -12× +  +  +  + + + +  + +  +  + +  + +  +  + + + + + +  + + +  +  +  +  +  +  +  +  +  + +  +  +  + +  +  + +    @@ -478,36 +478,36 @@     -12× -12× + +  -12× +  -12× +     -12× +  -12× -12× -12× -12× -12× + + + + +  -12× -12× + +      -12× +    -12× +    @@ -574,7 +574,7 @@ function connect(){ return; }   - if(!client.port){ + Eif(!client.port){ client.log('Connecting client on Unix Socket :'.debug, client.path.variable);   var path = client.path; @@ -590,9 +590,9 @@ function connect(){ } ); }else{ - Eif(!client.config.tls){ - client.log('Connecting client via TCP to'.debug, client.path.variable ,client.port); - client.socket = net.connect( + if(!client.config.tls){ + client.log('Connecting client via TCP to'.debug, client.path.variable ,client.port); + client.socket = net.connect( { port:client.port, host:client.path @@ -754,7 +754,7 @@ module.exports=init; diff --git a/spec/coverage/lcov-report/node-ipc/lib/eventParser.js.html b/spec/coverage/lcov-report/node-ipc/lib/eventParser.js.html index 911f91e..0e253d1 100644 --- a/spec/coverage/lcov-report/node-ipc/lib/eventParser.js.html +++ b/spec/coverage/lcov-report/node-ipc/lib/eventParser.js.html @@ -73,21 +73,21 @@ 28
node-ipc.js
70.37%95/13561.11%44/7260%6/1070.37%95/135node-ipc.js
29.63%40/13519.44%14/7230%3/1029.63%40/135
  -14× +     -14× +       -14× -14× + +     -16× -16× -16× + + +     @@ -130,7 +130,7 @@ module.exports=parser; diff --git a/spec/coverage/lcov-report/node-ipc/lib/index.html b/spec/coverage/lcov-report/node-ipc/lib/index.html index 7e4f515..0664dd3 100644 --- a/spec/coverage/lcov-report/node-ipc/lib/index.html +++ b/spec/coverage/lcov-report/node-ipc/lib/index.html @@ -20,28 +20,28 @@
- 63.33% + 34.44% Statements - 171/270 + 93/270
- 51.54% + 16.92% Branches - 67/130 + 22/130
- 78.79% + 39.39% Functions - 26/33 + 13/33
- 63.33% + 34.44% Lines - 171/270 + 93/270
-
+
@@ -60,15 +60,15 @@ - - - - - + + + + + - - + + @@ -85,16 +85,16 @@ - - - - - - - - - - + + + + + + + + + + @@ -103,7 +103,7 @@ diff --git a/spec/coverage/lcov-report/node-ipc/lib/socketServer.js.html b/spec/coverage/lcov-report/node-ipc/lib/socketServer.js.html index 3e73c3b..ddb2e2c 100644 --- a/spec/coverage/lcov-report/node-ipc/lib/socketServer.js.html +++ b/spec/coverage/lcov-report/node-ipc/lib/socketServer.js.html @@ -20,28 +20,28 @@
- 54.61% + 5.26% Statements - 83/152 + 8/152
- 51.19% + 0% Branches - 43/84 + 0/84
- 65% + 0% Functions - 13/20 + 0/20
- 54.61% + 5.26% Lines - 83/152 + 8/152
-
+
client.js
73.08%76/10452.38%22/42
70.19%73/10447.62%20/42 100% 11/1173.08%76/10470.19%73/104
socketServer.js
54.61%83/15251.19%43/8465%13/2054.61%83/152socketServer.js
5.26%8/1520%0/840%0/205.26%8/152
1 2 @@ -416,31 +416,31 @@     - -  - - - -  -     - +  +  +  +  +  +  +  +      - +    - +            - +        - +        @@ -470,7 +470,7 @@     - +        @@ -482,30 +482,30 @@       - -  -  -  -  -        - +  +  +  +  +  +  +          - +        - - +  +    - - - +  +  +        @@ -541,15 +541,15 @@     - - +  +              - +        @@ -562,19 +562,19 @@       - +      - - +  +      - +          - +        @@ -586,16 +586,16 @@       - +    - +    - - +  +    - - +  +        @@ -605,7 +605,7 @@       - +        @@ -614,11 +614,11 @@       - +      - - +  +        @@ -628,102 +628,102 @@       - - +  +    - +    - +          - -  - -  - - - -  - -  - - -  - -  -  -  -  -  -  -  -  - -  -  - -  - - -  -     - +    - +  +  +    +    +  +    - +          - +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +          - +      - - - +  +  +            - +          - +      - - - +  +  +          - +      - - +  +          - +        @@ -736,9 +736,9 @@       - +    - +        @@ -767,7 +767,7 @@       - +      @@ -779,32 +779,32 @@ pubsub = require('event-pubsub'), Message = require('js-message');   -function emit(socket, type, data){ - this.log('dispatching event to socket'.debug, ' : ', type.data, data); +function emit(socket, type, data){ + this.log('dispatching event to socket'.debug, ' : ', type.data, data);   - var message=new Message; - message.type=type; - message.data=data; + var message=new Message; + message.type=type; + message.data=data;   - Iif(this.config.rawBuffer){ + if(this.config.rawBuffer){ message=new Buffer(type,this.encoding); }else{ - message=eventParser.format(message); + message=eventParser.format(message); }   - Eif(this.udp4 || this.udp6){ + if(this.udp4 || this.udp6){   - Iif(!socket.address || !socket.port){ + if(!socket.address || !socket.port){ this.log('Attempting to emit to a single UDP socket without supplying socket address or port. Redispatching event as broadcast to all connected sockets'); this.broadcast(type,data); return; }   - this.server.write( + this.server.write( message, socket ); - return; + return; };   socket.write(message); @@ -833,8 +833,8 @@ function emit(socket, type, data){ } };   -function init(path,config,log,port){ - var server={ +function init(path,config,log,port){ + var server={ config : config, path : path, port : port, @@ -845,8 +845,8 @@ function init(path,config,log,port){ sockets : [], emit : emit, broadcast : broadcast, - onStart : function(socket){ - this.trigger( + onStart : function(socket){ + this.trigger( 'start', socket ); @@ -854,22 +854,22 @@ function init(path,config,log,port){ stop:function(){ server.server.close(); }, - start : function(){ - Iif(!this.path){ + start : function(){ + if(!this.path){ server.log('Socket Server Path not specified, refusing to start'.warn); return; }   - fs.unlink( + fs.unlink( this.path, ( - function(server){ - return function () { - server.log('starting server on '.debug,server.path.variable,((server.port)?':'+server.port:'').variable); + function(server){ + return function () { + server.log('starting server on '.debug,server.path.variable,((server.port)?':'+server.port:'').variable);   - if(!server.udp4 && !server.udp6){ - Eif(!server.config.tls){ - server.server=net.createServer( + if(!server.udp4 && !server.udp6){ + if(!server.config.tls){ + server.server=net.createServer( serverCreated ); }else{ @@ -904,16 +904,16 @@ function init(path,config,log,port){ ); } }else{ - function UDPWrite(message,socket){ - var data=new Buffer(message, server.config.encoding); - server.server.send( + function UDPWrite(message,socket){ + var data=new Buffer(message, server.config.encoding); + server.server.send( data, 0, data.length, socket.port, socket.address, - function(err, bytes) { - Iif(err){ + function(err, bytes) { + if(err){ server.log('error writing data to socket'.warn,err); server.trigger( 'error', @@ -926,19 +926,19 @@ function init(path,config,log,port){ ); }   - server.server=dgram.createSocket( + server.server=dgram.createSocket( ((server.udp4)? 'udp4':'udp6') ); - server.server.write=UDPWrite; - server.server.on( + server.server.write=UDPWrite; + server.server.on( 'listening', - function () { - serverCreated(server.server) + function () { + serverCreated(server.server) } ); }   - server.server.on( + server.server.on( 'error', function(err){ server.log('server error'.warn,err); @@ -950,16 +950,16 @@ function init(path,config,log,port){ } );   - server.server.maxConnections=server.config.maxConnections; + server.server.maxConnections=server.config.maxConnections;   - function serverCreated(socket) { - server.sockets.push(socket); + function serverCreated(socket) { + server.sockets.push(socket);   - if(socket.setEncoding) - socket.setEncoding(server.config.encoding); + if(socket.setEncoding) + socket.setEncoding(server.config.encoding);   - server.log('## socket connection to server detected ##'.rainbow); - socket.on( + server.log('## socket connection to server detected ##'.rainbow); + socket.on( 'close', function(socket){ server.trigger( @@ -969,7 +969,7 @@ function init(path,config,log,port){ } );   - socket.on( + socket.on( 'error', function(err){ server.log('server socket error'.warn,err); @@ -978,11 +978,11 @@ function init(path,config,log,port){ } );   - socket.on( + socket.on( 'data', - function(data,UDPSocket){ - var sock=((server.udp4 || server.udp6)? UDPSocket : socket); - Iif(server.config.rawBuffer){ + function(data,UDPSocket){ + var sock=((server.udp4 || server.udp6)? UDPSocket : socket); + if(server.config.rawBuffer){ data=new Buffer(data,this.encoding); server.trigger( 'data', @@ -992,30 +992,30 @@ function init(path,config,log,port){ return; }   - Eif(!this.ipcBuffer) - this.ipcBuffer=''; + if(!this.ipcBuffer) + this.ipcBuffer='';   - data=(this.ipcBuffer+=data); + data=(this.ipcBuffer+=data);   - Iif(data.slice(-1)!=eventParser.delimiter || data.indexOf(eventParser.delimiter) == -1){ + if(data.slice(-1)!=eventParser.delimiter || data.indexOf(eventParser.delimiter) == -1){ server.log('Implementing larger buffer for this socket message. You may want to consider smaller messages'.notice); return; }   - this.ipcBuffer=''; + this.ipcBuffer='';   - data=eventParser.parse(data); + data=eventParser.parse(data);   - while(data.length>0){ - var message=new Message; - message.load(data.shift()); + while(data.length>0){ + var message=new Message; + message.load(data.shift());   - server.log('received event of : '.debug,message.type.data,message.data); + server.log('received event of : '.debug,message.type.data,message.data);   - Eif(message.data.id) - sock.id=message.data.id; + if(message.data.id) + sock.id=message.data.id;   - server.trigger( + server.trigger( message.type, message.data, sock @@ -1024,70 +1024,70 @@ function init(path,config,log,port){ } );   - socket.on( + socket.on( 'message', - function(msg,rinfo) { - Iif (!rinfo) + function(msg,rinfo) { + if (!rinfo) return; - server.log('Received UDP message from '.debug, rinfo.address.variable, rinfo.port); - var data; + server.log('Received UDP message from '.debug, rinfo.address.variable, rinfo.port); + var data;   - Iif(server.config.rawSocket){ + if(server.config.rawSocket){ data=new Buffer(msg,this.encoding); }else{ - data=msg.toString(); + data=msg.toString(); } - socket.emit('data',data,rinfo); + socket.emit('data',data,rinfo); } );   - server.trigger( + server.trigger( 'connect', socket );   - Iif(server.config.rawBuffer){ + if(server.config.rawBuffer){ return; } }   - function started(socket){ - server.onStart(socket) + function started(socket){ + server.onStart(socket) }   - if(!port){ - server.log('starting server as'.debug, 'Unix || Windows Socket'.variable); - Iif (process.platform ==='win32'){ + if(!port){ + server.log('starting server as'.debug, 'Unix || Windows Socket'.variable); + if (process.platform ==='win32'){ server.path = server.path.replace(/^\//, ''); server.path = server.path.replace(/\//g, '-'); server.path= '\\\\.\\pipe\\'+server.path; }   - server.server.listen( + server.server.listen( server.path, started );   - return; + return; }   - if(!server.udp4 && !server.udp6){ - server.log('starting server as'.debug, (server.config.tls?'TLS':'TCP').variable); - server.server.listen( + if(!server.udp4 && !server.udp6){ + server.log('starting server as'.debug, (server.config.tls?'TLS':'TCP').variable); + server.server.listen( server.port, server.path, started ); - return; + return; }   - server.log('starting server as'.debug,((server.udp4)? 'udp4':'udp6').variable); - server.server.bind( + server.log('starting server as'.debug,((server.udp4)? 'udp4':'udp6').variable); + server.server.bind( server.port, server.path );   - started( + started( { address : server.path, port : server.port @@ -1100,9 +1100,9 @@ function init(path,config,log,port){ } };   - new pubsub(server); + new pubsub(server);   - server.on( + server.on( 'close', function(){ for(var i=0, count=server.sockets.length; i<count; i++){ @@ -1131,7 +1131,7 @@ function init(path,config,log,port){ } );   - return server; + return server; }   module.exports=init; @@ -1141,7 +1141,7 @@ module.exports=init; diff --git a/spec/coverage/lcov-report/node-ipc/node-ipc.js.html b/spec/coverage/lcov-report/node-ipc/node-ipc.js.html index 5a5e20d..1720f93 100644 --- a/spec/coverage/lcov-report/node-ipc/node-ipc.js.html +++ b/spec/coverage/lcov-report/node-ipc/node-ipc.js.html @@ -20,28 +20,28 @@
- 70.37% + 29.63% Statements - 95/135 + 40/135
- 61.11% + 19.44% Branches - 44/72 + 14/72
- 60% + 30% Functions - 6/10 + 3/10
- 70.37% + 29.63% Lines - 95/135 + 40/135
-
+
1 2 @@ -415,140 +415,140 @@     -141× -70× -  -  -71× -  -71× -229× -210× -  -  -19× -  -  -71× -  -  -  -  - - +55×       - +55×   - - - - +55× +177× +160×     -  - +17×     - - - - -  - - +55×         + +  +  +  + +  + + + + +  +  +  +       +  +  +  +  +      - +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +            +  +  +  +  +  +  +  +  +  +  +  +  +  +          +    - - - - - - -  - - - - - -  - - -  -  -  -  - -  - +              - +          - +          - - -  -  -  -  - -  -  -         - +  +        - +  +  +  +  +  +  +  +  +  +              - - +  +      - +        @@ -604,37 +604,24 @@     - +              - - - - -  - +          - - -  -  -  -  - -  -  - +  +        - +        @@ -643,15 +630,28 @@       - +        - +        - +  +  +  +  +  +  +  +  +  +  +  +  +  +        @@ -664,14 +664,14 @@       - - - - +  +  +  +    - +    - +      @@ -731,8 +731,8 @@ var ipc = { }   function log(){ - if(ipc.config.silent){ - return; + Iif(ipc.config.silent){ + return; }   var args=Array.prototype.slice.call(arguments); @@ -767,104 +767,104 @@ function disconnect(id){ delete ipc.of[id]; };   -function serve(path,callback){ - Eif(typeof path=='function'){ - callback=path; - path=false; +function serve(path,callback){ + if(typeof path=='function'){ + callback=path; + path=false; } - Eif(!path){ - ipc.log( + if(!path){ + ipc.log( 'Server path not specified, so defaulting to'.notice, 'ipc.config.socketRoot + ipc.config.appspace + ipc.config.id'.variable, (ipc.config.socketRoot+ipc.config.appspace+ipc.config.id).data ); - path=ipc.config.socketRoot+ipc.config.appspace+ipc.config.id; + path=ipc.config.socketRoot+ipc.config.appspace+ipc.config.id; }   - Iif(!callback){ + if(!callback){ callback=function(){}; }   - ipc.server=new Server( + ipc.server=new Server( path, ipc.config, log );   - ipc.server.on( + ipc.server.on( 'start', callback ); }   -function serveNet(host,port,UDPType,callback){ - if(typeof host=='number'){ - callback=UDPType; - UDPType=port; - port=host; - host=false; +function serveNet(host,port,UDPType,callback){ + if(typeof host=='number'){ + callback=UDPType; + UDPType=port; + port=host; + host=false; } - if(typeof host=='function'){ - callback=host; - UDPType=false; - host=false; - port=false; + if(typeof host=='function'){ + callback=host; + UDPType=false; + host=false; + port=false; } - if(!host){ - ipc.log( + if(!host){ + ipc.log( 'Server host not specified, so defaulting to'.notice, 'ipc.config.networkHost'.variable, ipc.config.networkHost.data ); - host=ipc.config.networkHost; + host=ipc.config.networkHost; } - Iif(host.toLowerCase()=='udp4' || host.toLowerCase()=='udp6'){ + if(host.toLowerCase()=='udp4' || host.toLowerCase()=='udp6'){ callback=port; UDPType=host.toLowerCase(); port=false; host=ipc.config.networkHost; }   - Iif(typeof port=='string'){ + if(typeof port=='string'){ callback=UDPType; UDPType=port; port=false; } - Iif(typeof port=='function'){ + if(typeof port=='function'){ callback=port; UDPType=false; port=false; } - if(!port){ - ipc.log( + if(!port){ + ipc.log( 'Server port not specified, so defaulting to'.notice, 'ipc.config.networkPort'.variable, ipc.config.networkPort ); - port=ipc.config.networkPort; + port=ipc.config.networkPort; }   - Iif(typeof UDPType=='function'){ + if(typeof UDPType=='function'){ callback=UDPType; UDPType=false; }   - Iif(!callback){ + if(!callback){ callback=function(){}; }   - ipc.server=new Server( + ipc.server=new Server( host, ipc.config, log, port );   - if(UDPType){ - ipc.server[UDPType]=true; + if(UDPType){ + ipc.server[UDPType]=true; }   - ipc.server.on( + ipc.server.on( 'start', callback ); @@ -919,38 +919,38 @@ function connect(id,path,callback){ callback(ipc); }   -function connectNet(id,host,port,callback){ - Iif(!id){ +function connectNet(id,host,port,callback){ + if(!id){ ipc.log( 'Service id required'.warn, 'Requested service connection without specifying service id. Aborting connection attempt'.notice ); return; } - Eif(typeof host=='number'){ - callback=port; - port=host; - host=false; + if(typeof host=='number'){ + callback=port; + port=host; + host=false; } - Iif(typeof host=='function'){ + if(typeof host=='function'){ callback=host; host=false; port=false; } - Eif(!host){ - ipc.log( + if(!host){ + ipc.log( 'Server host not specified, so defaulting to'.notice, 'ipc.config.networkHost'.variable, ipc.config.networkHost.data ); - host=ipc.config.networkHost; + host=ipc.config.networkHost; }   - Iif(typeof port=='function'){ + if(typeof port=='function'){ callback=port; port=false; } - Iif(!port){ + if(!port){ ipc.log( 'Server port not specified, so defaulting to'.notice, 'ipc.config.networkPort'.variable, @@ -959,15 +959,15 @@ function connectNet(id,host,port,callback){ port=ipc.config.networkPort; }   - Iif(typeof callback == 'string'){ + if(typeof callback == 'string'){ UDPType=callback; callback=false; } - Iif(!callback){ + if(!callback){ callback=function(){}; }   - Iif(ipc.of[id]){ + if(ipc.of[id]){ if(!ipc.of[id].socket.destroyed){ ipc.log( 'Already Connected to'.notice, @@ -980,14 +980,14 @@ function connectNet(id,host,port,callback){ ipc.of[id].socket.destroy(); }   - ipc.of[id] = new Client(ipc.config,ipc.log); - ipc.of[id].id = id; - ipc.of[id].path = host; - ipc.of[id].port = port; + ipc.of[id] = new Client(ipc.config,ipc.log); + ipc.of[id].id = id; + ipc.of[id].path = host; + ipc.of[id].port = port;   - ipc.of[id].connect(); + ipc.of[id].connect();   - callback(ipc); + callback(ipc); }   module.exports=ipc; @@ -997,7 +997,7 @@ module.exports=ipc; diff --git a/spec/coverage/lcov.info b/spec/coverage/lcov.info index 5f4549c..aa149f8 100644 --- a/spec/coverage/lcov.info +++ b/spec/coverage/lcov.info @@ -11,16 +11,16 @@ FN:203,(anonymous_8) FN:245,connectNet FN:290,(anonymous_10) FNF:10 -FNH:6 -FNDA:141,log -FNDA:8,disconnect -FNDA:1,serve +FNH:3 +FNDA:55,log +FNDA:4,disconnect +FNDA:0,serve FNDA:0,(anonymous_4) -FNDA:3,serveNet +FNDA:0,serveNet FNDA:0,(anonymous_6) FNDA:4,connect FNDA:0,(anonymous_8) -FNDA:4,connectNet +FNDA:0,connectNet FNDA:0,(anonymous_10) DA:1,1 DA:10,1 @@ -28,73 +28,73 @@ DA:22,1 DA:26,1 DA:44,1 DA:56,1 -DA:57,141 -DA:58,70 -DA:61,71 -DA:63,71 -DA:64,229 -DA:65,210 -DA:68,19 -DA:71,71 +DA:57,55 +DA:58,0 +DA:61,55 +DA:63,55 +DA:64,177 +DA:65,160 +DA:68,17 +DA:71,55 DA:76,1 -DA:77,8 +DA:77,4 DA:78,0 -DA:81,8 -DA:83,8 -DA:84,8 -DA:85,8 -DA:86,8 -DA:90,8 +DA:81,4 +DA:83,4 +DA:84,4 +DA:85,4 +DA:86,4 +DA:90,4 DA:93,1 -DA:94,1 -DA:95,1 -DA:96,1 -DA:98,1 -DA:99,1 -DA:104,1 -DA:107,1 +DA:94,0 +DA:95,0 +DA:96,0 +DA:98,0 +DA:99,0 +DA:104,0 +DA:107,0 DA:108,0 -DA:111,1 -DA:117,1 +DA:111,0 +DA:117,0 DA:123,1 -DA:124,3 -DA:125,1 -DA:126,1 -DA:127,1 -DA:128,1 -DA:130,3 -DA:131,1 -DA:132,1 -DA:133,1 -DA:134,1 -DA:136,3 -DA:137,2 -DA:142,2 -DA:144,3 +DA:124,0 +DA:125,0 +DA:126,0 +DA:127,0 +DA:128,0 +DA:130,0 +DA:131,0 +DA:132,0 +DA:133,0 +DA:134,0 +DA:136,0 +DA:137,0 +DA:142,0 +DA:144,0 DA:145,0 DA:146,0 DA:147,0 DA:148,0 -DA:151,3 +DA:151,0 DA:152,0 DA:153,0 DA:154,0 -DA:156,3 +DA:156,0 DA:157,0 DA:158,0 DA:159,0 -DA:161,3 -DA:162,1 -DA:167,1 -DA:170,3 +DA:161,0 +DA:162,0 +DA:167,0 +DA:170,0 DA:171,0 DA:172,0 -DA:175,3 +DA:175,0 DA:176,0 -DA:179,3 -DA:186,3 -DA:187,2 -DA:190,3 +DA:179,0 +DA:186,0 +DA:187,0 +DA:190,0 DA:196,1 DA:197,4 DA:198,2 @@ -119,86 +119,86 @@ DA:238,4 DA:240,4 DA:242,4 DA:245,1 -DA:246,4 +DA:246,0 DA:247,0 DA:251,0 -DA:253,4 -DA:254,4 -DA:255,4 -DA:256,4 -DA:258,4 +DA:253,0 +DA:254,0 +DA:255,0 +DA:256,0 +DA:258,0 DA:259,0 DA:260,0 DA:261,0 -DA:263,4 -DA:264,4 -DA:269,4 -DA:272,4 +DA:263,0 +DA:264,0 +DA:269,0 +DA:272,0 DA:273,0 DA:274,0 -DA:276,4 +DA:276,0 DA:277,0 DA:282,0 -DA:285,4 +DA:285,0 DA:286,0 DA:287,0 -DA:289,4 +DA:289,0 DA:290,0 -DA:293,4 +DA:293,0 DA:294,0 DA:295,0 DA:300,0 DA:301,0 DA:303,0 -DA:306,4 -DA:307,4 -DA:308,4 -DA:309,4 -DA:311,4 -DA:313,4 +DA:306,0 +DA:307,0 +DA:308,0 +DA:309,0 +DA:311,0 +DA:313,0 DA:316,1 LF:135 -LH:95 +LH:40 BRDA:29,1,0,0 BRDA:29,1,1,1 -BRDA:57,2,0,70 -BRDA:57,2,1,71 -BRDA:64,3,0,210 -BRDA:64,3,1,19 +BRDA:57,2,0,0 +BRDA:57,2,1,55 +BRDA:64,3,0,160 +BRDA:64,3,1,17 BRDA:77,4,0,0 -BRDA:77,4,1,8 -BRDA:84,5,0,8 +BRDA:77,4,1,4 +BRDA:84,5,0,4 BRDA:84,5,1,0 -BRDA:85,6,0,8 +BRDA:85,6,0,4 BRDA:85,6,1,0 -BRDA:94,7,0,1 +BRDA:94,7,0,0 BRDA:94,7,1,0 -BRDA:98,8,0,1 +BRDA:98,8,0,0 BRDA:98,8,1,0 BRDA:107,9,0,0 -BRDA:107,9,1,1 -BRDA:124,10,0,1 -BRDA:124,10,1,2 -BRDA:130,11,0,1 -BRDA:130,11,1,2 -BRDA:136,12,0,2 -BRDA:136,12,1,1 +BRDA:107,9,1,0 +BRDA:124,10,0,0 +BRDA:124,10,1,0 +BRDA:130,11,0,0 +BRDA:130,11,1,0 +BRDA:136,12,0,0 +BRDA:136,12,1,0 BRDA:144,13,0,0 -BRDA:144,13,1,3 -BRDA:144,14,0,3 -BRDA:144,14,1,3 +BRDA:144,13,1,0 +BRDA:144,14,0,0 +BRDA:144,14,1,0 BRDA:151,15,0,0 -BRDA:151,15,1,3 +BRDA:151,15,1,0 BRDA:156,16,0,0 -BRDA:156,16,1,3 -BRDA:161,17,0,1 -BRDA:161,17,1,2 +BRDA:156,16,1,0 +BRDA:161,17,0,0 +BRDA:161,17,1,0 BRDA:170,18,0,0 -BRDA:170,18,1,3 +BRDA:170,18,1,0 BRDA:175,19,0,0 -BRDA:175,19,1,3 -BRDA:186,20,0,2 -BRDA:186,20,1,1 +BRDA:175,19,1,0 +BRDA:186,20,0,0 +BRDA:186,20,1,0 BRDA:197,21,0,2 BRDA:197,21,1,2 BRDA:202,22,0,0 @@ -212,27 +212,27 @@ BRDA:223,25,1,4 BRDA:224,26,0,0 BRDA:224,26,1,0 BRDA:246,27,0,0 -BRDA:246,27,1,4 -BRDA:253,28,0,4 +BRDA:246,27,1,0 +BRDA:253,28,0,0 BRDA:253,28,1,0 BRDA:258,29,0,0 -BRDA:258,29,1,4 -BRDA:263,30,0,4 +BRDA:258,29,1,0 +BRDA:263,30,0,0 BRDA:263,30,1,0 BRDA:272,31,0,0 -BRDA:272,31,1,4 +BRDA:272,31,1,0 BRDA:276,32,0,0 -BRDA:276,32,1,4 +BRDA:276,32,1,0 BRDA:285,33,0,0 -BRDA:285,33,1,4 +BRDA:285,33,1,0 BRDA:289,34,0,0 -BRDA:289,34,1,4 +BRDA:289,34,1,0 BRDA:293,35,0,0 -BRDA:293,35,1,4 +BRDA:293,35,1,0 BRDA:294,36,0,0 BRDA:294,36,1,0 BRF:72 -BRH:44 +BRH:14 end_of_record TN: SF:/home/bmiller/git/node-ipc/lib/eventParser.js @@ -240,28 +240,28 @@ FN:3,formatData FN:15,parseDataEvents FNF:2 FNH:2 -FNDA:14,formatData -FNDA:16,parseDataEvents +FNDA:6,formatData +FNDA:6,parseDataEvents DA:1,1 DA:3,1 -DA:4,14 +DA:4,6 DA:5,0 -DA:7,14 +DA:7,6 DA:8,0 -DA:11,14 -DA:12,14 +DA:11,6 +DA:12,6 DA:15,1 -DA:16,16 -DA:17,16 -DA:18,16 +DA:16,6 +DA:17,6 +DA:18,6 DA:21,1 DA:27,1 LF:14 LH:12 BRDA:4,1,0,0 -BRDA:4,1,1,14 +BRDA:4,1,1,6 BRDA:7,2,0,0 -BRDA:7,2,1,14 +BRDA:7,2,1,6 BRF:4 BRH:2 end_of_record @@ -280,44 +280,44 @@ FN:168,(anonymous_10) FN:186,(anonymous_11) FNF:11 FNH:11 -FNDA:8,init -FNDA:12,emit -FNDA:11,syncEmit -FNDA:14,connect -FNDA:10,(anonymous_5) -FNDA:4,(anonymous_6) -FNDA:14,(anonymous_7) -FNDA:6,(anonymous_8) -FNDA:6,(anonymous_9) -FNDA:6,(anonymous_10) -FNDA:12,(anonymous_11) +FNDA:4,init +FNDA:6,emit +FNDA:5,syncEmit +FNDA:7,connect +FNDA:5,(anonymous_5) +FNDA:2,(anonymous_6) +FNDA:6,(anonymous_7) +FNDA:3,(anonymous_8) +FNDA:3,(anonymous_9) +FNDA:3,(anonymous_10) +FNDA:6,(anonymous_11) DA:1,1 DA:9,1 -DA:10,8 -DA:19,8 -DA:21,8 +DA:10,4 +DA:19,4 +DA:21,4 DA:24,1 -DA:25,12 -DA:27,12 -DA:28,12 -DA:29,12 -DA:31,12 +DA:25,6 +DA:27,6 +DA:28,6 +DA:29,6 +DA:31,6 DA:32,0 -DA:34,12 -DA:37,12 +DA:34,6 +DA:37,6 DA:38,1 DA:39,1 -DA:42,11 +DA:42,5 DA:47,1 -DA:48,11 -DA:49,11 +DA:48,5 +DA:49,5 DA:52,1 -DA:54,14 -DA:56,14 -DA:57,14 +DA:54,7 +DA:56,7 +DA:57,7 DA:58,0 DA:59,0 -DA:62,14 +DA:62,7 DA:63,7 DA:65,7 DA:67,7 @@ -325,9 +325,9 @@ DA:68,0 DA:69,0 DA:70,0 DA:72,7 -DA:78,7 -DA:79,7 -DA:80,7 +DA:78,0 +DA:79,0 +DA:80,0 DA:87,0 DA:88,0 DA:89,0 @@ -342,76 +342,76 @@ DA:100,0 DA:106,0 DA:107,0 DA:109,0 -DA:115,14 -DA:117,14 -DA:120,10 -DA:121,10 -DA:126,14 -DA:129,4 -DA:130,4 -DA:131,4 -DA:135,14 -DA:138,14 -DA:140,14 -DA:144,8 -DA:145,8 -DA:151,8 -DA:152,8 -DA:153,8 -DA:155,8 -DA:158,6 -DA:160,6 -DA:163,6 -DA:164,6 -DA:165,6 -DA:166,6 -DA:167,6 -DA:169,6 -DA:170,2 -DA:180,6 -DA:184,14 -DA:187,12 -DA:188,12 +DA:115,7 +DA:117,7 +DA:120,5 +DA:121,5 +DA:126,7 +DA:129,2 +DA:130,2 +DA:131,2 +DA:135,7 +DA:138,6 +DA:140,6 +DA:144,3 +DA:145,3 +DA:151,3 +DA:152,3 +DA:153,3 +DA:155,3 +DA:158,3 +DA:160,3 +DA:163,3 +DA:164,3 +DA:165,3 +DA:166,3 +DA:167,3 +DA:169,3 +DA:170,1 +DA:180,3 +DA:184,7 +DA:187,6 +DA:188,6 DA:189,0 DA:193,0 DA:194,0 DA:197,0 DA:198,0 -DA:201,12 -DA:202,12 -DA:204,12 -DA:206,12 +DA:201,6 +DA:202,6 +DA:204,6 +DA:206,6 DA:207,0 DA:208,0 -DA:211,12 -DA:213,12 -DA:214,12 -DA:215,12 -DA:216,12 -DA:217,12 -DA:219,12 -DA:220,12 -DA:226,12 +DA:211,6 +DA:213,6 +DA:214,6 +DA:215,6 +DA:216,6 +DA:217,6 +DA:219,6 +DA:220,6 +DA:226,5 DA:227,0 -DA:230,12 +DA:230,5 DA:235,1 LF:104 -LH:76 -BRDA:17,1,0,8 +LH:73 +BRDA:17,1,0,4 BRDA:17,1,1,0 BRDA:31,2,0,0 -BRDA:31,2,1,12 +BRDA:31,2,1,6 BRDA:37,3,0,1 -BRDA:37,3,1,11 +BRDA:37,3,1,5 BRDA:57,4,0,0 -BRDA:57,4,1,14 +BRDA:57,4,1,7 BRDA:62,5,0,7 -BRDA:62,5,1,7 +BRDA:62,5,1,0 BRDA:67,6,0,0 BRDA:67,6,1,7 BRDA:67,7,0,7 BRDA:67,7,1,0 -BRDA:78,8,0,7 +BRDA:78,8,0,0 BRDA:78,8,1,0 BRDA:88,9,0,0 BRDA:88,9,1,0 @@ -421,26 +421,26 @@ BRDA:94,11,0,0 BRDA:94,11,1,0 BRDA:95,12,0,0 BRDA:95,12,1,0 -BRDA:140,13,0,8 -BRDA:140,13,1,6 -BRDA:141,14,0,14 -BRDA:141,14,1,6 -BRDA:169,15,0,2 -BRDA:169,15,1,4 +BRDA:140,13,0,3 +BRDA:140,13,1,3 +BRDA:141,14,0,6 +BRDA:141,14,1,4 +BRDA:169,15,0,1 +BRDA:169,15,1,2 BRDA:188,16,0,0 -BRDA:188,16,1,12 +BRDA:188,16,1,6 BRDA:193,17,0,0 BRDA:193,17,1,0 -BRDA:201,18,0,12 +BRDA:201,18,0,6 BRDA:201,18,1,0 BRDA:206,19,0,0 -BRDA:206,19,1,12 -BRDA:206,20,0,12 -BRDA:206,20,1,12 +BRDA:206,19,1,6 +BRDA:206,20,0,6 +BRDA:206,20,1,6 BRDA:226,21,0,0 -BRDA:226,21,1,12 +BRDA:226,21,1,5 BRF:42 -BRH:22 +BRH:20 end_of_record TN: SF:/home/bmiller/git/node-ipc/lib/socketServer.js @@ -465,43 +465,43 @@ FN:256,(anonymous_18) FN:281,started FN:334,(anonymous_20) FNF:20 -FNH:13 -FNDA:2,emit +FNH:0 +FNDA:0,emit FNDA:0,broadcast -FNDA:4,init -FNDA:4,(anonymous_4) +FNDA:0,init +FNDA:0,(anonymous_4) FNDA:0,(anonymous_5) -FNDA:4,(anonymous_6) -FNDA:4,(anonymous_7) -FNDA:4,(anonymous_8) -FNDA:2,UDPWrite -FNDA:2,(anonymous_10) +FNDA:0,(anonymous_6) +FNDA:0,(anonymous_7) +FNDA:0,(anonymous_8) +FNDA:0,UDPWrite +FNDA:0,(anonymous_10) FNDA:0,(anonymous_11) -FNDA:2,(anonymous_12) +FNDA:0,(anonymous_12) FNDA:0,(anonymous_13) -FNDA:4,serverCreated +FNDA:0,serverCreated FNDA:0,(anonymous_15) FNDA:0,(anonymous_16) -FNDA:4,(anonymous_17) -FNDA:2,(anonymous_18) -FNDA:4,started +FNDA:0,(anonymous_17) +FNDA:0,(anonymous_18) +FNDA:0,started FNDA:0,(anonymous_20) DA:1,1 DA:9,1 -DA:10,2 -DA:12,2 -DA:13,2 -DA:14,2 -DA:16,2 +DA:10,0 +DA:12,0 +DA:13,0 +DA:14,0 +DA:16,0 DA:17,0 -DA:19,2 -DA:22,2 -DA:24,2 +DA:19,0 +DA:22,0 +DA:24,0 DA:25,0 DA:26,0 DA:27,0 -DA:30,2 -DA:34,2 +DA:30,0 +DA:34,0 DA:37,0 DA:40,1 DA:41,0 @@ -517,18 +517,18 @@ DA:54,0 DA:57,0 DA:58,0 DA:63,1 -DA:64,4 -DA:76,4 +DA:64,0 +DA:76,0 DA:82,0 -DA:85,4 +DA:85,0 DA:86,0 DA:87,0 -DA:90,4 -DA:94,4 -DA:95,4 -DA:97,4 -DA:98,2 -DA:99,2 +DA:90,0 +DA:94,0 +DA:95,0 +DA:97,0 +DA:98,0 +DA:99,0 DA:103,0 DA:104,0 DA:105,0 @@ -546,82 +546,82 @@ DA:122,0 DA:123,0 DA:128,0 DA:134,1 -DA:135,2 -DA:136,2 -DA:143,2 +DA:135,0 +DA:136,0 +DA:143,0 DA:144,0 DA:145,0 DA:148,0 -DA:156,2 -DA:159,2 -DA:160,2 -DA:163,2 -DA:168,4 +DA:156,0 +DA:159,0 +DA:160,0 +DA:163,0 +DA:168,0 DA:171,0 DA:173,0 -DA:180,4 +DA:180,0 DA:182,1 -DA:183,4 -DA:185,4 -DA:186,2 -DA:188,4 -DA:189,4 +DA:183,0 +DA:185,0 +DA:186,0 +DA:188,0 +DA:189,0 DA:192,0 -DA:199,4 +DA:199,0 DA:202,0 DA:204,0 -DA:208,4 -DA:211,4 -DA:212,4 +DA:208,0 +DA:211,0 +DA:212,0 DA:213,0 DA:214,0 DA:219,0 -DA:222,4 -DA:223,4 -DA:225,4 -DA:227,4 +DA:222,0 +DA:223,0 +DA:225,0 +DA:227,0 DA:228,0 DA:229,0 -DA:232,4 -DA:234,4 -DA:236,4 -DA:237,4 -DA:238,4 -DA:240,4 -DA:242,4 -DA:243,4 -DA:245,4 -DA:254,4 -DA:257,2 +DA:232,0 +DA:234,0 +DA:236,0 +DA:237,0 +DA:238,0 +DA:240,0 +DA:242,0 +DA:243,0 +DA:245,0 +DA:254,0 +DA:257,0 DA:258,0 -DA:259,2 -DA:260,2 -DA:262,2 +DA:259,0 +DA:260,0 +DA:262,0 DA:263,0 -DA:265,2 -DA:267,2 -DA:271,4 -DA:276,4 +DA:265,0 +DA:267,0 +DA:271,0 +DA:276,0 DA:277,0 DA:281,1 -DA:282,4 -DA:285,4 -DA:286,1 -DA:287,1 +DA:282,0 +DA:285,0 +DA:286,0 +DA:287,0 DA:288,0 DA:289,0 DA:290,0 -DA:293,1 -DA:298,1 -DA:301,3 -DA:302,1 -DA:303,1 -DA:308,1 -DA:311,2 -DA:312,2 -DA:317,2 -DA:330,4 -DA:332,4 +DA:293,0 +DA:298,0 +DA:301,0 +DA:302,0 +DA:303,0 +DA:308,0 +DA:311,0 +DA:312,0 +DA:317,0 +DA:330,0 +DA:332,0 DA:335,0 DA:336,0 DA:337,0 @@ -636,20 +636,20 @@ DA:350,0 DA:352,0 DA:354,0 DA:356,0 -DA:361,4 +DA:361,0 DA:364,1 LF:152 -LH:83 +LH:8 BRDA:16,1,0,0 -BRDA:16,1,1,2 -BRDA:22,2,0,2 +BRDA:16,1,1,0 +BRDA:22,2,0,0 BRDA:22,2,1,0 -BRDA:22,3,0,2 -BRDA:22,3,1,1 +BRDA:22,3,0,0 +BRDA:22,3,1,0 BRDA:24,4,0,0 -BRDA:24,4,1,2 -BRDA:24,5,0,2 -BRDA:24,5,1,2 +BRDA:24,4,1,0 +BRDA:24,5,0,0 +BRDA:24,5,1,0 BRDA:41,6,0,0 BRDA:41,6,1,0 BRDA:46,7,0,0 @@ -659,14 +659,14 @@ BRDA:52,8,1,0 BRDA:52,9,0,0 BRDA:52,9,1,0 BRDA:85,10,0,0 -BRDA:85,10,1,4 -BRDA:95,11,0,3 -BRDA:95,11,1,1 -BRDA:97,12,0,2 -BRDA:97,12,1,2 -BRDA:97,13,0,4 -BRDA:97,13,1,3 -BRDA:98,14,0,2 +BRDA:85,10,1,0 +BRDA:95,11,0,0 +BRDA:95,11,1,0 +BRDA:97,12,0,0 +BRDA:97,12,1,0 +BRDA:97,13,0,0 +BRDA:97,13,1,0 +BRDA:98,14,0,0 BRDA:98,14,1,0 BRDA:104,15,0,0 BRDA:104,15,1,0 @@ -679,43 +679,43 @@ BRDA:117,18,1,0 BRDA:118,19,0,0 BRDA:118,19,1,0 BRDA:143,20,0,0 -BRDA:143,20,1,2 -BRDA:157,21,0,1 -BRDA:157,21,1,1 -BRDA:185,22,0,2 -BRDA:185,22,1,2 -BRDA:211,23,0,2 -BRDA:211,23,1,2 -BRDA:211,24,0,4 -BRDA:211,24,1,3 +BRDA:143,20,1,0 +BRDA:157,21,0,0 +BRDA:157,21,1,0 +BRDA:185,22,0,0 +BRDA:185,22,1,0 +BRDA:211,23,0,0 +BRDA:211,23,1,0 +BRDA:211,24,0,0 +BRDA:211,24,1,0 BRDA:212,25,0,0 -BRDA:212,25,1,4 -BRDA:222,26,0,4 +BRDA:212,25,1,0 +BRDA:222,26,0,0 BRDA:222,26,1,0 BRDA:227,27,0,0 -BRDA:227,27,1,4 -BRDA:227,28,0,4 -BRDA:227,28,1,4 -BRDA:242,29,0,4 +BRDA:227,27,1,0 +BRDA:227,28,0,0 +BRDA:227,28,1,0 +BRDA:242,29,0,0 BRDA:242,29,1,0 BRDA:257,30,0,0 -BRDA:257,30,1,2 +BRDA:257,30,1,0 BRDA:262,31,0,0 -BRDA:262,31,1,2 +BRDA:262,31,1,0 BRDA:276,32,0,0 -BRDA:276,32,1,4 -BRDA:285,33,0,1 -BRDA:285,33,1,3 +BRDA:276,32,1,0 +BRDA:285,33,0,0 +BRDA:285,33,1,0 BRDA:287,34,0,0 -BRDA:287,34,1,1 -BRDA:301,35,0,1 -BRDA:301,35,1,2 -BRDA:301,36,0,3 -BRDA:301,36,1,2 +BRDA:287,34,1,0 +BRDA:301,35,0,0 +BRDA:301,35,1,0 +BRDA:301,36,0,0 +BRDA:301,36,1,0 BRDA:302,37,0,0 -BRDA:302,37,1,1 -BRDA:311,38,0,1 -BRDA:311,38,1,1 +BRDA:302,37,1,0 +BRDA:311,38,0,0 +BRDA:311,38,1,0 BRDA:339,39,0,0 BRDA:339,39,1,0 BRDA:340,40,0,0 @@ -725,5 +725,5 @@ BRDA:344,41,1,0 BRDA:349,42,0,0 BRDA:349,42,1,0 BRF:84 -BRH:43 +BRH:0 end_of_record diff --git a/spec/support/jasmineTest/TCP/tcpSocketClient.spec.js b/spec/support/jasmineTest/TCP/tcpSocketClient.spec.js index 1e9c2a4..c52a72b 100644 --- a/spec/support/jasmineTest/TCP/tcpSocketClient.spec.js +++ b/spec/support/jasmineTest/TCP/tcpSocketClient.spec.js @@ -1,9 +1,10 @@ -var ipc = require('../../../../node-ipc'); +'use strict'; + +const ipc = require('../../../../node-ipc'); ipc.config.id ='testClient'; ipc.config.retry = 600; - describe('TCP Socket verification of client', function(){ @@ -11,10 +12,9 @@ describe('TCP Socket verification of client', 'Verify retry attempts by TCP client to connect to the server as per the value set in "maxRetries" parameter.', function(done){ - var tcpRetryAttempt = 3; //variable created to count the attempt made by client to connect to the server. + let tcpRetryAttempt = 3; //variable created to count the attempt made by client to connect to the server. ipc.config.maxRetries = 3; ipc.config.stopRetrying = false; - ipc.config.silent= false; ipc.connectToNet( 'tcpFakeServer', @@ -31,24 +31,23 @@ describe('TCP Socket verification of client', expect(ipc.of.tcpFakeServer.socket.destroyed).toBe(true); - } - else if(ipc.of.tcpFakeServer.retriesRemaining < 0){ + }else if(ipc.of.tcpFakeServer.retriesRemaining < 0){ - expect(tcpRetryAttempt).not.toBeLessThan(0); - expect(ipc.of.tcpFakeServer.retriesRemaining).not.toBeLessThan(0); + expect(tcpRetryAttempt).not.toBeLessThan(0); + expect(ipc.of.tcpFakeServer.retriesRemaining).not.toBeLessThan(0); - ipc.of.tcpFakeServer.on( - 'error', - function(err){ - console.log('Error is: ', err); - ipc.disconnect('tcpFakeServer'); - } - ); + ipc.of.tcpFakeServer.on( + 'error', + function(err){ + console.log('Error is: ', err); + ipc.disconnect('tcpFakeServer'); + } + ); - } + } - tcpRetryAttempt--; + tcpRetryAttempt--; } ); } @@ -57,21 +56,21 @@ describe('TCP Socket verification of client', // Wait time is added to verify the fail case scenario of additional retry attempt by client than expected. setTimeout( function(){ - ipc.disconnect('tcpFakeServer'); + ipc.disconnect('tcpFakeServer'); done(); },2500 ); - } ); - it( + it( 'Verify TCP client does not connect to the TCPserver when "stopRetrying" value is set to true.', function(done){ - var tcpRetryAttempt = 3; //variable created to count the attempt made by client to connect to the server. + let tcpRetryAttempt = 3; //variable created to count the attempt made by client to connect to the server. ipc.config.maxRetries = 3; ipc.config.stopRetrying = true; + ipc.config.silent=true; ipc.connectToNet( 'tcpFakeServer', @@ -89,11 +88,11 @@ describe('TCP Socket verification of client', } else if(ipc.of.tcpFakeServer.retriesRemaining < 3){ - expect(tcpRetryAttempt).not.toBeLessThan(3); - expect(ipc.of.tcpFakeServer.retriesRemaining).not.toBeLessThan(3); + expect(tcpRetryAttempt).not.toBeLessThan(3); + expect(ipc.of.tcpFakeServer.retriesRemaining).not.toBeLessThan(3); - ipc.of.tcpFakeServer.on( + ipc.of.tcpFakeServer.on( 'error', function(err){ console.log('Error is: ', err); @@ -101,9 +100,9 @@ describe('TCP Socket verification of client', } ); - } + } - tcpRetryAttempt--; + tcpRetryAttempt--; } ); } @@ -112,14 +111,14 @@ describe('TCP Socket verification of client', // Wait time is added to verify the fail case scenario of additional retry attempt by client than expected. setTimeout( function(){ - ipc.disconnect('tcpFakeServer'); + ipc.disconnect('tcpFakeServer'); done(); },700 ); } ); - it( + it( 'Verify TCP client connects to server named "tcpServer" and receives message.', function(done){ ipc.connectToNet( @@ -151,27 +150,27 @@ describe('TCP Socket verification of client', } ); - } + } ); } ); - it( + it( 'Verify TCP client queues the requests being sent to the server synchronously until it receives the response from server.', function(done){ ipc.config.sync = true; - var responseCounter = 0; + let responseCounter = 0; ipc.connectToNet( 'tcpServerSync', 8400, function(){ - ipc.of.tcpServerSync.on( + ipc.of.tcpServerSync.on( 'connect', function(){ - for(var i=0; i<5; i++){ + for(let i=0; i<5; i++){ ipc.of.tcpServerSync.emit( 'message', @@ -186,10 +185,10 @@ describe('TCP Socket verification of client', ipc.of.tcpServerSync.on( 'message', function(data){ - if (data.message != null){ + if (data.message != null){ responseCounter++; expect(data.message).toBe('Response from TCP server'); - } + } if (responseCounter == 5){ expect(responseCounter).toBe(5); @@ -216,5 +215,5 @@ describe('TCP Socket verification of client', - } + } ); diff --git a/spec/support/jasmineTest/TCP/tcpSocketServer.spec.js b/spec/support/jasmineTest/TCP/tcpSocketServer.spec.js index 0ba5564..d969e5c 100644 --- a/spec/support/jasmineTest/TCP/tcpSocketServer.spec.js +++ b/spec/support/jasmineTest/TCP/tcpSocketServer.spec.js @@ -1,48 +1,48 @@ -var ipc = require('../../../../node-ipc'); - +'use strict'; + +const ipc = require('../../../../node-ipc'); + ipc.config.id ='testWorld'; ipc.config.retry = 1000; - describe('TCP Socket verification of server', function(){ - + it( 'Verify TCP server detects only 1 client out of 2 clients and receives message.', function(done){ - - var clientCounter =0; + + let clientCounter =0; ipc.config.maxConnections=1; ipc.config.networkPort=8500; - + ipc.serveNet( function(){ ipc.server.on( 'app.message', function(data,socket){ - + clientCounter++; - + expect(data.id).toBe('tcpClient'); expect(data.message).toBe('I am TCP client.'); - + } ); - + setTimeout( function(){ expect(clientCounter).toBe(1); - + done(); },2000 ); } ); - + ipc.server.start(); - + } ); } ); - diff --git a/spec/support/jasmineTest/UDP/udpSocketClient.spec.js b/spec/support/jasmineTest/UDP/udpSocketClient.spec.js index 6f295b9..8f4560a 100644 --- a/spec/support/jasmineTest/UDP/udpSocketClient.spec.js +++ b/spec/support/jasmineTest/UDP/udpSocketClient.spec.js @@ -1,4 +1,6 @@ -var ipc = require('../../../../node-ipc'); +'use strict'; + +const ipc = require('../../../../node-ipc'); ipc.config.id ='testClient'; ipc.config.retry = 600; diff --git a/spec/support/jasmineTest/Unix/unixSocketClient.spec.js b/spec/support/jasmineTest/Unix/unixSocketClient.spec.js index d1fba99..d62ec3e 100644 --- a/spec/support/jasmineTest/Unix/unixSocketClient.spec.js +++ b/spec/support/jasmineTest/Unix/unixSocketClient.spec.js @@ -1,225 +1,190 @@ -var ipc = require('../../../../node-ipc'); - +'use strict'; + +const ipc = require('../../../../node-ipc'); + ipc.config.id ='testClient'; ipc.config.retry = 600; - describe('Test Cases for Unix client: ', - function(){ - - it( - 'Verify retry attempts by Unix client to connect to the Unix server as per the value set in "maxRetries" parameter.', - function(done){ - - var retryAttempt = 3; //variable created to count the attempt made by client to connect to the server. - ipc.config.maxRetries = 3; - ipc.config.silent= true; + function describeTests(){ + it( + 'Verify retry attempts by Unix client to connect to the Unix server as per the value set in "maxRetries" parameter.', + function testIt(done){ - ipc.connectTo( - 'fakeworld', - function(){ - - ipc.of.fakeworld.on( - 'disconnect', - function(){ - - if(ipc.of.fakeworld.retriesRemaining == 0){ - - expect(retryAttempt).toBe(ipc.of.fakeworld.retriesRemaining); - expect(ipc.of.fakeworld.socket.destroyed).toBe(true); - - } - else if(ipc.of.fakeworld.retriesRemaining < 0){ - - expect(retryAttempt).not.toBeLessThan(0); - expect(ipc.of.fakeworld.retriesRemaining).not.toBeLessThan(0); - - - ipc.of.fakeworld.on( - 'error', - function(err){ - console.log('Error is: ', err); - ipc.disconnect('fakeworld'); - } - ); - - } - - retryAttempt--; - } - ); - } - ); - - // Wait time is added to verify the fail case scenario of additional retry attempt by client than expected. - setTimeout( - function(){ - ipc.disconnect('fakeworld'); - done(); - },2500 - ); - + ipc.config.maxRetries = 3; - } - ); - - it( - 'Verify Unix client does not connect to the unix server when "stopRetrying" value is set to true.', - function(done){ - - var retryAttempt = 3; //variable created to count the attempt made by client to connect to the server. - ipc.config.maxRetries = 3; - ipc.config.stopRetrying = true; - - - ipc.connectTo( - 'fakeworld', - function(){ - ipc.of.fakeworld.on( - 'disconnect', - function(){ - - if(ipc.of.fakeworld.retriesRemaining == 3){ - - expect(retryAttempt).toBe(ipc.of.fakeworld.retriesRemaining); - expect(ipc.of.fakeworld.socket.destroyed).toBe(true); - + //set to -1 because there is an error on the first fail + //before retrying + let errorCount=-1; + + ipc.connectTo( + 'fakeworld', + function open(){ + ipc.of.fakeworld.on( + 'error', + function gotError(err){ + errorCount++; + expect(ipc.of.fakeworld.retriesRemaining).toBe( + ipc.config.maxRetries-errorCount + ); + } + ); + } + ); + + setTimeout( + function testDelay(){ + expect(errorCount).toBe(ipc.config.maxRetries); + ipc.disconnect('fakeworld'); + done(); + }, + ipc.config.retry*ipc.config.maxRetries + + ipc.config.retry+ipc.config.retry + ); + } + ); + + it( + 'Verify Unix client does not connect to the unix server when "stopRetrying" value is set to true.', + function(done){ + + ipc.config.maxRetries = 3; + ipc.config.stopRetrying = true; + ipc.silent=true; + + //set to -1 because there is an error on the first fail + //before retrying + let errorCount=-1; + + ipc.connectTo( + 'fakeworld', + function open(){ + + ipc.of.fakeworld.on( + 'error', + function gotError(err){ + expect(ipc.of.fakeworld.retriesRemaining).toBe(ipc.config.maxRetries); + errorCount++; + } + ); + } + ); + + setTimeout( + function testDelay(){ + expect(errorCount).toBe(0); + expect(ipc.of.fakeworld.retriesRemaining).toBe(ipc.config.maxRetries); + ipc.disconnect('fakeworld'); + done(); + }, + ipc.config.retry*ipc.config.maxRetries + ); + } + ); + + + it( + 'Verify unix client connects to "unixServer" and receives message.', + function testIt(done){ + ipc.connectTo( + 'unixServer', + '/tmp/app.unixServer', + function open(){ + ipc.of.unixServer.on( + 'connect', + function connected(){ + ipc.of.unixServer.on( + 'message', + function(data){ + expect(data.id).toBe('unixServer'); + expect(data.message).toBe('I am unix server!'); + testDone(); } - else if(ipc.of.fakeworld.retriesRemaining < 3){ - - expect(retryAttempt).not.toBeLessThan(3); - expect(ipc.of.fakeworld.retriesRemaining).not.toBeLessThan(3); - - - ipc.of.fakeworld.on( - 'error', - function(err){ - console.log('Error is: ', err); - ipc.disconnect('fakeworld'); - } - ); - - } - - retryAttempt--; - } - ); - } - ); - - // Wait time is added to verify the fail case scenario of additional retry attempt by client than expected. - setTimeout( - function(){ - ipc.disconnect('fakeworld'); - done(); - },700 - ); + ); + + ipc.of.unixServer.on( + 'error', + function(err){ + expect(err).toBe(false); + testDone(); + } + ); + + ipc.of.unixServer.emit( + 'message', + { + id : ipc.config.id, + message : 'Hello from Client.' + } + ); + } + ); + } + ); + + function testDone(){ + ipc.disconnect('unixServer'); + done(); } - ); - - - it( - 'Verify unix client connects to "unixServer" and receives message.', - function(done){ - ipc.connectTo( - 'unixServer', - '/tmp/app.unixServer', - function(){ - ipc.of.unixServer.on( - 'connect', - function(){ - ipc.of.unixServer.emit( + } + ); + + it( + 'Verify unix client queues the requests being sent to the server synchronously until it receives the response from server.', + function testIt(done){ + + ipc.config.sync = true; + let responseCounter = 0; + + ipc.connectTo( + 'unixServerSync', + '/tmp/app.unixServerSync', + function open(){ + ipc.of.unixServerSync.on( + 'connect', + function connected(){ + + for(let i=0; i<5; i++){ + ipc.of.unixServerSync.emit( 'message', { id : ipc.config.id, - message : 'Hello from Client.' + message : 'Unix Client Request ' } ); - - ipc.of.unixServer.on( - 'message', - function(data){ - - expect(data.id).toBe('unixServer'); - expect(data.message).toBe('I am unix server!'); - ipc.disconnect('unixServer'); - done(); - } - ); - - ipc.of.unixServer.on( - 'error', - function(err){ - console.log('Error is: ', err); done(); - ipc.disconnect('unixServer'); - } - ); - } - ); - } - ); - } - ); - - it( - 'Verify unix client queues the requests being sent to the server synchronously until it receives the response from server.', - function(done){ - - ipc.config.sync = true; - var responseCounter = 0; - - ipc.connectTo( - 'unixServerSync', - '/tmp/app.unixServerSync', - function(){ - ipc.of.unixServerSync.on( - 'connect', - function(){ - - for(var i=0; i<5; i++){ - - ipc.of.unixServerSync.emit( - 'message', - { - id : ipc.config.id, - message : 'Unix Client Request '+ i - - } - ); - } - - ipc.of.unixServerSync.on( - 'message', - function(data){ - if (data.message != null){ - responseCounter++; - expect(data.message).toBe('Response from unix server'); - } - - if (responseCounter == 5){ - expect(responseCounter).toBe(5); - ipc.disconnect('unixServerSync'); - done(); - } - } - ); - - ipc.of.unixServerSync.on( - 'error', - function(err){ - console.log('Error is: ', err); done(); - ipc.disconnect('unixServerSync'); - } - ); - - } - ); - } - ); - } - ); - // End of test cases for Unix - } -); + ipc.of.unixServerSync.on( + 'message', + function(data){ + expect(data.message).toBe('Response from unix server'); + responseCounter++; + + if (responseCounter < 5){ + return; + } + expect(responseCounter).toBe(5); + testDone(); + } + ); + + ipc.of.unixServerSync.on( + 'error', + function testError(err){ + expect(err).toBe(false); + testDone(); + } + ); + } + ); + } + ); + + function testDone(){ + ipc.disconnect('unixServerSync'); + done(); + } + } + ); + } +); diff --git a/spec/support/jasmineTest/Unix/unixSocketServer.spec.js b/spec/support/jasmineTest/Unix/unixSocketServer.spec.js index 2543c85..18f5f40 100644 --- a/spec/support/jasmineTest/Unix/unixSocketServer.spec.js +++ b/spec/support/jasmineTest/Unix/unixSocketServer.spec.js @@ -1,47 +1,51 @@ -var ipc = require('../../../../node-ipc'); - +'use strict'; + +const ipc = require('../../../../node-ipc'); + ipc.config.id ='testWorld'; ipc.config.retry = 1000; +ipc.config.silent=false; +describe( + 'Test Cases for server: ', + function testDescribe(){ + // Unix server verification // + it( + 'Verify unix server detects only 1 client out of 2 clients and receives message.', + function testIt(done){ -describe('Test Cases for server: ', - function(){ - // Unix server verification // - it( - 'Verify unix server detects only 1 client out of 2 clients and receives message.', - function(done){ - - var clientCounter =0; - ipc.config.maxConnections=1; - ipc.config.networkPort='/tmp/app.testWorld'; - - ipc.serve( - function(){ - ipc.server.on( - 'message', - function(data,socket){ - - clientCounter++; - expect(data.id).toBe('unixClient'); - expect(data.message).toBe('I am unix client.'); - - } - ); - - setTimeout( - function(){ - expect(clientCounter).toBe(1); - - done(); - },2000 - ); - } - ); - - ipc.server.start(); - - } - ); - } + let clientCounter =0; + ipc.config.maxConnections=1; + ipc.config.networkPort='/tmp/app.testWorld'; + + ipc.serve( + function serverStarted(){ + ipc.server.on( + 'message', + function gotMessage(data,socket){ + + clientCounter++; + expect(data.id).toBe('unixClient'); + expect(data.message).toBe('I am unix client.'); + + } + ); + + const counterTimer=2000; + + setTimeout( + function testTimer(){ + expect(clientCounter).toBe(1); + + done(); + }, + counterTimer + ); + } + ); + + ipc.server.start(); + } + ); + } ); - diff --git a/spec/support/jasmineTest/tcpClient.js b/spec/support/jasmineTest/tcpClient.js index d07cb4e..ead2d4a 100644 --- a/spec/support/jasmineTest/tcpClient.js +++ b/spec/support/jasmineTest/tcpClient.js @@ -1,3 +1,5 @@ +'use strict'; + const ipc=require('../../../node-ipc'); const process=require('process'); const dieAfter=30000; diff --git a/spec/support/jasmineTest/tcpServer.js b/spec/support/jasmineTest/tcpServer.js index 21a1a73..d17711c 100644 --- a/spec/support/jasmineTest/tcpServer.js +++ b/spec/support/jasmineTest/tcpServer.js @@ -1,3 +1,5 @@ +'use strict'; + const ipc=require('../../../node-ipc'); const process=require('process'); const dieAfter=30000; diff --git a/spec/support/jasmineTest/tcpServerSync.js b/spec/support/jasmineTest/tcpServerSync.js index 9d0317f..5b45bd5 100644 --- a/spec/support/jasmineTest/tcpServerSync.js +++ b/spec/support/jasmineTest/tcpServerSync.js @@ -1,3 +1,5 @@ +'use strict'; + const ipc=require('../../../node-ipc'); const process=require('process'); const dieAfter=30000; diff --git a/spec/support/jasmineTest/testFile.js b/spec/support/jasmineTest/testFile.js index d124dbc..856ad52 100644 --- a/spec/support/jasmineTest/testFile.js +++ b/spec/support/jasmineTest/testFile.js @@ -1,3 +1,4 @@ +'use strict'; const cmd=require('node-cmd'); cmd.run(`node ${__dirname}/unixServer.js`); diff --git a/spec/support/jasmineTest/udp4Server.js b/spec/support/jasmineTest/udp4Server.js index 7c85890..faedc8e 100644 --- a/spec/support/jasmineTest/udp4Server.js +++ b/spec/support/jasmineTest/udp4Server.js @@ -1,3 +1,5 @@ +'use strict'; + const ipc=require('../../../node-ipc'); const process=require('process'); const dieAfter=30000; diff --git a/spec/support/jasmineTest/udp6Server.js b/spec/support/jasmineTest/udp6Server.js index 82c55f2..79b5698 100644 --- a/spec/support/jasmineTest/udp6Server.js +++ b/spec/support/jasmineTest/udp6Server.js @@ -1,3 +1,5 @@ +'use strict'; + const ipc=require('../../../node-ipc'); const process=require('process'); const dieAfter=30000; diff --git a/spec/support/jasmineTest/unixClient.js b/spec/support/jasmineTest/unixClient.js index 734e287..548935d 100644 --- a/spec/support/jasmineTest/unixClient.js +++ b/spec/support/jasmineTest/unixClient.js @@ -1,3 +1,5 @@ +'use strict'; + const ipc=require('../../../node-ipc'); const process=require('process'); const dieAfter=30000; diff --git a/spec/support/jasmineTest/unixServer.js b/spec/support/jasmineTest/unixServer.js index f59225b..b2d7e73 100644 --- a/spec/support/jasmineTest/unixServer.js +++ b/spec/support/jasmineTest/unixServer.js @@ -1,3 +1,5 @@ +'use strict'; + const ipc=require('../../../node-ipc'); const process=require('process'); const dieAfter=30000; diff --git a/spec/support/jasmineTest/unixServerSync.js b/spec/support/jasmineTest/unixServerSync.js index 6652ff6..f937828 100644 --- a/spec/support/jasmineTest/unixServerSync.js +++ b/spec/support/jasmineTest/unixServerSync.js @@ -1,3 +1,5 @@ +'use strict'; + const ipc=require('../../../node-ipc'); const process=require('process'); const dieAfter=30000; @@ -17,11 +19,27 @@ ipc.config.silent=true; ipc.serve( function serverStarted(){ + let ready=false; + let messageDelay=500; + ipc.server.on( 'message', function gotMessage(data,socket){ + if(ready){ + ipc.server.emit( + socket, + 'message', + { + id : ipc.config.id, + message : 'Error, client not wating for server response before sending request.' + } + ); + } + ready=true; + setTimeout( function delayedMessage(){ + ready=false; ipc.server.emit( socket, 'message',