BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ICS--having problem sending a simple request

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Jangeau
Guest





PostPosted: Mon Oct 20, 2003 9:24 pm    Post subject: ICS--having problem sending a simple request Reply with quote



I am spinning my wheels. I would like to send a request and receive a
response.It appears the request gets sent then nothing happens.
Suggestions would be greatly appreciated. Jangeau

FWSocket gets created onFormShow and destroyed onFormClose

procedure TfrmMain.MsgClick(Sender: TObject);
begin
FWSocket.OnSessionConnected := FWSocketSessionConnected;
FWSocket.OnDataAvailable := FWSocketDataAvailable;
FWSocket.Addr:= edtIPAddress.text;
FWSocket.Port:= edtPort.text;
FWSocket.Proto:= 'tcp';
FWSocket.Connect;
end;

procedure TfrmMain.FWSocketSessionConnected(Sender: TObject; Error:
Word);
begin
FWSocket.SendStr(memRequest.text);
end;

procedure TfrmMain.FWSocketDataAvailable(Sender: TObject; Error:
Word);
begin
//I am not getting a response from this
memResponse.text:= FWSocket.ReceiveStr;
end;
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.