Вниз
Скачать: CL | DM;

Stream Read error   Найти похожие ветки 

← →
malkolinge ©   (2002-11-13 21:33) [0]

В ниже приведенном коде, при попытке клиента подсоеденится имею ексепшн указанный в сабже ? что делать ?


procedure TServerThread.ClientExecute;
var
ServerSocketStream:TwinSocketStream;
fsDest:TFileStream;
begin


fsDest:=TFileStream.Create("d:received1.dat",fmCreate or fmShareDenyWrite);
ServerSocketStream:=TWinSocketStream.Create(ClientSocket, 20000);

while (not Terminated) and ClientSocket.Connected do begin
if ServerSocketStream.WaitForData(5000) then begin
if fsDest.CopyFrom(ServerSocketStream,150) = 0 then
break;
end;
end;
fsDest.Free;
ServerSocketStream.Free;
ClientSocket.Free;
end;


← →
malkolinge ©   (2002-11-13 21:45) [1]

UP !



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.015 c
6-37236
Repeater
2002-11-01 12:46
2003.01.13
Можно ли перевести сокет из блокирующего в неблокирующий режим?


4-37422
maxim2
2002-11-22 13:24
2003.01.13
Почему не работает PlaySound


1-37210
delfer.ru
2002-12-31 05:20
2003.01.13
У меня вопрос?????????????????


14-37386
Sergy
2002-12-25 11:14
2003.01.13
Kylix + MySql + Windows


3-36918
PrettyFly
2002-12-17 16:49
2003.01.13
Параметры IBTransaction




   Наверх