https://github.com/coin8086/winsocket
TLS Examples in Schannel and IO Completion Ports
https://github.com/coin8086/winsocket
iocp samples schannel socket tls windows
Last synced: about 1 year ago
JSON representation
TLS Examples in Schannel and IO Completion Ports
- Host: GitHub
- URL: https://github.com/coin8086/winsocket
- Owner: coin8086
- Created: 2020-06-24T12:14:27.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-21T14:38:49.000Z (almost 4 years ago)
- Last Synced: 2025-03-20T23:06:04.042Z (over 1 year ago)
- Topics: iocp, samples, schannel, socket, tls, windows
- Language: C++
- Homepage:
- Size: 103 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TLS Examples in Schannel and IO Completion Ports
## Before You Run
You need a certificate for the server. The Subject Name of the certificate must be "localhost", and the certificate must be stored in the "My" store of the system's certificate store, in the "Local Machine". The certificate can be self issued but must not be expired.
## Simple Server and Client
Start echo server and write what received to stdout, which is redirected to file `svr-output` since client may send binary data.
```
SimpleSocketServer.exe -t 1>svr-output
```
Start client to send `file-to-send` to server, and write what server sent back to stdout, which is redirected to file `cli-output`.
```
SimpleSocketClient.exe localhost -t 1>cli-output cli-output test-$i