1
This commit is contained in:
parent
057c9b6161
commit
895aec82c1
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#include <f8/udplog.h>
|
#include <f8/udplog.h>
|
||||||
#include <f8/timer.h>
|
#include <f8/timer.h>
|
||||||
|
#include <f8/msgqueue.h>
|
||||||
|
|
||||||
#include "ss_proto.pb.h"
|
#include "ss_proto.pb.h"
|
||||||
#include "ss_msgid.pb.h"
|
#include "ss_msgid.pb.h"
|
||||||
@ -165,12 +166,16 @@ void UpStream::on_connect(a8::TcpClient* sender)
|
|||||||
sender->remote_address,
|
sender->remote_address,
|
||||||
sender->remote_port
|
sender->remote_port
|
||||||
});
|
});
|
||||||
#if 0
|
f8::MsgQueue::Instance()->PostMsg
|
||||||
App::Instance()->AddIMMsg(IM_UpStreamConnect,
|
(
|
||||||
a8::XParams()
|
IM_UpStreamConnect,
|
||||||
.SetSender(instance_id)
|
a8::Args
|
||||||
);
|
(
|
||||||
#endif
|
{
|
||||||
|
instance_id
|
||||||
|
}
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpStream::on_disconnect(a8::TcpClient* sender)
|
void UpStream::on_disconnect(a8::TcpClient* sender)
|
||||||
@ -183,12 +188,16 @@ void UpStream::on_disconnect(a8::TcpClient* sender)
|
|||||||
sender->remote_address,
|
sender->remote_address,
|
||||||
sender->remote_port
|
sender->remote_port
|
||||||
});
|
});
|
||||||
#if 0
|
f8::MsgQueue::Instance()->PostMsg
|
||||||
App::Instance()->AddIMMsg(IM_UpStreamDisconnect,
|
(
|
||||||
a8::XParams()
|
IM_UpStreamDisconnect,
|
||||||
.SetSender(instance_id)
|
a8::Args
|
||||||
);
|
(
|
||||||
#endif
|
{
|
||||||
|
instance_id
|
||||||
|
}
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpStream::on_socketread(a8::TcpClient* sender, char* buf, unsigned int len)
|
void UpStream::on_socketread(a8::TcpClient* sender, char* buf, unsigned int len)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user