Atrinik Server  4.0
lowlevel.c File Reference
#include <global.h>
#include <toolkit/packet.h>
#include <toolkit/string.h>
#include <toolkit/socket_crypto.h>

Go to the source code of this file.


static void socket_packet_enqueue (socket_struct *ns, packet_struct *packet)
void socket_buffer_clear (socket_struct *ns)
void socket_buffer_write (socket_struct *ns)
void socket_send_packet (socket_struct *ns, struct packet_struct *packet)

Detailed Description

Low level socket related functions.

Definition in file lowlevel.c.

Function Documentation

void socket_buffer_clear ( socket_struct ns)

Dequeue all socket buffers in the queue.

nsSocket to clear the socket buffers for.

Definition at line 73 of file lowlevel.c.

void socket_buffer_write ( socket_struct ns)

Write data to socket.

nsThe socket we are writing to.

Definition at line 88 of file lowlevel.c.