annotate R/rdyncall/inst/dynports/SDL_net.R @ 25:02a455de2b40

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