12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- using CommonNetwork_ICE.Msg;
- using Slice;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace CommonNetwork_ICE.handler
- {
-
-
-
- internal class ClientTcpSendHandler : SenderDisp_
- {
- private ClientMsgHandler delegateHandler;
- public ClientTcpSendHandler(ClientMsgHandler delegateHandler)
- {
- this.delegateHandler = delegateHandler;
- }
-
-
-
-
-
-
- public override void SendData(int recvPort, TransMessage message, Ice.Current current)
- {
- Ice.TCPConnectionInfo tcpConInfo = (Ice.TCPConnectionInfo)current.con.getInfo();
- delegateHandler.RecvData(recvPort, message, tcpConInfo.remoteAddress, tcpConInfo.remotePort);
- }
-
-
-
-
-
-
- public override void SendAck(int recvPort, long serial, Ice.Current current)
- {
- Ice.TCPConnectionInfo tcpConInfo = (Ice.TCPConnectionInfo)current.con.getInfo();
- delegateHandler.SendDataRecvAck(recvPort, serial, tcpConInfo.remoteAddress, tcpConInfo.remotePort);
- }
-
-
-
-
-
- public override void Connect(int recvPort, Ice.Current current)
- {
-
- }
-
-
-
-
- public override void ConnectAck(Ice.Current current)
- {
- Ice.TCPConnectionInfo tcpConInfo = (Ice.TCPConnectionInfo)current.con.getInfo();
- delegateHandler.ConnectAck(tcpConInfo.remoteAddress, tcpConInfo.remotePort);
- }
-
-
-
-
-
- public override void Close(int recvPort, Ice.Current current)
- {
- Ice.TCPConnectionInfo tcpConInfo = (Ice.TCPConnectionInfo)current.con.getInfo();
- delegateHandler.Close(recvPort, tcpConInfo.remoteAddress, tcpConInfo.remotePort);
- }
-
-
-
-
-
- public override void CloseAck(int recvPort, Ice.Current current)
- {
- Ice.TCPConnectionInfo tcpConInfo = (Ice.TCPConnectionInfo)current.con.getInfo();
- delegateHandler.CloseAck(recvPort, tcpConInfo.remoteAddress, tcpConInfo.remotePort);
- }
- }
- }
|