OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
b_sock.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include "cryptlib.h"
#include <openssl/bio.h>
#include <openssl/dso.h>

Go to the source code of this file.

Macros

#define USE_SOCKETS
 
#define SOCKET_PROTOCOL   IPPROTO_TCP
 
#define MAX_LISTEN   32
 
#define WSAAPI
 
#define ARG   arg
 

Functions

int BIO_get_host_ip (const char *str, unsigned char *ip)
 
int BIO_get_port (const char *str, unsigned short *port_ptr)
 
int BIO_sock_error (int sock)
 
struct hostent * BIO_gethostbyname (const char *name)
 
int BIO_sock_init (void)
 
void BIO_sock_cleanup (void)
 
int BIO_socket_ioctl (int fd, long type, void *arg)
 
int BIO_get_accept_socket (char *host, int bind_mode)
 
int BIO_accept (int sock, char **addr)
 
int BIO_set_tcp_ndelay (int s, int on)
 
int BIO_socket_nbio (int s, int mode)
 

Macro Definition Documentation

#define ARG   arg
#define MAX_LISTEN   32

Definition at line 84 of file b_sock.c.

#define SOCKET_PROTOCOL   IPPROTO_TCP

Definition at line 77 of file b_sock.c.

#define USE_SOCKETS

Definition at line 62 of file b_sock.c.

#define WSAAPI

Definition at line 99 of file b_sock.c.

Function Documentation

int BIO_accept ( int  sock,
char **  addr 
)

Definition at line 827 of file b_sock.c.

int BIO_get_accept_socket ( char *  host,
int  bind_mode 
)

Definition at line 622 of file b_sock.c.

int BIO_get_host_ip ( const char *  str,
unsigned char *  ip 
)

Definition at line 120 of file b_sock.c.

int BIO_get_port ( const char *  str,
unsigned short *  port_ptr 
)

Definition at line 175 of file b_sock.c.

struct hostent* BIO_gethostbyname ( const char *  name)
read

Definition at line 375 of file b_sock.c.

int BIO_set_tcp_ndelay ( int  s,
int  on 
)

Definition at line 945 of file b_sock.c.

void BIO_sock_cleanup ( void  )

Definition at line 525 of file b_sock.c.

int BIO_sock_error ( int  sock)

Definition at line 233 of file b_sock.c.

int BIO_sock_init ( void  )

Definition at line 471 of file b_sock.c.

int BIO_socket_ioctl ( int  fd,
long  type,
void arg 
)

Definition at line 547 of file b_sock.c.

int BIO_socket_nbio ( int  s,
int  mode 
)

Definition at line 964 of file b_sock.c.