public PackRawServerSide(Socket sock) : base(sock) { onMessageReadyToTx = new OnMessageReadyToTx(OnMsgRead4Tx); m_Id = sock.RemoteEndPoint; senderPackLib = new SenderPackLib.SenderPackLib(m_Id, onMessageReadyToTx); }
public Stream2Message(OnMessageReadyToTx onMsgReadyToTx) { onMessageReadyToTx = onMsgReadyToTx; onTxMessageParam = null; msgHandlers = new OnMessageReceived[(int)PackMsg.PackMsg.MsgKind_e.PACK_MSG_NUMBER]; InitRxStateMachine(); }
public Stream2Message(OnMessageReadyToTx onMsgReadyToTx) { onMessageReadyToTx = onMsgReadyToTx; onTxMessageParam = null; msgHandlers = new OnMessageReceived[(int)PackMsg.PackMsg.MsgKind_e.PACK_MSG_NUMBER]; InitRxStateMachine(); }
public PackRawServerSide(Socket sock) : base(sock) { onMessageReadyToTx = new OnMessageReadyToTx(OnMsgRead4Tx); m_Id = sock.RemoteEndPoint; senderPackLib = new SenderPackLib.SenderPackLib(m_Id, onMessageReadyToTx); }
void InitiateTransfer() { OnMessageReadyToTx onMessageReadyToTx = new OnMessageReadyToTx(OnMsgRead4Tx); senderPackLib = new SenderPackLib.SenderPackLib(fileBuff, onMessageReadyToTx); AddMoreBytes(); }
public PackClientSide(Socket clientSocket, IPEndPoint remoteEndPoint) : base(clientSocket, remoteEndPoint) { m_onData = new OnData(OnDataReceived); m_onMsgRead4Tx = new OnMessageReadyToTx(OnMsgRead4Tx); m_onEnd = new OnEnd(OnTransationEnd); m_receiverPackLib = new ReceiverPackLib.ReceiverPackLib(m_Id,m_onData, m_onEnd, null, m_onMsgRead4Tx); }
public PackClientSide(Socket clientSocket, IPEndPoint remoteEndPoint) : base(clientSocket, remoteEndPoint) { m_onData = new OnData(OnDataReceived); m_onMsgRead4Tx = new OnMessageReadyToTx(OnMsgRead4Tx); m_onEnd = new OnEnd(OnTransationEnd); m_receiverPackLib = new ReceiverPackLib.ReceiverPackLib(m_Id, m_onData, m_onEnd, null, m_onMsgRead4Tx); }
public SenderPackLib(EndPoint id, OnMessageReadyToTx onMsgReadyToTx) : base(onMsgReadyToTx) { m_Id = id; ChunkChainDataTypes.OnMessageReceived onPredMsg = new ChunkChainDataTypes.OnMessageReceived(ProcessPredMsg); base.SetCallback((int)PackMsg.PackMsg.MsgKind_e.PACK_PRED_MSG_KIND, onPredMsg); InitInstance(null); }
private void Form1_Load(object sender, EventArgs e) { FileName = ""; StopFlag = false; OnData onData = new OnData(OnDataReceived); OnMessageReadyToTx onMsgRead4Tx = new OnMessageReadyToTx(OnMsgRead4Tx); OnEnd onEnd = new OnEnd(OnTransationEnd); try { receiverPackLib = new ReceiverPackLib.ReceiverPackLib(onData, onEnd, null, onMsgRead4Tx); } catch (Exception exc) { MessageBox.Show(exc.Message, "Fatal"); } updateStatus = new UpdateStatus(Update_Status); updateControls = new UpdateControls(Update_Controls); Disposed += new EventHandler(Form1_Disposed); }
public ReceiverPackLib(EndPoint id, ChunkChainDataTypes.OnData onData, OnEnd onEnd, object onEndParam, OnMessageReadyToTx onMsgReadyToTx) : base(onMsgReadyToTx) { m_Id = id; OnMessageReceived onDataMsg = new OnMessageReceived(ProcessDataMsg); OnMessageReceived onPredAckMsg = new OnMessageReceived(ProcessPredAckMsg); base.SetCallback((int)PackMsg.PackMsg.MsgKind_e.PACK_DATA_MSG_KIND, onDataMsg); base.SetCallback((int)PackMsg.PackMsg.MsgKind_e.PACK_FINALLY_PROCESSED_DATA_MSG_KIND, onDataMsg); base.SetCallback((int)PackMsg.PackMsg.MsgKind_e.PACK_PRED_ACK_MSG_KIND, onPredAckMsg); InitInstance(onData, onEnd, onEndParam); }
public PackHttpServerSide(Socket sock) : base(sock) { m_onMessageReadyToTx = new OnMessageReadyToTx(OnMsgRead4Tx); m_senderPackLib = new SenderPackLib.SenderPackLib(m_Id, m_onMessageReadyToTx); }
public PackHttpServerSide(Socket sock) : base(sock) { m_onMessageReadyToTx = new OnMessageReadyToTx(OnMsgRead4Tx); m_senderPackLib = new SenderPackLib.SenderPackLib(m_Id,m_onMessageReadyToTx); }
void InitiateTransfer() { OnMessageReadyToTx onMessageReadyToTx = new OnMessageReadyToTx(OnMsgRead4Tx); senderPackLib = new SenderPackLib.SenderPackLib(fileBuff, onMessageReadyToTx); AddMoreBytes(); }