Login  
Search All Forums
Dart Home | PowerTCP Sockets for .NET | Custom Development Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
AuthorForum: PowerTCP Sockets for .NET (Secure and Standard)
Topic: TCP1.BeginSend method
jonst

From: test, United Kingdom
Posts: 7
Member Since: 01/13/05
posted January 28, 2005 10:36 AM

TCP1.BeginSend method expects a byte array.

How can I take a string and add it to the buffer so that I can send it async via TCP1.BeginSend ??

Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 28, 2005 10:49 AM

Dim s As String = "hello world"
    Dim b() As Byte = System.Text.Encoding.Default.GetBytes(s, 0, s.Length)
    tcp1.BeginSend(b)
Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX