netatalk 4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
netddp.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 1999 Adrian Sun (asun@zoology.washington.edu)
3 * All Rights Reserved. See COPYRIGHT.
4 */
5
12
13#ifndef _ATALK_NETDDP_H
14#define _ATALK_NETDDP_H 1
15
16#ifndef NO_DDP
17
18#include <sys/types.h>
19#include <sys/socket.h>
20#include <unistd.h>
21
22#include <netatalk/at.h>
23
24 extern int netddp_open(struct sockaddr_at *, struct sockaddr_at *);
25
26 static inline int netddp_close(int filedes)
27{
28 return close(filedes);
29}
30
31 static inline ssize_t netddp_sendto(int s, const void *msg, size_t len,
32 int flags, const struct sockaddr *to, socklen_t tolen)
33{
34 return sendto(s, msg, len, flags, to, tolen);
35}
36
37 static inline ssize_t netddp_recvfrom(int s, void *buf, size_t len,
38 int flags, struct sockaddr *from,
39 socklen_t *fromlen)
40{
41 return recvfrom(s, buf, len, flags, from, fromlen);
42}
43
44#endif /* NO_DDP */
45#endif /* netddp.h */
46
buf
static char buf[MAXPATHLEN+1]
Definition afppasswd.c:113
at.h
flags
static dbd_flags_t flags
Definition cmd_dbd.c:43
to
PATH_T to
Definition nad_cp.c:87
netddp_close
static int netddp_close(int filedes)
Definition netddp.h:26
netddp_recvfrom
static ssize_t netddp_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen)
Definition netddp.h:37
netddp_open
int netddp_open(struct sockaddr_at *, struct sockaddr_at *)
Definition netddp_open.c:22
netddp_sendto
static ssize_t netddp_sendto(int s, const void *msg, size_t len, int flags, const struct sockaddr *to, socklen_t tolen)
Definition netddp.h:31
sockaddr_at
Definition at.h:88