File: masock.h

package info (click to toggle)
leafnode 1.11.11-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,468 kB
  • sloc: ansic: 10,914; sh: 1,748; xml: 628; makefile: 291; perl: 84; sed: 4
file content (16 lines) | stat: -rw-r--r-- 419 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef MASOCK_H
#define MASOCK_H

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#ifndef __LCLINT__
#include <arpa/inet.h>
#endif /* not __LCLINT__ */
#include <netdb.h>

/*@null@*/ /*@only@*/ char *masock_sa2addr(const struct sockaddr *sa);
long  masock_sa2port(const struct sockaddr *sa);
/*@null@*/ /*@only@*/ char *masock_sa2name(const struct sockaddr *sa, /*@out@*/ int *h_error);

#endif