packages/net/remotectrl/src/Socket_Cliente.h
thepeople 7dfd14a763 commit package to go along with the last commit, thanks fofware
git-svn-id: svn://svn.openwrt.org/openwrt/packages@19589 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-12 00:36:12 +00:00

26 lines
686 B
C

/*
* Javier Abellán. 14 Abril 2003
*
* Funciones para que un cliente pueda abrir sockets con un servidor.
*/
#ifndef _SOCKET_CLIENTE_H
#define _SOCKET_CLIENTE_H
#include <sys/socket.h>
/**
* Abre un socket UNIX con un servidor que esté en la misma máquina y que atienda al
* servicio de nombre Servicio.
*/
int Abre_Conexion_Unix (char *Servicio);
/**
* Abre un socket INET con un servidor que esté corriendo en Host_Servidor y que atienda
* al servicio cuyo nombre es Servicio.
* Host_Servidor debe estar dado de alta en /etc/hosts.
* Servicio debe estar dado de alta en /etc/services como tcp.
*/
int Abre_Conexion_Inet (char *Host_Servidor, char *Servicio);
#endif