mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 15:14:17 +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:
1 parent
9675a6e24b
commit
04a965edb3
11 files changed
+148
No files matched your search
@@ -33,6 +33,16 @@ ESLconnection::~ESLconnection()
|
||||
|
||||
}
|
||||
|
||||
int ESLconnection::socketDescriptor()
|
||||
{
|
||||
if (handle.connected) {
|
||||
return (int) handle.sock;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
int ESLconnection::disconnect()
|
||||
{
|
||||
if (handle.connected) {
|
||||
|
||||
Reference in new issue
Block a user