Network - Fixed warning, made functions private.

Fixed warnings.
Made functions regarding the thread private in listener.
This commit is contained in:
Pontus Fransson 2013-12-03 13:07:04 +01:00
parent 1466c0db31
commit e837b80e43
3 changed files with 4 additions and 5 deletions

View File

@ -28,7 +28,7 @@ bool Listener::Init(unsigned int port)
void Listener::Shutdown()
{
thread.Terminate();
thread.Stop();
}
void Listener::SetPostBox(Oyster::Network::IPostBox<int>* postBox)

View File

@ -28,16 +28,15 @@ namespace Oyster
void SetPostBox(IPostBox<int>* postBox);
private:
//Thread functions
bool DoWork();
void ThreadEntry();
void ThreadExit();
private:
//Function that runs in the thread.
int Accept();
private:
::Oyster::Network::Connection* connection;

View File

@ -46,9 +46,9 @@ int main()
test.nrOfFloats = 16;
test.matrix = new float[test.nrOfFloats];
for(int i = 0; i < test.nrOfFloats; i++)
for(int i = 0; i < (int)test.nrOfFloats; i++)
{
test.matrix[i] = i;
test.matrix[i] = (float)i;
}
t.Pack(test, recvBuffer);