return -1;
}
- if (m_impl->socket_active.set_nonblock_mode () == -1)
- std::cerr << __func__ << " socket_active.set_nonblock_mode () is failed!!!\n";
-
m_impl->magic_active = magic;
m_impl->send.clear ();
m_pending_active_imcontrol_id = -1;
}
- if (const_cast<Socket &>(client).set_nonblock_mode () == -1)
- std::cerr << __func__ << " client.set_nonblock_mode () is failed!!!\n";
-
unlock ();
return true;
}
trans.put_command (SCIM_TRANS_CMD_OPEN_CONNECTION);
trans.put_data (String (SCIM_BINARY_VERSION));
trans.put_data (client_type);
-
+ if (const_cast<Socket &>(socket).set_nonblock_mode () == -1)
+ std::cerr << __func__ << "set_nonblock_mode () is failed!!!\n";
if (trans.write_to_socket (socket)) {
int cmd;
String server_types;
return String ("");
Transaction trans;
-
+ if (const_cast<Socket &>(socket).set_nonblock_mode () == -1)
+ std::cerr << __func__ << "set_nonblock_mode () is failed!!!\n";
if (trans.read_from_socket (socket, timeout)) {
int cmd;
String version;