i am readed the udp-api specs and tryd to create a simple client.
I use delphi with Indy Components which comes with a simple udp solution.
But thats not the point:
The first thing you must do is Authorize by anidb server.
I do this with:
Code: Select all
// First send login to anidb server
Username := edtUsername.Text;
Pass := edtPassword.Text;
APIVersion := '2';
Clientname := 'wakeauanime';
ClientVersion := '1';
ClientTag := 'wakeauanime';
S := Format('AUTH user=%s&pass=%s&protover=%s&client=%s&clientver=%s&tag=%s',[Username, Pass, APIVersion, Clientname, ClientVersion, ClientTag]);
// Debug line
memLog.Lines.Add('Send: ' + S);
// Send the data with udp
udpClient.Send(S);
// Wait a little
Sleep(100);
// Get the received message
S := udpClient.ReceiveString;
// Debug line
memLog.Lines.Add('AniDB: ' + S);
my auth string is like this: "AUTH user=myusername&pass=mypassword&protover=2&client=wakeauanime&clientver=1&tag=wakeauanime"
I have no idea what is wrong

plz help,
thx final