// $Id: pdinrs_socket.h,v 1.1.1.1 2005/01/10 18:47:02 pdi Exp $
/******************************************************************************/
// Copyright 1998-2022 Stonie R. Cooper, Licensed under the auspices of GPLv3,
// See top-level copyright disclaimer (COPYRIGHT) and license (LICENSE)
// File:   pdinrs_socket.h
// Author: Stonie R. Cooper
// Documentation:
// Revision Record:
//         Rewritten: 20050114 by Stonie R. Cooper
//                  - created file and added includes and function declara-
//                    tion.
/******************************************************************************/


#ifndef PDINRS_SOCKET_H
#define PDINRS_SOCKET_H

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <netdb.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>


#define  PDINRS_SCKT_SUCS                  0
#define  PDINRS_SCKT_GTHN                 -1
#define  PDINRS_SCKT_CRTE                 -2
#define  PDINRS_SCKT_CNCT                 -3
#define  PDINRS_SCKT_SEND                 -4

int send_frame(char *hostname, 
               unsigned short int port, 
               char *buf, 
               size_t buffer_size);
               

#endif
