966
asked on
DELPHI 6 sockets
If i have on my server the following:
memo1
memo2
and on my client:
memo1
label1
and i want into from the memo2 on the serveron connect, my client would be:
////clientside////
procedure TForm1.ClientSocket1Read(S ender: TObject;
Socket: TCustomWinSocket);
begin
Memo1.Lines.Add(Socket.Rec eiveText);
end;
///serverside////
procedure TForm1.ServerSocket1Accept (Sender: TObject;
Socket: TCustomWinSocket);
begin
socket.SendText(memo2.text )
end;
Now, this would put the info from server MEMO2 into CLIENT memo1.
Okay.
What if i also wanted info from serverisde memo1 and put it into a label on client?
when i press button1.
memo1
memo2
and on my client:
memo1
label1
and i want into from the memo2 on the serveron connect, my client would be:
////clientside////
procedure TForm1.ClientSocket1Read(S
Socket: TCustomWinSocket);
begin
Memo1.Lines.Add(Socket.Rec
end;
///serverside////
procedure TForm1.ServerSocket1Accept
Socket: TCustomWinSocket);
begin
socket.SendText(memo2.text
end;
Now, this would put the info from server MEMO2 into CLIENT memo1.
Okay.
What if i also wanted info from serverisde memo1 and put it into a label on client?
when i press button1.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.