Dart Home | PowerTCP Sockets for .NET | Custom Development | Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
Author | Forum: PowerTCP Sockets for .NET (Secure and Standard) Topic: Sending to clients |
computeronsite From: Calgary, AB Canada Posts: 45 Member Since: 06/12/02 |
posted July 6, 2004 3:36 PM Dim TcpObject As Dart.PowerTCP.Sockets.Tcp For Each TcpObject In MyServer.Connections TcpObject.Send(MyString & vbCrLf) Next When wanting to send data to each connected client can the above line of code be used in the Servers connection event or does it have to be run from a seperate thread? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted July 6, 2004 4:16 PM If you are using the SynchronizingObject property for the server, then the connection event will occur on the user interface thread. If you are not, then the Connection event will be on it's on thread. Either way should be ok, but without seeing all of your code I can't really say that you won't have thread-safety problems. |
Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
This site is powered by
![]() |