Commit 74766de98a9a667e7471e4075714a0f2aeedc010

Authored by Perry Werneck
1 parent 31b91881

Movend a função de conexão por URL para a biblioteca principal para simplificar a biblioteca de IPC.

Showing 1 changed file with 13 additions and 0 deletions   Show diff stats
connect.c
... ... @@ -180,6 +180,19 @@ static void net_connected(H3270 *hSession, int fd, LIB3270_IO_FLAG flag, void *d
180 180 }
181 181 #endif // WIN32
182 182  
  183 + LIB3270_EXPORT int lib3270_connect_url(H3270 *hSession, const char *url, int wait)
  184 + {
  185 + CHECK_SESSION_HANDLE(hSession);
  186 +
  187 + if(url && *url)
  188 + {
  189 + lib3270_set_url(hSession,url);
  190 + }
  191 +
  192 + return lib3270_connect(hSession, wait);
  193 +
  194 + }
  195 +
183 196 LIB3270_EXPORT int lib3270_connect_host(H3270 *hSession, const char *hostname, const char *srvc, LIB3270_OPTION opt)
184 197 {
185 198 CHECK_SESSION_HANDLE(hSession);
... ...