Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7864779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:53:15+00:00 2026-06-02T23:53:15+00:00

I have a TCP networking library which implements a bunch of protocol (redis, http

  • 0

I have a TCP networking library which implements a bunch of protocol (redis, http etc), and they are implemented using BSD sockets.

A lot of the code uses select() and other functions that are meant for BSD sockets. Am I right in assuming that this won’t work on the SSL sockets? Or will they work as is?

I’m just wondering if SSL and BSD sockets are so different that they require a completely different approach to implementation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T23:53:16+00:00Added an answer on June 2, 2026 at 11:53 pm

    Assuming you are referring to OpenSSL, it sits on top of the socket, it does not replace it. So all direct-socket operations, like select(), still work. The difference, however, is that OpenSSL handles reading and writing for you so you would replace recv() with ssl_read() and send() with ssl_write(), but you can (and in some cases need to) still use select() directly. However, you can’t just call it whenever you want, you have to wait until OpenSSL tells you to call it. So, for example, if you have a reading loop that calls select() first and then calls recv() only when select() reports readability, you would have to swap that logic around. Call ssl_read() first, and then call select() only if ssl_read() returns either SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE (note that ssl_read() can perform writing operations internally, and ssl_write() can perform reading operations internally).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a TCP Client,which puts a packet in a structure using System.Runtime.InteropServices; [StructLayoutAttribute(LayoutKind.Sequential)]
I have a TCP server application in which on receiving an incoming connection, I
i am using pcap to create a packet sniffer. i have this tcp structure:
I have written a Python TCP/IP server for internal use, using win32serviceutil/py2exe to create
I have a very simple Winsock2 TCP client - full listing below - which
I have a TCP client connecting to my server which is sending raw data
I have a TCP server, which is connected to a web page via a
I have a TCP server running on a machine. (implemented in Java). I need
I have a tcp server which is not in java also its a hardware
I've been creating a reliable networking protocol similar to TCP, and was wondering what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.