Add ">clientID"

This commit is contained in:
DL6ER
2017-03-12 19:55:03 +01:00
parent af4608f8ab
commit 1bea9abfd2
2 changed files with 13 additions and 0 deletions
+4
View File
@@ -190,3 +190,7 @@ memory allocated for internal data structure: 178688 bytes (178.69 KB)
dynamically allocated allocated memory used for strings: 15084 bytes (15.08 KB)
Sum: 193772 bytes (193.77 KB)
```
- `>clientID` : Get ID of currently connected client
```
6
```
+9
View File
@@ -455,6 +455,15 @@ void process_request(char *client_message, int *sock)
if(debugclients)
logg_int("Sent memory data to client, ID: ", *sock);
}
else if(command(client_message, ">clientID"))
{
processed = true;
sprintf(server_message,"%i\n", *sock);
swrite(server_message, *sock);
if(debugclients)
logg_int("Sent client ID to client, ID: ", *sock);
}
// End of queryable commands
if(processed)