changes
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user