Listen Example for C++ 6.0 and later
#define PEER_PORT 1000
{
_bstr_t strMsg;
int nRet;
_bstr_t strHostIP = "";
int iPeerPort = PEER_PORT;
//startup the network
nRet = m_pLEADDicomNet->StartUp ();
AfxMessageBox("Startup\n");
//create a server to accept up to 25 clients
m_pLEADDicomNet->Listen (strHostIP, iPeerPort, 25);
AfxMessageBox("Listen\n");
//Display "Listen" in window pane
this->SetWindowText("Listen");
m_nClientOrServer = STATUS_SERVER;
}