Structures

Coordinator
Nov 22, 2008 at 2:32 PM
Here we're going to list major structures that are needed, will add more if needed.

  • typedef sock_t SOCK
    • _sockfd
      • socket file descriptor.
    • _encrypted
      • if true, connection is ssl based; should never be modified.
    • _ssl_ctx
      • ssl context (needed for SSL connection).
    • _ssl
      • ssl file descriptor.
    • last_read
      • Last size read from the wire
    • last_write
      • Last size wrote to the wire
Coordinator
Nov 22, 2008 at 2:44 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Nov 22, 2008 at 2:47 PM
Edited Nov 22, 2008 at 2:48 PM
Included an unsigned int status which will be used as a bitwise tool to see when sockets are alive/dead etc...  Probably want to move _encrypted to a _status bit as well.  Should work on defining all status' within the work order.