* or a negative value upon failure (negative values are invalid file
* descriptors)
*/
- int OpenTCPSocket();
+ int OpenTCPSocket(char* addr, int socktype = SOCK_STREAM);
};
};
/** The creator/owner of this object
*/
InspIRCd* ServerInstance;
+ std::string desc;
+ int family;
public:
/** Create a new listening socket
*/
/** Close the socket
*/
~ListenSocket();
+ /** Set descriptive text
+ */
+ void SetDescription(const std::string &description)
+ {
+ desc = description;
+ }
+
+ const std::string& GetDescription()
+ {
+ return desc;
+ }
};
#endif