mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
some more "std::string" to "const char *" conversations.
git-svn-id: svn://localhost/trunk/ardour2@208 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d7cd04b719
commit
796ded66a3
5 changed files with 9 additions and 9 deletions
|
|
@ -185,7 +185,7 @@ ImageFrameSocketHandler::image_socket_callback(void *arg, int32_t fd, GdkInputCo
|
|||
* false otherwise
|
||||
*/
|
||||
bool
|
||||
ImageFrameSocketHandler::connect(std::string hostIp, int32_t port)
|
||||
ImageFrameSocketHandler::connect(const char * hostIp, int32_t port)
|
||||
{
|
||||
if (is_connected())
|
||||
{
|
||||
|
|
@ -205,7 +205,7 @@ ImageFrameSocketHandler::connect(std::string hostIp, int32_t port)
|
|||
sockaddr_in m_addr ;
|
||||
m_addr.sin_family = AF_INET ;
|
||||
m_addr.sin_port = htons(port) ;
|
||||
m_addr.sin_addr.s_addr = inet_addr(hostIp.c_str()) ;
|
||||
m_addr.sin_addr.s_addr = inet_addr(hostIp) ;
|
||||
|
||||
int status = ::connect(theArdourToCompositorSocket, (sockaddr *) &m_addr, sizeof(m_addr)) ;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue