mrk_raj
asked on
Sending formatted text over a socket connection
I am developing a Chat application using the delphi socket components. What should be the type of sockets in both the Client and socket components?.
How will I send the contents of a Rich Edit control having formatted text over the Socket connection so that it can be accessed at the other end of the connection in the same format?.
How will I place the Chat form(each user will have a separate form)Icon in the Task Bar or in the system tray?.
Please help me?...
How will I send the contents of a Rich Edit control having formatted text over the Socket connection so that it can be accessed at the other end of the connection in the same format?.
How will I place the Chat form(each user will have a separate form)Icon in the Task Bar or in the system tray?.
Please help me?...
ASKER
hai Cesario,
For sending the contents of a richedit control through
socket connection we can use the method sendstream.But
I couldn't find any method for receiving the stream sent
by the client socket.
For sending the contents of a richedit control through
socket connection we can use the method sendstream.But
I couldn't find any method for receiving the stream sent
by the client socket.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
How do I know a server has finished sending data when I am using TCPClient.receiveln();
to send the contents of a richt edit Control:
procedure TForm1.Button1Click(Sender
var
MemoryStream:TMemoryStream
begin
MemoryStream:=TMemoryStrea
RichEdit1.Lines.SaveToStre
MemoryStream.Seek(0,soFrom
ClientSocket.Socket.SendSt
end;
To read the contents form a Stream:
RichEdit2.Lines.LoadFromSt
Best Regards
Cesario