应该在onread事件里面接收由服务器发过来的信息,
var s:string;
s:=soket.receivetext;
s就是由服务器发过来的信息...
在服务器那边是这样发信息的:
if serversocket.socket.activeconnections>0 then
begin
for i:=0 to serversocket.socket.activeconnections -1 do
begin
serversocket1.Socket.Connections.SendText(s);
end;
showmessage('信息已发出');
end;