Strophe: sock.c File Reference

Strophe 0.9 XMPP client library

Functions
sock.c File Reference

Socket abstraction. More...

## Functions
void | sock_initialize (void)
void | sock_shutdown (void)
int | sock_error (void)
static int | _in_progress (int error)
sock_t | sock_connect (const char *const host, const unsigned short port)
int | sock_set_keepalive (const sock_t sock, int timeout, int interval)
int | sock_close (const sock_t sock)
int | sock_set_blocking (const sock_t sock)
int | sock_set_nonblocking (const sock_t sock)
int | sock_read (const sock_t sock, void *const buff, const size_t len)
int | sock_write (const sock_t sock, const void *const buff, const size_t len)
int | sock_is_recoverable (const int error)
int | sock_connect_error (const sock_t sock)

## Detailed Description

Socket abstraction.

## Function Documentation

## ◆ sock_initialize()

void sock_initialize | ( | void |  | ) |

## ◆ sock_shutdown()

void sock_shutdown | ( | void |  | ) |

## ◆ sock_error()

int sock_error | ( | void |  | ) |

## ◆ _in_progress()

static int _in_progress | ( | int | error | ) |
| static

## ◆ sock_connect()

sock_t sock_connect | ( | const char *const | host,
|  | const unsigned short | port
| ) |  |

## ◆ sock_set_keepalive()

int sock_set_keepalive | ( | const sock_t | sock,
|  | int | timeout,
|  | int | interval
| ) |  |

## ◆ sock_close()

int sock_close | ( | const sock_t | sock | ) |

## ◆ sock_set_blocking()

int sock_set_blocking | ( | const sock_t | sock | ) |

## ◆ sock_set_nonblocking()

int sock_set_nonblocking | ( | const sock_t | sock | ) |

## ◆ sock_read()

int sock_read | ( | const sock_t | sock,
|  | void *const | buff,
|  | const size_t | len
| ) |  |

## ◆ sock_write()

int sock_write | ( | const sock_t | sock,
|  | const void *const | buff,
|  | const size_t | len
| ) |  |

## ◆ sock_is_recoverable()

int sock_is_recoverable | ( | const int | error | ) |

## ◆ sock_connect_error()

int sock_connect_error | ( | const sock_t | sock | ) |