From 666eedb9e858b6eb507a283012fc3bb215953f0e Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 10 Sep 2013 12:28:55 -0700 Subject: [PATCH] Allow for connections from the client to the server. --- Console.cpp | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ Handler.mm | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+) 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 ]" " [