This component is part of the IP Works Enterprise ASP.NET Component Library.
The IPPort component facilitates TCP/IP communications by providing an easy interface to system TCP/IP functions. It allows a client application to communicate with a server using stream sockets.
NOTE: What follows is a very short description of the component interfaces. For more information, please consult the help files that come with the respective package.
Remarks
Our main goal in designing IPPort was ease of use. The component has a minimum of properties and five events: Connected, DataIn, Disconnected, ReadyToSend, and Error. The events are relatively self-explanatory.
The connection is attempted by calling the Connect method or setting the Connected property to True, and then waiting for the Connected event. The destination is defined by setting RemoteHost and RemotePort. Data is sent by calling the Send method with Text as a parameter, or by assigning the data string to the DataToSend property.
To disconnect, you just call the Disconnect method or set the Connected property to False. The Linger property controls how the connection is terminated.
The operation of the component is almost completely asynchronous. All the calls except the ones that deal with domain name resolution, operate through asynchronous messages (no blocking calls). The gain in performance is considerable when compared to using blocking calls.
More Information: http://www.nsoftware.com/products/component/ipport.aspx |