Module: IP2Connection

Includes:
WIN32OLE::VARIANT
Defined in:
lib/ole20110223-013209.rb

Overview

IP2Connection Interface

Constant Summary

Constants included from WIN32OLE::VARIANT

WIN32OLE::VARIANT::VT_ARRAY, WIN32OLE::VARIANT::VT_BOOL, WIN32OLE::VARIANT::VT_BSTR, WIN32OLE::VARIANT::VT_BYREF, WIN32OLE::VARIANT::VT_CY, WIN32OLE::VARIANT::VT_DATE, WIN32OLE::VARIANT::VT_DISPATCH, WIN32OLE::VARIANT::VT_EMPTY, WIN32OLE::VARIANT::VT_ERROR, WIN32OLE::VARIANT::VT_I1, WIN32OLE::VARIANT::VT_I2, WIN32OLE::VARIANT::VT_I4, WIN32OLE::VARIANT::VT_I8, WIN32OLE::VARIANT::VT_INT, WIN32OLE::VARIANT::VT_NULL, WIN32OLE::VARIANT::VT_PTR, WIN32OLE::VARIANT::VT_R4, WIN32OLE::VARIANT::VT_R8, WIN32OLE::VARIANT::VT_UI1, WIN32OLE::VARIANT::VT_UI2, WIN32OLE::VARIANT::VT_UI4, WIN32OLE::VARIANT::VT_UI8, WIN32OLE::VARIANT::VT_UINT, WIN32OLE::VARIANT::VT_UNKNOWN, WIN32OLE::VARIANT::VT_USERDEFINED, WIN32OLE::VARIANT::VT_VARIANT

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#lastargsObject (readonly)

Returns the value of attribute lastargs.



184
185
186
# File 'lib/ole20110223-013209.rb', line 184

def lastargs
  @lastargs
end

Instance Method Details

#AppNameObject

property BSTR AppName



192
193
194
# File 'lib/ole20110223-013209.rb', line 192

def AppName()
  _getproperty(2, [], [])
end

#AppName=(val) ⇒ Object

property VOID AppName



222
223
224
# File 'lib/ole20110223-013209.rb', line 222

def AppName=(val)
  _setproperty(2, [val], [VT_BSTR])
end

#ConnectObject

method UI4 Connect



252
253
254
# File 'lib/ole20110223-013209.rb', line 252

def Connect()
  _invoke(9, [], [])
end

#Connect2(conn_str) ⇒ Object

method UI4 Connect2

BSTR conn_str [IN]


304
305
306
# File 'lib/ole20110223-013209.rb', line 304

def Connect2(conn_str)
  _invoke(18, [conn_str], [VT_BSTR])
end

#DisconnectObject

method VOID Disconnect



257
258
259
# File 'lib/ole20110223-013209.rb', line 257

def Disconnect()
  _invoke(10, [], [])
end

#HostObject

property BSTR Host



202
203
204
# File 'lib/ole20110223-013209.rb', line 202

def Host()
  _getproperty(4, [], [])
end

#Host=(val) ⇒ Object

property VOID Host



227
228
229
# File 'lib/ole20110223-013209.rb', line 227

def Host=(val)
  _setproperty(4, [val], [VT_BSTR])
end

#LoginObject

method VOID Login



262
263
264
# File 'lib/ole20110223-013209.rb', line 262

def Login()
  _invoke(11, [], [])
end

#LoginStrObject

property BSTR LoginStr



217
218
219
# File 'lib/ole20110223-013209.rb', line 217

def LoginStr()
  _getproperty(8, [], [])
end

#LoginStr=(val) ⇒ Object

property VOID LoginStr



247
248
249
# File 'lib/ole20110223-013209.rb', line 247

def LoginStr=(val)
  _setproperty(8, [val], [VT_BSTR])
end

#LogoutObject

method VOID Logout



267
268
269
# File 'lib/ole20110223-013209.rb', line 267

def Logout()
  _invoke(12, [], [])
end

#NodeNameObject

property BSTR NodeName



197
198
199
# File 'lib/ole20110223-013209.rb', line 197

def NodeName()
  _getproperty(3, [], [])
end

#Password=(val) ⇒ Object

property VOID Password



237
238
239
# File 'lib/ole20110223-013209.rb', line 237

def Password=(val)
  _setproperty(6, [val], [VT_VARIANT])
end

#PortObject

property UI4 Port



207
208
209
# File 'lib/ole20110223-013209.rb', line 207

def Port()
  _getproperty(5, [], [])
end

#Port=(val) ⇒ Object

property VOID Port



232
233
234
# File 'lib/ole20110223-013209.rb', line 232

def Port=(val)
  _setproperty(5, [val], [VT_UI4])
end

#ProcessMessage(cookie, poll_timeout) ⇒ Object

method VOID ProcessMessage

UI4 cookie [OUT]
UI4 poll_timeout [IN]


274
275
276
# File 'lib/ole20110223-013209.rb', line 274

def ProcessMessage(cookie, poll_timeout)
  keep_lastargs _invoke(13, [cookie, poll_timeout], [VT_BYREF|VT_UI4, VT_UI4])
end

#ProcessMessage2(poll_timeout) ⇒ Object

method UI4 ProcessMessage2

UI4 poll_timeout [IN]


298
299
300
# File 'lib/ole20110223-013209.rb', line 298

def ProcessMessage2(poll_timeout)
  _invoke(17, [poll_timeout], [VT_UI4])
end

#ProcessMessage3(poll_timeout) ⇒ Object

method UI4 ProcessMessage3

UI4 poll_timeout [IN]


310
311
312
# File 'lib/ole20110223-013209.rb', line 310

def ProcessMessage3(poll_timeout)
  _invoke(19, [poll_timeout], [VT_UI4])
end

#RegisterReceiver(new_receiver) ⇒ Object

method UI4 RegisterReceiver

IP2MessageReceiver new_receiver [IN]


280
281
282
# File 'lib/ole20110223-013209.rb', line 280

def RegisterReceiver(new_receiver)
  _invoke(14, [new_receiver], [VT_BYREF|VT_DISPATCH])
end

#ResolveService(service) ⇒ Object

method BSTR ResolveService

BSTR service [IN]


292
293
294
# File 'lib/ole20110223-013209.rb', line 292

def ResolveService(service)
  _invoke(16, [service], [VT_BSTR])
end

#StatusObject

property I4 Status



187
188
189
# File 'lib/ole20110223-013209.rb', line 187

def Status()
  _getproperty(1, [], [])
end

#TimeoutObject

property UI4 Timeout



212
213
214
# File 'lib/ole20110223-013209.rb', line 212

def Timeout()
  _getproperty(7, [], [])
end

#Timeout=(val) ⇒ Object

property VOID Timeout



242
243
244
# File 'lib/ole20110223-013209.rb', line 242

def Timeout=(val)
  _setproperty(7, [val], [VT_UI4])
end

#UnRegisterReceiver(cookie) ⇒ Object

method VOID UnRegisterReceiver

UI4 cookie [IN]


286
287
288
# File 'lib/ole20110223-013209.rb', line 286

def UnRegisterReceiver(cookie)
  _invoke(15, [cookie], [VT_UI4])
end