SocketWrench Examples
SocketWrench includes examples for Visual Basic, C# and C/C++ installed in the Documents folder for the current user. The functionality for each of the examples is similar, with the only difference being the language that they are implemented in. To use these examples, you must have SocketWrench installed, either with a valid evaluation or development license.
Example | Protocols | Description |
---|---|---|
Dialer | RAS, PPP | Uses Remote Access Services to establish a dialup networking connection to an Internet service provider. |
EchoClient | TCP | Demonstrates establishing a TCP connection to an echo service using the SocketWrench class. The server sends back a copy of the data that is sent to it by the client and is a useful starting point for many client applications. |
EchoServer | TCP | Demonstrates creating a multithreaded TCP server that accepts connections from multiple clients and sends back a copy of whatever data those clients send to the server. This example is a useful starting point for many server applications and can be used in conjunction with the EchoClient example. |
QueryIP | UDP | Demonstrates how to broadcast a UDP datagram to request the IP address assigned to a specific system. This example is designed to be used in conjunction with the ServerIP example running on the target system. |
SecureClient | TCP, SSL, TLS | Demonstrates establishing a secure SSL/TLS connection to a server using the SocketWrench class. This example would typically be used in conjunction with the SecureServer example and is a useful starting point for many applications that need to create secure client connections. |
SecureServer | TCP, SSL, TLS | Demonstrates creating a multithreaded server that accepts secure (SSL/TLS) connections and sends back a copy of whatever data is received from the client. This example would typically be used in conjunction with the SecureClient example and is a useful starting point for many applications that need to create a secure server. |
ServerIP | UDP | Demonstrates how to create a UDP socket that listens for a broadcast datagram and returns its current IP address to the system that originated the message. This example is used in conjunction with the QueryIP example. |
UdpEcho | UDP | Demonstrates how to create a UDP socket and exchange messages with a remote host. This example requires a server that accepts UDP echo datagrams and returns a copy of the data back to the sender. |
UdpListener | UDP | Demonstrates how to create a UDP socket, wait for incoming messages and respond to the sender. It can be a useful starting point for creating an application that must listen for datagrams. |