fehQlibs 31
Qlibs
Loading...
Searching...
No Matches
Macros | Functions
socket_send.c File Reference

setup sending socket with dual-stack capabilities More...

#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include "byte.h"
#include "ip.h"
#include "socket_if.h"
#include "error.h"
Include dependency graph for socket_send.c:

Go to the source code of this file.

Macros

#define WHO   "socket_send"
 

Functions

int socket_send4 (int s, const char *buf, unsigned int len, const char ip[4], uint16 port)
 
int socket_send6 (int s, const char *buf, unsigned int len, const char ip[16], uint16 port, uint32 scope_id)
 
int socket_send (int s, const char *buf, unsigned int len, const char ip[16], uint16 port, uint32 scope_id)
 
int socket_broadcast4 (int s, const char *buf, unsigned int len, uint16 port)
 

Detailed Description

setup sending socket with dual-stack capabilities

Authors
djb, fefe, feh, jmh ucspi-tcp6

Definition in file socket_send.c.

Macro Definition Documentation

◆ WHO

#define WHO   "socket_send"

Definition at line 17 of file socket_send.c.

Function Documentation

◆ socket_broadcast4()

int socket_broadcast4 ( int  s,
const char *  buf,
unsigned int  len,
uint16  port 
)

Definition at line 62 of file socket_send.c.

Here is the call graph for this function:

◆ socket_send()

int socket_send ( int  s,
const char *  buf,
unsigned int  len,
const char  ip[16],
uint16  port,
uint32  scope_id 
)

Definition at line 46 of file socket_send.c.

Here is the call graph for this function:

◆ socket_send4()

int socket_send4 ( int  s,
const char *  buf,
unsigned int  len,
const char  ip[4],
uint16  port 
)

Definition at line 19 of file socket_send.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ socket_send6()

int socket_send6 ( int  s,
const char *  buf,
unsigned int  len,
const char  ip[16],
uint16  port,
uint32  scope_id 
)

Definition at line 32 of file socket_send.c.

Here is the call graph for this function:
Here is the caller graph for this function: