mirror of
https://github.com/jeremysrand/Listener.git
synced 2024-11-21 16:31:55 +00:00
Add another idea for future improvement. Show the IP address of the GS in the NDA window. Add a file to document the protocol (more to come).
This commit is contained in:
parent
85373a72d0
commit
e43d27bd82
@ -52,6 +52,7 @@
|
||||
/* End PBXCopyFilesBuildPhase section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
9D2ABA2827E3DB0400F40856 /* Protocol.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = Protocol.md; sourceTree = "<group>"; };
|
||||
9D51559926A1ED510075EBC7 /* Listener */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = Listener; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
9D51559C26A1ED510075EBC7 /* Listener.2mg */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = Listener.2mg; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
9D51559E26A1ED510075EBC7 /* Listener.shk */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = Listener.shk; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
@ -119,6 +120,7 @@
|
||||
9D5155A826A1ED510075EBC7 /* main.rez */,
|
||||
9D5155AA26A1ED510075EBC7 /* Makefile */,
|
||||
9D5156A426A8C8B30075EBC7 /* Readme.md */,
|
||||
9D2ABA2827E3DB0400F40856 /* Protocol.md */,
|
||||
9D5155AC26A1ED510075EBC7 /* make */,
|
||||
9D5155C526A1ED510075EBC7 /* Supporting Files */,
|
||||
);
|
||||
|
3
Listener/Protocol.md
Normal file
3
Listener/Protocol.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Listener Protocol
|
||||
|
||||
|
@ -58,3 +58,4 @@ There are a number of improvements to make:
|
||||
* Instead of injecting keyboard events through the Event Manager on the GS, look at injecting fake keypresses into ADB itself. This should improve compatibility with applications that do not get their key events from the Event Manager. Based on what I have read, the SendInfo toolbox routine with the keyCode command should be able to do this. It should be possible based on what things like Video Keyboard does in the System 6.0.1 distribution.
|
||||
* Investigate if some minimal amount of bonjour support could be introduced on the GS side so that the modern device could detect its presence on the network. That way, you wouldn't need to set the IP address of the GS in the app.
|
||||
* There have been suggestions to turn this into a general solution for integrating a modern machine with a GS. This might involve things like file transfer in either direction, clipboard syncing and perhaps other things along those lines.
|
||||
* Add a mode in the app where you can just type instead of using speech. And this would let you paste also.
|
||||
|
@ -126,11 +126,13 @@ static tStateHandler stateHandlers[NUM_LISTEN_STATES] = {
|
||||
|
||||
handleErrorState,
|
||||
};
|
||||
|
||||
static char waitingMessage[48] = "Waiting for connection";
|
||||
static char * stateMessages[NUM_LISTEN_STATES] = {
|
||||
"Starting network tools",
|
||||
"Connecting to network",
|
||||
"Creating listen socket",
|
||||
"Waiting for connection",
|
||||
waitingMessage,
|
||||
"Establishing connection",
|
||||
"Connected to device",
|
||||
"Receiving text",
|
||||
@ -395,6 +397,15 @@ void handleNetworkConnectedState(void)
|
||||
Word error;
|
||||
|
||||
TCPIPPoll();
|
||||
|
||||
Long ipAddress = TCPIPGetMyIPAddress();
|
||||
if (!toolerror()) {
|
||||
strcpy(waitingMessage, "Waiting for connection at ");
|
||||
TCPIPConvertIPToCASCII(ipAddress, &(waitingMessage[26]), 0);
|
||||
} else {
|
||||
strcpy(waitingMessage, "Waiting for connection");
|
||||
}
|
||||
|
||||
globals->listenIpid = TCPIPLogin(userId, 0, 0, 0, 64);
|
||||
if (toolerror()) {
|
||||
enterErrorState("Unable to create socket", toolerror());
|
||||
|
Loading…
Reference in New Issue
Block a user