115
W&T
TCP / UDP - Binary
Subject to errors and modifications:
end;
And finally the procedure that the Winsock control element
automatically invokes when data are received by the network:
procedure TForm1.ClientSocket1Read(Sender: TObject;
Socket: TCustomWinSocket);
var
BytesReceived:Integer;
begin
BytesReceived:=ClientSocket1.Socket.ReceiveLength;
ClientSocket1.Socket.ReceiveBuf(Counter, BytesReceived);
end;
The above example can of course be applied to all other
structures.
Summary of Contents for 57630
Page 8: ...8 W T Content...
Page 22: ...22 W T Assigning the IP address...
Page 44: ...44 W T configuring the network parameters...
Page 194: ...194 W T Diacnostics and testing...