Use the SecureTcp Control to manage streams of data that require security. It simplifies the use of TCP communications by providing methods to establish, send and receive data, and terminate socket-based connections. Client and server authentication, and data encryption / decryption are transparent to the developer. By default, communications will block execution of your program, but you can easily enable non-blocking use for demanding applications that require event-driven communications.
You can use this control to implement upper-layer protocols in a secure way, including protocols of your own creation.