Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Internet (https://www.clubdelphi.com/foros/forumdisplay.php?f=3)
-   -   Necesito Ayuda (https://www.clubdelphi.com/foros/showthread.php?t=65639)

vicoxl16 02-01-2010 06:06:43

Necesito Ayuda
 
Hola ,bueno quisiera que alguien me ayude a pasar este codigo a java



Código:

procedure TForm1.ServerSocket1ClientRead(Sender: TObject;Socket: TCustomWinSocket);
label kezd,vege;
var
y:word;
delimiter:word;
Msg:TKoMsg;
begin
if Socket.ReceiveLength=0 then exit;
kezd:
Socket.ReceiveBuf(delimiter,2);    //$55AA
Socket.ReceiveBuf(y,2);        //length
Msg:=TKoMsg.Create;
Msg.Sender:=TPlayer(Players.Objects[Players.IndexOf(IntToStr(Socket.Handle))]);
Msgs.Add(Msg);
SetLength(Msg.Arr,y);
Socket.ReceiveBuf(Msg.Arr[0],y);
Socket.ReceiveBuf(delimiter,2);    //$AA55
if y=0 then
goto vege;
vege:
if Socket.ReceiveLength>0 then
goto kezd;
PostMessage(Handle,WM_PROCESS,0,0);
end;


cocute 03-01-2010 20:58:35

puedes probar con algun programa tipo este:
http://www.re-coding.com//try.php


La franja horaria es GMT +2. Ahora son las 13:50:12.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi