NetReceive Example for C#

//LEADDICOMNet1 is a predefined LEADDicomNet object
private void LEADDICOMNet1_NetReceive(int hNet, int nStatus, short nType, object pData, int lSize)
{
   MessageBox.Show ( "data received - " + LEADDICOMNet1.GetPeerAddress(hNet) + " Status=" + nStatus.ToString() + " Type=" + nType.ToString() ) ;
}