Class: Quickfix::SSLSocketInitiatorBase
- Inherits:
-
((swig_class *) SWIGTYPE_p_FIX__Initiator->clientdata)->klass
- Object
- ((swig_class *) SWIGTYPE_p_FIX__Initiator->clientdata)->klass
- Quickfix::SSLSocketInitiatorBase
- Defined in:
- ext/quickfix/QuickfixRuby.cpp
Class Method Summary collapse
Instance Method Summary collapse
- #initialize(*args, self) ⇒ Object constructor
- #passwordHandleCallback(*args) ⇒ Object
- #setCertAndKey(*args) ⇒ Object
- #setPassword(*args) ⇒ Object
Constructor Details
#initialize(*args, self) ⇒ Object
114280 114281 114282 114283 114284 114285 114286 114287 114288 114289 114290 114291 114292 114293 114294 114295 114296 114297 114298 114299 114300 114301 114302 114303 114304 114305 114306 114307 114308 114309 114310 114311 114312 114313 114314 114315 114316 114317 114318 114319 114320 114321 114322 114323 114324 114325 114326 114327 114328 114329 114330 114331 114332 114333 114334 114335 114336 114337 114338 114339 114340 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 114280
SWIGINTERN VALUE _wrap_new_SSLSocketInitiatorBase(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[4];
int ii;
argc = nargs;
if (argc > 4) SWIG_fail;
for (ii = 0; (ii < argc); ++ii) {
argv[ii] = args[ii];
}
if (argc == 3) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Application, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FIX__MessageStoreFactory, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FIX__SessionSettings, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SSLSocketInitiatorBase__SWIG_0(nargs, args, self);
}
}
}
}
if (argc == 4) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FIX__Application, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FIX__MessageStoreFactory, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FIX__SessionSettings, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_FIX__LogFactory, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_SSLSocketInitiatorBase__SWIG_1(nargs, args, self);
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "SSLSocketInitiator.new",
" SSLSocketInitiator.new(FIX::Application &, FIX::MessageStoreFactory &, FIX::SessionSettings const &)\n"
" SSLSocketInitiator.new(FIX::Application &, FIX::MessageStoreFactory &, FIX::SessionSettings const &, FIX::LogFactory &)\n");
return Qnil;
}
|
Class Method Details
.passwordHandleCB(*args) ⇒ Object
114514 114515 114516 114517 114518 114519 114520 114521 114522 114523 114524 114525 114526 114527 114528 114529 114530 114531 114532 114533 114534 114535 114536 114537 114538 114539 114540 114541 114542 114543 114544 114545 114546 114547 114548 114549 114550 114551 114552 114553 114554 114555 114556 114557 114558 114559 114560 114561 114562 114563 114564 114565 114566 114567 114568 114569 114570 114571 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 114514
SWIGINTERN VALUE
_wrap_SSLSocketInitiatorBase_passwordHandleCB(int argc, VALUE *argv, VALUE self) {
char *arg1 = (char *) 0 ;
int arg2 ;
int arg3 ;
void *arg4 = (void *) 0 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int res4 ;
int result;
VALUE vresult = Qnil;
if ((argc < 4) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
}
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char *","FIX::SSLSocketInitiator::passwordHandleCB", 1, argv[0] ));
}
arg1 = reinterpret_cast< char * >(buf1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","FIX::SSLSocketInitiator::passwordHandleCB", 2, argv[1] ));
}
arg2 = static_cast< int >(val2);
ecode3 = SWIG_AsVal_int(argv[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","FIX::SSLSocketInitiator::passwordHandleCB", 3, argv[2] ));
}
arg3 = static_cast< int >(val3);
res4 = SWIG_ConvertPtr(argv[3],SWIG_as_voidptrptr(&arg4), 0, 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","FIX::SSLSocketInitiator::passwordHandleCB", 4, argv[3] ));
}
{
if(tryRubyException([&]() mutable
{
result = (int)FIX::SSLSocketInitiator::passwordHandleCB(arg1,arg2,arg3,arg4);
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_From_int(static_cast< int >(result));
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
return vresult;
fail:
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
return Qnil;
}
|
Instance Method Details
#passwordHandleCallback(*args) ⇒ Object
114452 114453 114454 114455 114456 114457 114458 114459 114460 114461 114462 114463 114464 114465 114466 114467 114468 114469 114470 114471 114472 114473 114474 114475 114476 114477 114478 114479 114480 114481 114482 114483 114484 114485 114486 114487 114488 114489 114490 114491 114492 114493 114494 114495 114496 114497 114498 114499 114500 114501 114502 114503 114504 114505 114506 114507 114508 114509 114510 114511 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 114452
SWIGINTERN VALUE
_wrap_SSLSocketInitiatorBase_passwordHandleCallback(int argc, VALUE *argv, VALUE self) {
FIX::SSLSocketInitiator *arg1 = (FIX::SSLSocketInitiator *) 0 ;
char *arg2 = (char *) 0 ;
size_t arg3 ;
int arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
size_t val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FIX__SSLSocketInitiator, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::SSLSocketInitiator *","passwordHandleCallback", 1, self ));
}
arg1 = reinterpret_cast< FIX::SSLSocketInitiator * >(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","passwordHandleCallback", 2, argv[0] ));
}
arg2 = reinterpret_cast< char * >(buf2);
ecode3 = SWIG_AsVal_size_t(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","passwordHandleCallback", 3, argv[1] ));
}
arg3 = static_cast< size_t >(val3);
ecode4 = SWIG_AsVal_int(argv[2], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","passwordHandleCallback", 4, argv[2] ));
}
arg4 = static_cast< int >(val4);
{
if(tryRubyException([&]() mutable
{
result = (int)(arg1)->passwordHandleCallback(arg2,arg3,arg4);
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
vresult = SWIG_From_int(static_cast< int >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return vresult;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return Qnil;
}
|
#setCertAndKey(*args) ⇒ Object
114404 114405 114406 114407 114408 114409 114410 114411 114412 114413 114414 114415 114416 114417 114418 114419 114420 114421 114422 114423 114424 114425 114426 114427 114428 114429 114430 114431 114432 114433 114434 114435 114436 114437 114438 114439 114440 114441 114442 114443 114444 114445 114446 114447 114448 114449 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 114404
SWIGINTERN VALUE
_wrap_SSLSocketInitiatorBase_setCertAndKey(int argc, VALUE *argv, VALUE self) {
FIX::SSLSocketInitiator *arg1 = (FIX::SSLSocketInitiator *) 0 ;
X509 *arg2 = (X509 *) 0 ;
RSA *arg3 = (RSA *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FIX__SSLSocketInitiator, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::SSLSocketInitiator *","setCertAndKey", 1, self ));
}
arg1 = reinterpret_cast< FIX::SSLSocketInitiator * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_X509, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "X509 *","setCertAndKey", 2, argv[0] ));
}
arg2 = reinterpret_cast< X509 * >(argp2);
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_RSA, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "RSA *","setCertAndKey", 3, argv[1] ));
}
arg3 = reinterpret_cast< RSA * >(argp3);
{
if(tryRubyException([&]() mutable
{
(arg1)->setCertAndKey(arg2,arg3);
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
return Qnil;
fail:
return Qnil;
}
|
#setPassword(*args) ⇒ Object
114349 114350 114351 114352 114353 114354 114355 114356 114357 114358 114359 114360 114361 114362 114363 114364 114365 114366 114367 114368 114369 114370 114371 114372 114373 114374 114375 114376 114377 114378 114379 114380 114381 114382 114383 114384 114385 114386 114387 114388 114389 114390 114391 114392 114393 114394 114395 114396 114397 114398 114399 114400 114401 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 114349
SWIGINTERN VALUE
_wrap_SSLSocketInitiatorBase_setPassword(int argc, VALUE *argv, VALUE self) {
FIX::SSLSocketInitiator *arg1 = (FIX::SSLSocketInitiator *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FIX__SSLSocketInitiator, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FIX::SSLSocketInitiator *","setPassword", 1, self ));
}
arg1 = reinterpret_cast< FIX::SSLSocketInitiator * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(argv[0], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::string const &","setPassword", 2, argv[0] ));
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","setPassword", 2, argv[0]));
}
arg2 = ptr;
}
{
if(tryRubyException([&]() mutable
{
(arg1)->setPassword((std::string const &)*arg2);
return self;
fail:
return Qnil;
}) == Qnil)
{
SWIG_fail;
}
}
{
if( std::string("std::string const &") == "std::string &" )
{
rb_str_resize( argv[0], 0 );
rb_str_append( argv[0], rb_str_new2(arg2->c_str()) );
}
}
if (SWIG_IsNewObj(res2)) delete arg2;
return vresult;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
return Qnil;
}
|