Network - Fixed warning, made functions private.
Fixed warnings. Made functions regarding the thread private in listener.
This commit is contained in:
parent
1466c0db31
commit
e837b80e43
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue