diff options
Diffstat (limited to 'AudioManagerDaemon/test/sockethandler/sockethandlerTest.cpp')
-rw-r--r-- | AudioManagerDaemon/test/sockethandler/sockethandlerTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/AudioManagerDaemon/test/sockethandler/sockethandlerTest.cpp b/AudioManagerDaemon/test/sockethandler/sockethandlerTest.cpp index c9c17cb..bb72324 100644 --- a/AudioManagerDaemon/test/sockethandler/sockethandlerTest.cpp +++ b/AudioManagerDaemon/test/sockethandler/sockethandlerTest.cpp @@ -25,13 +25,13 @@ sockethandlerTest::~sockethandlerTest() { } -void fdCallBack::connectSocket(int fd, const short events,void * userData) +void fdCallBack::connectSocket(int fd, const int16_t events,void * userData) { std::cout<<"Socket connection received and open"<<std::endl; //accept the connection mSocketConnection = accept(fd, NULL, NULL); - short event = 0; + int16_t event = 0; event |=POLLIN; shPollCallBack* buf=&pSocketDataCallback; @@ -52,7 +52,7 @@ fdCallBack::fdCallBack(SocketHandler *SocketHandler) -void am::fdCallBack::handleSocketData(int fd, const short events, void* userdata) +void am::fdCallBack::handleSocketData(int fd, const int16_t events, void* userdata) { char buffer[3000]; std::string msg; @@ -148,7 +148,7 @@ void* playWithSocketServer(void* data) listen(socketHandle, 3); //prepare the event (we want POLLIN because we need to listen) - short event = 0; + int16_t event = 0; event |=POLLIN; shPollCallBack* buf=&testCallback.pSocketConnectionCallback; |