NetConnect Example for C#
//LEADDICOMNet1 is a predefined LEADDicomNet object
private void LEADDICOMNet1_NetConnect(int
hNet, int nStatus)
{
string strOut = null;
string strTemp = null;
string strPeerAddress = null;
int lPort = 0;
strOut = "*** NetConnect Event *** " + "\r" + System.Convert.ToString(hNet)
+ " Status = " + System.Convert.ToString(nStatus);
strPeerAddress = LEADDICOMNet1.GetPeerAddress(hNet);
lPort = LEADDICOMNet1.GetPeerPort(hNet);
strTemp = "PeerAddress = " + strPeerAddress + "\r"
+ "Port = " + System.Convert.ToString(lPort);
strOut = strOut + "\r" + strTemp;
//MessageBox.Show ( strOut ) ;
}