This commit is contained in:
daniele.teti@gmail.com 2013-08-26 10:46:14 +00:00
parent 6ecfa3df8f
commit ef1716492e
2 changed files with 10 additions and 3 deletions

View File

@ -138,7 +138,7 @@ object frmMain: TfrmMain
Left = 8
Top = 72
Width = 340
Height = 69
Height = 161
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -13

View File

@ -73,8 +73,15 @@ begin
port := Copy(s, Pos(':', s) + 1, length(s));
stomp.SetUserName(edtUserName.Text);
stomp.SetPassword(edtPassword.Text);
try
stomp.Connect('localhost', 61613, 'myclientid', TStompAcceptProtocol.STOMP_Version_1_0);
th := TStompClientListener.Create(stomp, Self);
except
on E: Exception do
begin
ShowMessage(E.ClassName + sLineBreak + E.Message);
end;
end;
end;
procedure TForm1.Button3Click(Sender: TObject);