Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

net.h

Go to the documentation of this file.
00001 /*
00002  * Active Router Transport Protocol (ARTP) implementation
00003  * Copyright (c) 2004, Tomas Rebok
00004  * All rights reserved.
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the "BSD License" which is
00008  * distributed with the software in the file LICENSE.
00009  *
00010  * This program is distributed in the hope that it will be useful, but
00011  * WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the BSD
00013  * License for more details.
00014  */
00015 
00023 #ifndef ARTP_NET_H
00024 #define ARTP_NET_H   1
00025 
00026 
00027 #include <sys/socket.h>
00028 #include <sys/types.h>
00029 #include <stdlib.h>
00030 #include <netinet/in.h>
00031 #include <arpa/inet.h>
00032 
00033 
00039 union artp_receiver {
00041     struct sockaddr_in  ip;
00042 
00044     struct sockaddr_in6 ip6;
00045 };
00046 
00047 
00065 extern int 
00066 rcvrcmp(struct sockaddr *r1, struct sockaddr *r2);
00067 
00068 
00087 extern int
00088 rcvrcpy(struct sockaddr *dest_rcvr, struct sockaddr *source_rcvr);
00089 
00090 
00109 extern int 
00110 rcvrsz(struct sockaddr *rcvr);
00111 
00112 
00113 #endif
00114 
00115 /* vim: set ts=4 : */

Generated on Fri May 21 07:50:24 2004 for Active Router Transport Protocol (ARTP) by doxygen1.2.15