2018-05-09 15:47:29 +00:00
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
// <auto-generated />
|
|
|
|
//
|
|
|
|
// This file was automatically generated by SWIG (http://www.swig.org).
|
|
|
|
// Version 3.0.12
|
|
|
|
//
|
|
|
|
// Do not make changes to this file unless you know what you are doing--modify
|
|
|
|
// the SWIG interface file instead.
|
|
|
|
//------------------------------------------------------------------------------
|
2010-02-15 21:33:44 +00:00
|
|
|
|
|
|
|
|
2017-06-27 17:10:04 +00:00
|
|
|
public class ESLconnection : global::System.IDisposable {
|
|
|
|
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
|
2010-02-15 21:33:44 +00:00
|
|
|
protected bool swigCMemOwn;
|
|
|
|
|
2017-06-27 17:10:04 +00:00
|
|
|
internal ESLconnection(global::System.IntPtr cPtr, bool cMemoryOwn) {
|
2010-02-15 21:33:44 +00:00
|
|
|
swigCMemOwn = cMemoryOwn;
|
2017-06-27 17:10:04 +00:00
|
|
|
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
|
2010-02-15 21:33:44 +00:00
|
|
|
}
|
|
|
|
|
2017-06-27 17:10:04 +00:00
|
|
|
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ESLconnection obj) {
|
|
|
|
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
|
2010-02-15 21:33:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
~ESLconnection() {
|
|
|
|
Dispose();
|
|
|
|
}
|
|
|
|
|
|
|
|
public virtual void Dispose() {
|
|
|
|
lock(this) {
|
2017-06-27 17:10:04 +00:00
|
|
|
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
|
2015-06-16 17:43:53 +00:00
|
|
|
if (swigCMemOwn) {
|
|
|
|
swigCMemOwn = false;
|
|
|
|
ESLPINVOKE.delete_ESLconnection(swigCPtr);
|
|
|
|
}
|
2017-06-27 17:10:04 +00:00
|
|
|
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
|
2010-02-15 21:33:44 +00:00
|
|
|
}
|
2017-06-27 17:10:04 +00:00
|
|
|
global::System.GC.SuppressFinalize(this);
|
2010-02-15 21:33:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-07-12 19:06:29 +00:00
|
|
|
public ESLconnection(string host, int port, string user, string password) : this(ESLPINVOKE.new_ESLconnection__SWIG_0(host, port, user, password), true) {
|
2010-02-15 21:33:44 +00:00
|
|
|
}
|
|
|
|
|
2013-07-12 19:06:29 +00:00
|
|
|
public ESLconnection(string host, int port, string password) : this(ESLPINVOKE.new_ESLconnection__SWIG_1(host, port, password), true) {
|
2010-02-15 21:33:44 +00:00
|
|
|
}
|
|
|
|
|
2013-07-12 19:06:29 +00:00
|
|
|
public ESLconnection(string host, string port, string user, string password) : this(ESLPINVOKE.new_ESLconnection__SWIG_2(host, port, user, password), true) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public ESLconnection(string host, string port, string password) : this(ESLPINVOKE.new_ESLconnection__SWIG_3(host, port, password), true) {
|
|
|
|
}
|
|
|
|
|
|
|
|
public ESLconnection(int socket) : this(ESLPINVOKE.new_ESLconnection__SWIG_4(socket), true) {
|
2010-02-15 21:33:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public int SocketDescriptor() {
|
|
|
|
int ret = ESLPINVOKE.ESLconnection_SocketDescriptor(swigCPtr);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int Connected() {
|
|
|
|
int ret = ESLPINVOKE.ESLconnection_Connected(swigCPtr);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ESLevent GetInfo() {
|
2017-06-27 17:10:04 +00:00
|
|
|
global::System.IntPtr cPtr = ESLPINVOKE.ESLconnection_GetInfo(swigCPtr);
|
|
|
|
ESLevent ret = (cPtr == global::System.IntPtr.Zero) ? null : new ESLevent(cPtr, true);
|
2010-02-15 21:33:44 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int Send(string cmd) {
|
|
|
|
int ret = ESLPINVOKE.ESLconnection_Send(swigCPtr, cmd);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ESLevent SendRecv(string cmd) {
|
2017-06-27 17:10:04 +00:00
|
|
|
global::System.IntPtr cPtr = ESLPINVOKE.ESLconnection_SendRecv(swigCPtr, cmd);
|
|
|
|
ESLevent ret = (cPtr == global::System.IntPtr.Zero) ? null : new ESLevent(cPtr, true);
|
2010-02-15 21:33:44 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ESLevent Api(string cmd, string arg) {
|
2017-06-27 17:10:04 +00:00
|
|
|
global::System.IntPtr cPtr = ESLPINVOKE.ESLconnection_Api(swigCPtr, cmd, arg);
|
|
|
|
ESLevent ret = (cPtr == global::System.IntPtr.Zero) ? null : new ESLevent(cPtr, true);
|
2010-02-15 21:33:44 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2011-02-24 23:48:36 +00:00
|
|
|
public ESLevent Bgapi(string cmd, string arg, string job_uuid) {
|
2017-06-27 17:10:04 +00:00
|
|
|
global::System.IntPtr cPtr = ESLPINVOKE.ESLconnection_Bgapi(swigCPtr, cmd, arg, job_uuid);
|
|
|
|
ESLevent ret = (cPtr == global::System.IntPtr.Zero) ? null : new ESLevent(cPtr, true);
|
2010-02-15 21:33:44 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2010-03-05 23:10:41 +00:00
|
|
|
public ESLevent SendEvent(ESLevent send_me) {
|
2017-06-27 17:10:04 +00:00
|
|
|
global::System.IntPtr cPtr = ESLPINVOKE.ESLconnection_SendEvent(swigCPtr, ESLevent.getCPtr(send_me));
|
|
|
|
ESLevent ret = (cPtr == global::System.IntPtr.Zero) ? null : new ESLevent(cPtr, true);
|
2010-02-15 21:33:44 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2011-09-06 21:30:04 +00:00
|
|
|
public int sendMSG(ESLevent send_me, string uuid) {
|
|
|
|
int ret = ESLPINVOKE.ESLconnection_sendMSG(swigCPtr, ESLevent.getCPtr(send_me), uuid);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2010-02-15 21:33:44 +00:00
|
|
|
public ESLevent RecvEvent() {
|
2017-06-27 17:10:04 +00:00
|
|
|
global::System.IntPtr cPtr = ESLPINVOKE.ESLconnection_RecvEvent(swigCPtr);
|
|
|
|
ESLevent ret = (cPtr == global::System.IntPtr.Zero) ? null : new ESLevent(cPtr, true);
|
2010-02-15 21:33:44 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ESLevent RecvEventTimed(int ms) {
|
2017-06-27 17:10:04 +00:00
|
|
|
global::System.IntPtr cPtr = ESLPINVOKE.ESLconnection_RecvEventTimed(swigCPtr, ms);
|
|
|
|
ESLevent ret = (cPtr == global::System.IntPtr.Zero) ? null : new ESLevent(cPtr, true);
|
2010-02-15 21:33:44 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ESLevent Filter(string header, string value) {
|
2017-06-27 17:10:04 +00:00
|
|
|
global::System.IntPtr cPtr = ESLPINVOKE.ESLconnection_Filter(swigCPtr, header, value);
|
|
|
|
ESLevent ret = (cPtr == global::System.IntPtr.Zero) ? null : new ESLevent(cPtr, true);
|
2010-02-15 21:33:44 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int Events(string etype, string value) {
|
|
|
|
int ret = ESLPINVOKE.ESLconnection_Events(swigCPtr, etype, value);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ESLevent Execute(string app, string arg, string uuid) {
|
2017-06-27 17:10:04 +00:00
|
|
|
global::System.IntPtr cPtr = ESLPINVOKE.ESLconnection_Execute(swigCPtr, app, arg, uuid);
|
|
|
|
ESLevent ret = (cPtr == global::System.IntPtr.Zero) ? null : new ESLevent(cPtr, true);
|
2010-02-15 21:33:44 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ESLevent ExecuteAsync(string app, string arg, string uuid) {
|
2017-06-27 17:10:04 +00:00
|
|
|
global::System.IntPtr cPtr = ESLPINVOKE.ESLconnection_ExecuteAsync(swigCPtr, app, arg, uuid);
|
|
|
|
ESLevent ret = (cPtr == global::System.IntPtr.Zero) ? null : new ESLevent(cPtr, true);
|
2010-02-15 21:33:44 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int SetAsyncExecute(string val) {
|
|
|
|
int ret = ESLPINVOKE.ESLconnection_SetAsyncExecute(swigCPtr, val);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int SetEventLock(string val) {
|
|
|
|
int ret = ESLPINVOKE.ESLconnection_SetEventLock(swigCPtr, val);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int Disconnect() {
|
|
|
|
int ret = ESLPINVOKE.ESLconnection_Disconnect(swigCPtr);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|