Autor Beitrag
HellAngel28
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: So 28.03.04 04:13 
hi..

ich benutze die TSocketServer/Client compos..
jetz will ich beim server beim on read event eine message NUR an den schicken, der mir was geschickt hat (der, der den on read event ausgelöst hat)

da muss man doch irgendwie die Socketid herausfinden können oder?
gibts da sowas wie server.socket.activesocket oder sowas?
UWER
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79

SUSE 8.1, XP Home
D7 Prof. , Kylix 3
BeitragVerfasst: Mo 29.03.04 08:58 
Hallo,

der Socket wird dir im Ereignis direkt mitgeliefert wenn ich mich recht erinnere.

_________________
Gruß
UWER
HellAngel28 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Mo 29.03.04 09:01 
und als was?
UWER
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79

SUSE 8.1, XP Home
D7 Prof. , Kylix 3
BeitragVerfasst: Mo 29.03.04 09:40 
Hallo,

na als Socket eben. Der Parameter Socket gibt genau den Socket an der die Verbindung zum Client herstellt. Du kannst also mit

ausblenden Delphi-Quelltext
1:
Socket.WriteText('Hallo');					


deinem Client ein Hallo schicken.

_________________
Gruß
UWER
HellAngel28 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Mo 29.03.04 19:26 
das problem ist aber nur.. ich will n login machen...
d.h. wenn der login falsch is, soll er disconnectet werden...

socket.disconnect();

bei disconnect, muss man aber die socketid angeben
UWER
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79

SUSE 8.1, XP Home
D7 Prof. , Kylix 3
BeitragVerfasst: Di 30.03.04 07:17 
Da kannst den Socket auch einfach mit Socket.Clsoe beenden.

_________________
Gruß
UWER
HellAngel28 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Di 30.03.04 18:38 
ahh.. das problem scheind sich in luft aufzulösen *smile*