Permalink
Browse files

remove some log for nodeSP

  • Loading branch information...
1 parent 4d98c1d commit 53f964bdad3a23745fe4dda4632248bb1fddba9c @kaven276 committed Jun 5, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/nodes/nodeSP.js
View
@@ -59,8 +59,6 @@ SP.prototype.connect = function(){
}
} else {
// todo: remove the corresponding cmd from acknowledge-waiting queue
-// console.log(PDU);
- console.log(msg);
var req = Msg.findInQueue(me.ackQueue, PDU);
if (req && req.callback) {
req.callback(msg, req);
@@ -162,7 +160,7 @@ if (bUnitText) {
var sp = new SP('202.99.87.201', 8801, 'dialbook', 'dialbooktest', 8801, '', 'dialbook', 'dialbooktest');
var msg, encoding = 8, content = '', option = {};
var lowDebug = 0
- , sendMethod = 1
+ , sendMethod = 2
, amount10 = 20
;
sp.connect();
@@ -216,16 +214,18 @@ if (bUnitText) {
switch (lowDebug || sendMethod) {
case 1 :
sp.send(msg, function(res, req){
+ console.log('\n\nrespond :');
+ console.log(res);
// console.log('pair are', req, res, 'end');
});
break;
case 2:
// for send and catch for "resp" event mode
sp.send(msg);
sp.on('resp', function(msgResp, msgSend){
- console.log('send message success for :');
+ console.log('\n\nresponse :');
console.log(msgResp);
- console.log(sp.ackQueue.length);
+ // console.log(sp.ackQueue.length);
});
break;
case -1:

0 comments on commit 53f964b

Please sign in to comment.