share
[ghsmtp.git] / Sock-test.cpp
blob1fe275f2aec6b7a6752bd5df1194c33387bc9102
1 #include "Sock.hpp"
3 #include <iostream>
5 int main(int argc, char* argv[])
7 Sock sock(STDIN_FILENO, STDOUT_FILENO);
9 char const* us = sock.us_c_str();
10 if (*us) {
11 std::cout << us << '\n';
14 char const* them = sock.them_c_str();
15 if (*them) {
16 std::cout << them << '\n';
19 std::cout << "sizeof(Sock) == " << sizeof(Sock) << '\n';