Hi Wilfried,

Yes, thank you! What I mean was exactly that:

Srv.Clients[i].SendStr('Hello again'#13#10);

By use Clients[n] I was able to send back :) ...

Now, I have a lot of data to send from a side to other, I remade my program to work with TCP instead UDP to see if it works. I am trying to transmit video over ip. I can get the video stream in a pure bytes sequence, something like GetVideoData() that is a pointer to the memory and a GetVideoDataSize() that is the length of data. The other side (client) I have to receive and reprocess the data again, my doubt comes when defining the buffer size. I declared a Buffer:array[0..n] of byte, in my case n = 9128 bytes in length. Will the TCP stack correctly send this piece of data to the other side? Will this affect the buffer size of the own TCP stack defined to TWSocketServer component?

Thank you.

Magno

----- Original Message ----- From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
To: "ICS support mailing" <twsocket@elists.org>
Sent: Thursday, May 12, 2005 5:03 PM
Subject: Re: [twsocket] TWSocketServer



Hello Magno,

this is a very simple question...

I will give you simple ansewr :)

The method to send something only works in the body
of the declared events (onClientConnect, ie).

I dont understeand this, sorry !

If I try Send() or SendTo() it dont send nothing, but if I try use
SendStr() it calls an exception.

SendTo is only for UDP proto, so dont use it. Send and SendStr is the one you need. Both are the same (SendStr calls Send).

But do you call Send or SendStr with the right data socket ? Maybe you
try it with the server ? Server cannot send, it is only listening. If
you send back something to a client you have to send it to the rigth
client. eg:

Srv.Clients[i].SendStr('Hello again'#13#10);

Where 'i' is the client to send something.

---
Rgds, Wilfried
http://www.mestdagh.biz


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to