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: PowerSockets TCP eval sample error?
cackle

From: Chicago, IL USA
Posts: 2
Member Since: 03/04/04
posted March 4, 2004 6:51 PM

Just got this to eval, and first sample in docs gave compile error. Might be my ignorance, i am new to .Net as well..

OS: Win XP
VB.Net out of Visual Studio 2003
Build Error: Type 'Segment' Not Defined

' code

   ' Connect to an Echo server (typically port 7)
    Tcp1.Connect("myserver", 7)

    ' Send some data
    Tcp1.Send("test")

    ' Receive the echoed data
    Dim seg As Segment = Tcp1.Receive()

    ' In the Echo protocol, the server waits until the client closes the connection.
    Tcp1.Close()

    ' Display the data received (should be "test")
    Debug.WriteLine(seg.ToString())
cackle

From: Chicago, IL USA
Posts: 2
Member Since: 03/04/04
posted March 4, 2004 7:05 PM

guess this is C# code related..
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 4, 2004 7:07 PM

Please try loading one of the sample apps first. There you will see how the namespaces are declared at the top of the source. Segment is part of Dart.PowerTCP.Sockets



Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX