gwenhywfar
4.12.0beta
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
gwenhywfar4
gwenhywfar
syncio_socket.h
Go to the documentation of this file.
1
/***************************************************************************
2
begin : Tue Apr 27 2010
3
copyright : (C) 2010 by Martin Preuss
4
email : martin@libchipcard.de
5
6
***************************************************************************
7
* *
8
* This library is free software; you can redistribute it and/or *
9
* modify it under the terms of the GNU Lesser General Public *
10
* License as published by the Free Software Foundation; either *
11
* version 2.1 of the License, or (at your option) any later version. *
12
* *
13
* This library is distributed in the hope that it will be useful, *
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16
* Lesser General Public License for more details. *
17
* *
18
* You should have received a copy of the GNU Lesser General Public *
19
* License along with this library; if not, write to the Free Software *
20
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
21
* MA 02111-1307 USA *
22
* *
23
***************************************************************************/
24
25
26
#ifndef GWENHYWFAR_SYNCIO_SOCKET_H
27
#define GWENHYWFAR_SYNCIO_SOCKET_H
28
29
#include <
gwenhywfar/syncio.h
>
30
#include <
gwenhywfar/inetsocket.h
>
31
32
33
#define GWEN_SYNCIO_SOCKET_TYPE "socket"
34
35
36
37
#ifdef __cplusplus
38
extern
"C"
{
39
#endif
40
41
42
43
GWENHYWFAR_API
44
GWEN_SYNCIO
*
GWEN_SyncIo_Socket_new
(
GWEN_SOCKETTYPE
sockType,
45
GWEN_AddressFamily
addressFamily);
46
47
GWENHYWFAR_API
48
GWEN_SYNCIO
*
GWEN_SyncIo_Socket_TakeOver
(
GWEN_SOCKET
*socket);
49
50
GWENHYWFAR_API
51
const
char
*
GWEN_SyncIo_Socket_GetAddress
(
const
GWEN_SYNCIO
*sio);
52
53
GWENHYWFAR_API
54
void
GWEN_SyncIo_Socket_SetAddress
(
GWEN_SYNCIO
*sio,
const
char
*s);
55
56
GWENHYWFAR_API
57
int
GWEN_SyncIo_Socket_GetPort
(
const
GWEN_SYNCIO
*sio);
58
59
60
GWENHYWFAR_API
61
void
GWEN_SyncIo_Socket_SetPort
(
GWEN_SYNCIO
*sio,
int
i);
62
63
64
#ifdef __cplusplus
65
}
66
#endif
67
68
69
#endif
70
71
Generated on Thu Nov 13 2014 21:37:51 for gwenhywfar by
1.8.1.2