mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
add socketDescriptor() method to ESL::Connection obj
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13770 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -33,6 +33,16 @@ ESLconnection::~ESLconnection()
|
||||
|
||||
}
|
||||
|
||||
int ESLconnection::socketDescriptor()
|
||||
{
|
||||
if (handle.connected) {
|
||||
return (int) handle.sock;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
int ESLconnection::disconnect()
|
||||
{
|
||||
if (handle.connected) {
|
||||
|
@@ -76,6 +76,7 @@ class ESLconnection {
|
||||
ESLconnection(const char *host, const char *port, const char *password);
|
||||
ESLconnection(int socket);
|
||||
virtual ~ESLconnection();
|
||||
int socketDescriptor();
|
||||
int connected();
|
||||
ESLevent *getInfo();
|
||||
int send(const char *cmd);
|
||||
|
Reference in New Issue
Block a user