// Version 0.9a // 27 January 2007 #include #include using namespace std; #include "UDPserver.h" #include "SocketException.h" class Receiver { private: int serverPort; string msgCode; string msgLabel; string msgType; string callID; string fromIP; string toIP; void setMsgType(const char* packet); void setMsgCodeAndLabel(int i); void setCallID(const char* packet); void setFromIP(const char* packet); void setToIP(const char* packet); public: // do nothing for now Receiver() { serverPort = 5060; } // should be used to deallocate all the char memory. // do nothing for now ~Receiver() { } // this method prints the method also void setRecieverPort(int portNum); void getMsg(string); string getMsgCode() { return msgCode; } string getMsgLabel() { return msgLabel; } string getMsgType() { return msgType; } string getCallID() { return callID; } string getFromIP() { return fromIP; } string getToIP() { return toIP; } };