• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

contrib/H18-Jun-2020-122111

doc/H03-May-2022-3,8143,130

examples/H18-Jun-2020-1,477923

man/H18-Jun-2020-559486

rtems/H18-Jun-2020-350249

src/H03-May-2022-6,1814,295

support/H18-Jun-2020-37,13231,336

tests/H18-Jun-2020-1,031814

vms/H18-Jun-2020-233207

AUTHORS.mdH A D18-Jun-2020131 53

COPYINGH A D18-Jun-202017.6 KiB341281

ChangeLogH A D18-Jun-202018.9 KiB555358

GMGPLH A D18-Jun-20201 KiB1816

INSTALL.mdH A D18-Jun-20201.1 KiB3525

Makefile.VMSH A D18-Jun-2020399 2814

Makefile.amH A D18-Jun-20201 KiB3831

Makefile.inH A D18-Jun-202026.3 KiB855755

README-RTEMS.mdH A D18-Jun-20202.2 KiB7855

README.mdH A D18-Jun-20201.9 KiB4332

aclocal.m4H A D18-Jun-202042.2 KiB1,1721,063

configureH A D18-Jun-2020457.4 KiB15,67413,277

configure.acH A D18-Jun-20204.3 KiB148147

README-RTEMS.md

1# Building AdaSockets to target RTEMS.
2
3Prerequisites
4=============
5Build and install a working GNAT/RTEMS toolset and a BSP. Make sure
6networking and POSIX are enabled.  Detailed instructions are available
7online in the RTEMS Wiki at:
8
9    http://www.rtems.org/wiki/index.php/RTEMSAda
10
11Run at least one sample from the RTEMS build (e.g. `hello.exe`
12or `sample.exe`) to confirm that RTEMS itself was properly built.
13
14Build and run the RTEMS `hello_world_ada` from the `ada-examples`
15package using your GNAT/RTEMS development environment.
16
17If everything is working at this point, then you are ready to
18build AdaSockets.
19
20Generate `sockets-constants.ads`
21================================
22Subdirectory: `rtems`
23
24We will use the RTEMS you installed to build and run a program
25called `constants.exe`.  The output of this program needs to be
26saved as `sockets-constants.ads`.  To compile this program use
27the `Makefile.RTEMS`.
28
29```
30% RTEMS_MAKEFILE_PATH=install_path_of_BSP make -f Makefile.RTEMS
31```
32
33Then run the program `o-optimize/constants.exe` on the target hardware.
34Your saved target board output may end up with DOS style
35CR/LF's.  Run `dos2unix` on the file to get it back to
36Unix style.
37
38There is a version of this file generated using `psim` using
39a pre-4.8 CVS snapshot of RTEMS which should work on any target.
40You can use this but you would be safer to generate your own.
41Consider it an example of how it should look when it works.
42
43
44Building AdaSockets
45===================
46Subdirectory: `src`
47
48Now that you have a `sockets-constants.ads`, we can build the
49AdaSockets library.  `Makefile.adasockets` is provided for this
50step:
51
52```
53% RTEMS_MAKEFILE_PATH=install_patch_of_BSP make -f Makefile.RTEMS
54```
55
56After the library is compiled, it may be installed using the following:
57
58```
59% RTEMS_MAKEFILE_PATH=install_patch_of_BSP make -f Makefile.RTEMS install
60```
61
62Building examples
63=================
64Subdirectory: `examples`
65
66After building the sockets package, build the examples the same way
67
68```
69% RTEMS_MAKEFILE_PATH=install_patch_of_BSP make -f Makefile.RTEMS
70```
71
72BUGS:
73
74  - stream_listener core dumps if the endian of the `stream_sender` is not
75    the same as the listener.
76  - multicast does not yet work.  This is probably an RTEMS issue.
77
78

README.md

1README file for adasockets.
2
3AdaSockets is a medium binding (it is not a thin binding because it uses Ada
4types and not a thick binding because you have the same subprogram names as
5in C) for using BSD-style sockets in Ada.
6
7Since the original release, I have been adding multicast and fixed some
8bugs. However, it is likely that others remain.
9
10To use AdaSockets with gnatmake once installed, type:
11
12    $ gnatmake $(adasockets-config) ...
13
14The `adasockets-config` part will add the correct options to gnatmake command
15line.
16
17AdaSockets is free software; you can redistribute it and/or modify it
18under terms of the GNU General Public License as published by the Free
19Software Foundation; either version 2, or (at your option) any later
20version.  AdaSockets is distributed in the hope that it will be
21useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
22MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
23General Public License for more details.  You should have received a
24copy of the GNU General Public License distributed with AdaSockets;
25see file COPYING.  If not, write to the Free Software Foundation, 59
26Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27
28As a special exception, if other files instantiate generics from this
29unit, or you link this unit with other files to produce an executable,
30this unit does not by itself cause the resulting executable to be
31covered by the GNU General Public License.  This exception does not
32however invalidate any other reasons why the executable file might be
33covered by the GNU Public License.
34
35The main repository for this software is located at:
36    http://www.rfc1149.net/devel/adasockets
37
38Please report any issues or address any question to the issues tracker
39on GitHub, located at:
40    https://github.com/samueltardieu/adasockets/issues
41
42The author, Samuel Tardieu <sam@rfc1149.net>
43