PDA

View Full Version : Indy Networking.



Voltrox
11-08-2006, 01:30 PM
Hi,

I don't see an OnRecieve event for the Indy TCP Server component nor the TCPServer component in Delphi 2006, but I see it for Serversocket in Delphi 6, what do i do?

:(

lordzero
13-09-2006, 04:48 AM
Hi,

I don't see an OnRecieve event for the Indy TCP Server component nor the TCPServer component in Delphi 2006, but I see it for Serversocket in Delphi 6, what do i do?

:(

Hello

use OnExecute event... for each connection you have one Thread..

Greetings

Diaboli
11-11-2006, 09:52 PM
I have just started up my BDS 2006 (looks VERY nice btw!), and i thought I should learn to use indy, since it is supposed to be much better than the TServerSocket and TClientSocket components of old.

I'm wondering, how can i store the clients socket to the client?
so that i can send a package to a client when i want to.

in the TServerSocket component, i just assigned the Socket (TCustomWinSocket) to the players Socket.
(my players were stored as records with a TCustomWinSocket and the other vars i needed)

Indy doesnt work in the same way, so i feel totally blank...

can someone help?