MySQL Forums
Forum List  »  Connector/C++

socket creation when library is loaded
Posted by: ankit pradhan
Date: April 25, 2017 11:52AM

Hi

I have a custom c++ application that uses mysql-connector-c++/1.1.5 as a shared object to communicate with our db.

I saw in the debugger that when I run my program, when the library gets loaded it tries to create a linux socket. Even before main() of my application has been called. It looks like that there is some code in the _init() section of the library.

Can someone throw some light on what exactly is the library trying to do here?
I want to defer these socket calls till after main() has been called. Is there a way to do that?

I am running on Linux SL 7.

Thanks
Ankit Pradhan

Options: ReplyQuote


Subject
Views
Written By
Posted
socket creation when library is loaded
177
April 25, 2017 11:52AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.