1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- using CommonServer_ICE.Msg;
- using Slice;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace CommonServer_ICE.handler
- {
-
-
-
- internal class ServerTcpSendHandler : SenderDisp_
- {
-
- private ServerMsgHandler delegateHandler;
- public ServerTcpSendHandler(ServerMsgHandler 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)
- {
- Ice.TCPConnectionInfo tcpConInfo = (Ice.TCPConnectionInfo)current.con.getInfo();
- delegateHandler.Connect(recvPort, tcpConInfo.remoteAddress, tcpConInfo.remotePort);
- }
-
-
-
-
- public override void ConnectAck(Ice.Current current)
- {
-
- }
-
-
-
-
-
- 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);
- }
- }
- }
|