Functions | Variables
socket.c File Reference
#include <openssl/bio.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include "internal.h"
Include dependency graph for socket.c:

Go to the source code of this file.

Functions

BIOBIO_new_socket (int fd, int close_flag)
 
const BIO_METHODBIO_s_socket (void)
 
static int closesocket (int sock)
 
static long sock_ctrl (BIO *b, int cmd, long num, void *ptr)
 
static int sock_free (BIO *bio)
 
static int sock_read (BIO *b, char *out, int outl)
 
static int sock_write (BIO *b, const char *in, int inl)
 

Variables

static const BIO_METHOD methods_sockp
 

Function Documentation

◆ BIO_new_socket()

BIO* BIO_new_socket ( int  fd,
int  close_flag 
)

Definition at line 181 of file socket.c.

◆ BIO_s_socket()

const BIO_METHOD* BIO_s_socket ( void  )

Definition at line 179 of file socket.c.

◆ closesocket()

static int closesocket ( int  sock)
static

Definition at line 79 of file socket.c.

◆ sock_ctrl()

static long sock_ctrl ( BIO b,
int  cmd,
long  num,
void *  ptr 
)
static

Definition at line 133 of file socket.c.

◆ sock_free()

static int sock_free ( BIO bio)
static

Definition at line 84 of file socket.c.

◆ sock_read()

static int sock_read ( BIO b,
char *  out,
int  outl 
)
static

Definition at line 95 of file socket.c.

◆ sock_write()

static int sock_write ( BIO b,
const char *  in,
int  inl 
)
static

Definition at line 115 of file socket.c.

Variable Documentation

◆ methods_sockp

const BIO_METHOD methods_sockp
static
Initial value:
= {
BIO_TYPE_SOCKET, "socket",
NULL , NULL ,
sock_ctrl, NULL ,
sock_free, NULL ,
}

Definition at line 171 of file socket.c.

sock_free
static int sock_free(BIO *bio)
Definition: socket.c:84
BIO_TYPE_SOCKET
#define BIO_TYPE_SOCKET
Definition: bio.h:778
sock_read
static int sock_read(BIO *b, char *out, int outl)
Definition: socket.c:95
sock_write
static int sock_write(BIO *b, const char *in, int inl)
Definition: socket.c:115
sock_ctrl
static long sock_ctrl(BIO *b, int cmd, long num, void *ptr)
Definition: socket.c:133


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:31