Re: Can a linux service work as both TLS client and server?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sure, you just need additional threads.  Note: accept is a blocking call so
the thread that runs in (i.e. your server side will block until a packet is
received).  You can write a polling loop using select, that doesn't block. 
The cleanest thing to do is have a thread for client(s) and one for server. 
I have done this with C++17 with TLS1_3_Client and TLS1_3_Server classes
with accept loop member functions started as std::thread.



-----
Phillip Neumiller
Platform Engineering
Directstream, LLC
--
Sent from: http://openssl.6102.n7.nabble.com/OpenSSL-User-f3.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux