~ubuntu-branches/ubuntu/precise/netatalk/precise

« back to all changes in this revision

Viewing changes to include/atalk/netddp.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Rittau
  • Date: 2004-01-19 12:43:49 UTC
  • Revision ID: james.westby@ubuntu.com-20040119124349-es563jbp0hk0ae51
Tags: upstream-1.6.4
ImportĀ upstreamĀ versionĀ 1.6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $Id: netddp.h,v 1.3 2002/02/07 23:35:49 srittau Exp $
 
3
 *
 
4
 * Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
 
5
 * All Rights Reserved. See COPYRIGHT.
 
6
 *
 
7
 * this provides a generic interface to the ddp layer. with this, we
 
8
 * should be able to interact with any appletalk stack that allows
 
9
 * direct access to the ddp layer. right now, only os x server's ddp
 
10
 * layer and the generic socket based interfaces are understood.  
 
11
 */
 
12
 
 
13
#ifndef _ATALK_NETDDP_H
 
14
#define _ATALK_NETDDP_H 1
 
15
 
 
16
#include <sys/types.h>
 
17
#include <sys/cdefs.h>
 
18
#include <sys/socket.h>
 
19
#include <netatalk/at.h>
 
20
 
 
21
extern int netddp_open   __P((struct sockaddr_at *, struct sockaddr_at *));
 
22
 
 
23
#if !defined(NO_DDP) && defined(MACOSX_SERVER)
 
24
extern int netddp_sendto __P((int, void *, size_t, unsigned int, 
 
25
                           const struct sockaddr *, unsigned int));
 
26
extern int netddp_recvfrom __P((int, void *, int, unsigned int, 
 
27
                             struct sockaddr *, unsigned int *));
 
28
#define netddp_close(a)  ddp_close(a)
 
29
#else
 
30
#include <unistd.h>
 
31
#include <sys/types.h>
 
32
 
 
33
#define netddp_close(a)  close(a)
 
34
#define netddp_sendto    sendto
 
35
#define netddp_recvfrom  recvfrom
 
36
#endif
 
37
 
 
38
#endif /* netddp.h */
 
39