GetServer Example for C++ 6.0 and later
void CDicomNetSink::OnNetReceiveAssociateRequest (long hNet, long hPDU)
{
long hServer;
_bstr_t szServer;
long lPort;
CString szOut;
hServer = m_pDlg->m_pLEADDicomNet->GetServer (hNet);
if(hServer != 0)
{
szServer = m_pDlg->m_pLEADDicomNet->GetHostAddress (hServer);
lPort = m_pDlg->m_pLEADDicomNet->GetHostPort (hServer);
szOut.Format("Server = %s Port = %ld", (char*)szServer, lPort);
AfxMessageBox(szOut);
}
}