summaryrefslogtreecommitdiff
path: root/comm/IrdaAddress.h
blob: 68b36551d969619539b4250b7ffe19beca028172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 *	Ivy League
 *
 *	IRDA Addresses,
 *
 *	Copyright 2000
 *	Centre d'Etudes de la Navigation Aerienne (CENA)
 *
 *	by Stephane Chatty
 *
 *	$Id$
 *
 */

#ifndef IrdaAddress_H_
#define IrdaAddress_H_

#include "cplus_bugs.h"
#include "Address.h"
#include "ivl/String.h"
template <class ITEM> class IvlListOf;

class IvlIrdaAddress : public IvlAddress {
protected:
	struct sockaddr_irda	Addr;

public:
static	int	DiscoverPeers (int, IvlListOf<IvlIrdaAddress>&);
		IvlIrdaAddress (const char* = 0);	// service
		IvlIrdaAddress (lword, const char* = 0);	// address, service
		~IvlIrdaAddress ();
	
	int		Family ();
	int		Length ();
	SockAddr*	GetSockAddr ();
	char*		StrRepr (char* buf = 0);
};

#endif	/* IrdaAddress_H_ */