From: Jay Freeman (saurik) Date: Tue, 10 Sep 2013 19:28:55 +0000 (-0700) Subject: Allow for connections from the client to the server. X-Git-Tag: v0.9.500%b1~4 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/666eedb9e858b6eb507a283012fc3bb215953f0e?ds=inline Allow for connections from the client to the server. --- diff --git a/Console.cpp b/Console.cpp index 3dede2f..fe03c31 100644 --- a/Console.cpp +++ b/Console.cpp @@ -47,9 +47,11 @@ #include #include +#include #include #include #include +#include #include #include @@ -616,6 +618,9 @@ int Main(int argc, char const * const argv[], char const * const envp[]) { pid_t pid(_not(pid_t)); #endif + const char *host(NULL); + const char *port(NULL); + apr_getopt_t *state; _aprcall(apr_getopt_init(&state, pool, argc, argv)); @@ -628,6 +633,7 @@ int Main(int argc, char const * const argv[], char const * const envp[]) { #ifdef CY_ATTACH "p:" #endif + "r:" "s" , &opt, &arg)); @@ -641,6 +647,7 @@ int Main(int argc, char const * const argv[], char const * const envp[]) { #ifdef CY_ATTACH " [-p ]" #endif + " [-r ]" " [