Automated merge with ssh://hg@repo.hottis.de/yadyn
This commit is contained in:
commit
500c773693
@ -1,4 +1,4 @@
|
||||
CC=gcc
|
||||
CC?=gcc
|
||||
CFLAGS=-g
|
||||
|
||||
|
||||
|
BIN
client/d/Readme-Mac.odt
Normal file
BIN
client/d/Readme-Mac.odt
Normal file
Binary file not shown.
16
client/d/net.yadynns.client.d.plist
Normal file
16
client/d/net.yadynns.client.d.plist
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>net.yadynns.client.d</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/usr/local/bin/yadynd</string>
|
||||
<string>dynid</string> <!-- DYN_ID -->
|
||||
<string>geheim</string> <!-- SHARED_SECRET -->
|
||||
</array>
|
||||
<key>StartInterval</key>
|
||||
<integer>120</integer>
|
||||
</dict>
|
||||
</plist>
|
@ -5,11 +5,16 @@ import std.string;
|
||||
import std.md5;
|
||||
|
||||
|
||||
void main() {
|
||||
const char[] DYN_ID = "test";
|
||||
const char[] SHARED_SECRET = "geheim";
|
||||
int main(char[][] args) {
|
||||
if (args.length != 4) {
|
||||
printf("illegal arguments\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
const char[] SERVER_IP = "172.16.2.1";
|
||||
char[] DYN_ID = args[1];
|
||||
char[] SHARED_SECRET = args[2];
|
||||
|
||||
char[] SERVER_IP = args[3];
|
||||
const int SERVER_PORT = 8053;
|
||||
|
||||
|
||||
@ -25,4 +30,6 @@ void main() {
|
||||
InternetAddress serverAddress = new InternetAddress(SERVER_IP, SERVER_PORT);
|
||||
sock.sendTo(dataToSend, serverAddress);
|
||||
sock.close();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user