checkpoint. first cut of client and server apps. not tested

yet but they compile and *should* work as is.
This commit is contained in:
crs
2001-10-08 19:24:46 +00:00
parent 23f1b1aba1
commit 23f948d55a
12 changed files with 434 additions and 40 deletions

View File

@@ -545,6 +545,7 @@ void CServer::mapPosition(CScreenInfo* src,
}
}
#include "CTCPListenSocket.h"
void CServer::acceptClients(void*)
{
// add this thread to the list of threads to cancel. remove from
@@ -554,7 +555,8 @@ void CServer::acceptClients(void*)
std::auto_ptr<IListenSocket> listen;
try {
// create socket listener
listen.reset(m_socketFactory->createListen());
// listen.reset(m_socketFactory->createListen());
listen.reset(new CTCPListenSocket); // FIXME
// bind to the desired port. keep retrying if we can't bind
// the address immediately.
@@ -712,7 +714,12 @@ void CServer::openPrimaryScreen()
m_primary->open(this);
// add connection
m_active = addConnection(CString("primary"/* FIXME */), NULL);
m_active = addConnection(CString("primary"/* FIXME */), NULL);
// update info
m_primary->getSize(&m_active->m_width, &m_active->m_height);
m_active->m_zoneSize = m_primary->getJumpZoneSize();
// FIXME -- need way for primary screen to call us back
}
void CServer::closePrimaryScreen() throw()