V
vecent
Unregistered / Unconfirmed
GUEST, unregistred user!
客户端发出“stop”指令
procedure TForm1.Button7Click(Sender: TObject);
begin
panel5.Color:=clmoneygreen;
Panel5.Caption:='请求通话';
realaudio1.SetMute(true);
if clientsocket1.Socket.Connected then
clientsocket1.Socket.SendText ('stop');
showmessage('the single is sent!');
end;
服务器端却接收不到“stop”,但是可以收到“yes”指令。
procedure TForm1.ServerSocket1ClientRead(Sender: TObject;
Socket: TCustomWinSocket);
var temp_str:string;
begin
temp_str:=socket.ReceiveText;
if (temp_str='yes') then
Panel2.Color:=clred;
if (temp_str='stop')then
begin
showmessage('i have got !');
panel2.Color:=clmoneygreen;
panel2.Caption:='通话结束';
end;
end;
请高手指点,小弟有145分相赠,因为这样我就能毕业了。
procedure TForm1.Button7Click(Sender: TObject);
begin
panel5.Color:=clmoneygreen;
Panel5.Caption:='请求通话';
realaudio1.SetMute(true);
if clientsocket1.Socket.Connected then
clientsocket1.Socket.SendText ('stop');
showmessage('the single is sent!');
end;
服务器端却接收不到“stop”,但是可以收到“yes”指令。
procedure TForm1.ServerSocket1ClientRead(Sender: TObject;
Socket: TCustomWinSocket);
var temp_str:string;
begin
temp_str:=socket.ReceiveText;
if (temp_str='yes') then
Panel2.Color:=clred;
if (temp_str='stop')then
begin
showmessage('i have got !');
panel2.Color:=clmoneygreen;
panel2.Caption:='通话结束';
end;
end;
请高手指点,小弟有145分相赠,因为这样我就能毕业了。