This commit is contained in:
wn
2009-09-04 10:58:06 +02:00
parent 580471def2
commit 53751a2cad
3 changed files with 29 additions and 5 deletions

View File

@ -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 != 3) {
printf("illegal arguments\n");
return 1;
}
const char[] SERVER_IP = "172.16.2.1";
char[] DYN_ID = args[1];
char[] SHARED_SECRET = args[2];
const char[] SERVER_IP = "88.198.170.2";
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;
}