comparison R/rdyncall/inst/dynports/SDL_net.R @ 0:0cfcc391201f

initial from svn dyncall-1745
author Daniel Adler
date Thu, 19 Mar 2015 22:26:28 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0cfcc391201f
1
2
3 dynbind("SDL_net", "
4 SDLNet_AddSocket(*<_SDLNet_SocketSet>*<SDLNet_GenericSocket_>)i;
5 SDLNet_AllocPacket(i)*<UDPpacket>;
6 SDLNet_AllocPacketV(ii)**<UDPpacket>;
7 SDLNet_AllocSocketSet(i)*<_SDLNet_SocketSet>;
8 SDLNet_CheckSockets(*<_SDLNet_SocketSet>I)i;
9 SDLNet_DelSocket(*<_SDLNet_SocketSet>*<SDLNet_GenericSocket_>)i;
10 SDLNet_FreePacket(*<UDPpacket>)v;
11 SDLNet_FreePacketV(**<UDPpacket>)v;
12 SDLNet_FreeSocketSet(*<_SDLNet_SocketSet>)v;
13 SDLNet_Init()i;
14 SDLNet_Linked_Version()*<SDL_version>;
15 SDLNet_Quit()v;
16 SDLNet_Read16(*v)S;
17 SDLNet_Read32(*v)I;
18 SDLNet_ResizePacket(*<UDPpacket>i)i;
19 SDLNet_ResolveHost(*<IPaddress>*cS)i;
20 SDLNet_ResolveIP(*<IPaddress>)*c;
21 SDLNet_TCP_Accept(*<_TCPsocket>)*<_TCPsocket>;
22 SDLNet_TCP_Close(*<_TCPsocket>)v;
23 SDLNet_TCP_GetPeerAddress(*<_TCPsocket>)*<IPaddress>;
24 SDLNet_TCP_Open(*<IPaddress>)*<_TCPsocket>;
25 SDLNet_TCP_Recv(*<_TCPsocket>*vi)i;
26 SDLNet_TCP_Send(*<_TCPsocket>*vi)i;
27 SDLNet_UDP_Bind(*<_UDPsocket>i*<IPaddress>)i;
28 SDLNet_UDP_Close(*<_UDPsocket>)v;
29 SDLNet_UDP_GetPeerAddress(*<_UDPsocket>i)*<IPaddress>;
30 SDLNet_UDP_Open(S)*<_UDPsocket>;
31 SDLNet_UDP_Recv(*<_UDPsocket>*<UDPpacket>)i;
32 SDLNet_UDP_RecvV(*<_UDPsocket>**<UDPpacket>)i;
33 SDLNet_UDP_Send(*<_UDPsocket>i*<UDPpacket>)i;
34 SDLNet_UDP_SendV(*<_UDPsocket>**<UDPpacket>i)i;
35 SDLNet_UDP_Unbind(*<_UDPsocket>i)v;
36 SDLNet_Write16(S*v)v;
37 SDLNet_Write32(I*v)v;
38 ")
39 parseStructInfos("
40 IPaddress{IS}host port ;
41 SDLNet_GenericSocket_{i}ready ;
42 UDPpacket{i*Ciii<IPaddress>}channel data len maxlen status address ;
43 ")
44 INADDR_ANY=0x00000000
45 INADDR_BROADCAST=0xFFFFFFFF
46 INADDR_NONE=0xFFFFFFFF
47 SDLNET_MAX_UDPADDRESSES=4
48 SDLNET_MAX_UDPCHANNELS=32
49 #SDLNet_GetError=SDL_GetError
50 #SDLNet_SetError=SDL_SetError
51