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.

ExampleProtocolsDescription
DialerRAS, PPPUses Remote Access Services to establish a dialup networking connection to an Internet service provider.
EchoClientTCPDemonstrates 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.
EchoServerTCPDemonstrates 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.
QueryIPUDPDemonstrates 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.
SecureClientTCP, SSL, TLSDemonstrates 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.
SecureServerTCP, SSL, TLSDemonstrates 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.
ServerIPUDPDemonstrates 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.
UdpEchoUDPDemonstrates 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.
UdpListenerUDPDemonstrates 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.