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
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 114450 114451 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 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 114416
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
114650 114651 114652 114653 114654 114655 114656 114657 114658 114659 114660 114661 114662 114663 114664 114665 114666 114667 114668 114669 114670 114671 114672 114673 114674 114675 114676 114677 114678 114679 114680 114681 114682 114683 114684 114685 114686 114687 114688 114689 114690 114691 114692 114693 114694 114695 114696 114697 114698 114699 114700 114701 114702 114703 114704 114705 114706 114707 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 114650
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
114588 114589 114590 114591 114592 114593 114594 114595 114596 114597 114598 114599 114600 114601 114602 114603 114604 114605 114606 114607 114608 114609 114610 114611 114612 114613 114614 114615 114616 114617 114618 114619 114620 114621 114622 114623 114624 114625 114626 114627 114628 114629 114630 114631 114632 114633 114634 114635 114636 114637 114638 114639 114640 114641 114642 114643 114644 114645 114646 114647 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 114588
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
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 114572 114573 114574 114575 114576 114577 114578 114579 114580 114581 114582 114583 114584 114585 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 114540
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
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 114512 114513 114514 114515 114516 114517 114518 114519 114520 114521 114522 114523 114524 114525 114526 114527 114528 114529 114530 114531 114532 114533 114534 114535 114536 114537 |
# File 'ext/quickfix/QuickfixRuby.cpp', line 114485
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;
}
|