xcoll 0.6.0__py3-none-any.whl → 0.6.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of xcoll might be problematic. Click here for more details.

Files changed (82) hide show
  1. xcoll/general.py +1 -1
  2. xcoll/plot.py +1 -1
  3. {xcoll-0.6.0.dist-info → xcoll-0.6.2.dist-info}/METADATA +5 -4
  4. xcoll-0.6.2.dist-info/RECORD +61 -0
  5. {xcoll-0.6.0.dist-info → xcoll-0.6.2.dist-info}/WHEEL +1 -1
  6. xcoll/scattering_routines/fluka/flukaio/.git +0 -1
  7. xcoll/scattering_routines/fluka/flukaio/.gitignore +0 -2
  8. xcoll/scattering_routines/fluka/flukaio/CMakeLists.txt +0 -18
  9. xcoll/scattering_routines/fluka/flukaio/ComponentMakefile +0 -192
  10. xcoll/scattering_routines/fluka/flukaio/Makefile +0 -144
  11. xcoll/scattering_routines/fluka/flukaio/README +0 -26
  12. xcoll/scattering_routines/fluka/flukaio/doc/Doxyfile +0 -1551
  13. xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO.asciidoc +0 -1054
  14. xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO.epub +0 -0
  15. xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO.html +0 -1607
  16. xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO.pdf +0 -0
  17. xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO__1.png +0 -0
  18. xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO__2.png +0 -0
  19. xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO__3.png +0 -0
  20. xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO__4.png +0 -0
  21. xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO__5.png +0 -0
  22. xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO__6.png +0 -0
  23. xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO__7.png +0 -0
  24. xcoll/scattering_routines/fluka/flukaio/doc/Makefile +0 -8
  25. xcoll/scattering_routines/fluka/flukaio/doc/docbook.xsl +0 -1690
  26. xcoll/scattering_routines/fluka/flukaio/include/Connection.h +0 -79
  27. xcoll/scattering_routines/fluka/flukaio/include/FlukaIO.h +0 -58
  28. xcoll/scattering_routines/fluka/flukaio/include/FlukaIOServer.h +0 -33
  29. xcoll/scattering_routines/fluka/flukaio/include/FortranFlukaIO.h +0 -277
  30. xcoll/scattering_routines/fluka/flukaio/include/Message.h +0 -89
  31. xcoll/scattering_routines/fluka/flukaio/include/ParticleInfo.h +0 -76
  32. xcoll/scattering_routines/fluka/flukaio/lib/libFlukaIO64.a +0 -0
  33. xcoll/scattering_routines/fluka/flukaio/lib/libFlukaIO64.so +0 -0
  34. xcoll/scattering_routines/fluka/flukaio/samples/ClientTest.c +0 -156
  35. xcoll/scattering_routines/fluka/flukaio/samples/ServerTest.c +0 -123
  36. xcoll/scattering_routines/fluka/flukaio/samples/fclient.f +0 -149
  37. xcoll/scattering_routines/fluka/flukaio/samples/fserver.f +0 -118
  38. xcoll/scattering_routines/fluka/flukaio/src/Connection.c +0 -264
  39. xcoll/scattering_routines/fluka/flukaio/src/Connection.d +0 -69
  40. xcoll/scattering_routines/fluka/flukaio/src/Connection.o +0 -0
  41. xcoll/scattering_routines/fluka/flukaio/src/FlukaIO.c +0 -211
  42. xcoll/scattering_routines/fluka/flukaio/src/FlukaIO.d +0 -46
  43. xcoll/scattering_routines/fluka/flukaio/src/FlukaIO.o +0 -0
  44. xcoll/scattering_routines/fluka/flukaio/src/FlukaIOHandshake.c +0 -45
  45. xcoll/scattering_routines/fluka/flukaio/src/FlukaIOHandshake.d +0 -29
  46. xcoll/scattering_routines/fluka/flukaio/src/FlukaIOHandshake.h +0 -17
  47. xcoll/scattering_routines/fluka/flukaio/src/FlukaIOHandshake.o +0 -0
  48. xcoll/scattering_routines/fluka/flukaio/src/FlukaIOServer.c +0 -84
  49. xcoll/scattering_routines/fluka/flukaio/src/FlukaIOServer.d +0 -70
  50. xcoll/scattering_routines/fluka/flukaio/src/FlukaIOServer.o +0 -0
  51. xcoll/scattering_routines/fluka/flukaio/src/FlukaIOServer_private.h +0 -22
  52. xcoll/scattering_routines/fluka/flukaio/src/FlukaIO_private.h +0 -16
  53. xcoll/scattering_routines/fluka/flukaio/src/FortranFlukaIO.c +0 -533
  54. xcoll/scattering_routines/fluka/flukaio/src/FortranFlukaIO.d +0 -40
  55. xcoll/scattering_routines/fluka/flukaio/src/FortranFlukaIO.o +0 -0
  56. xcoll/scattering_routines/fluka/flukaio/src/NetIO.c +0 -304
  57. xcoll/scattering_routines/fluka/flukaio/src/NetIO.d +0 -66
  58. xcoll/scattering_routines/fluka/flukaio/src/NetIO.h +0 -30
  59. xcoll/scattering_routines/fluka/flukaio/src/NetIO.o +0 -0
  60. xcoll/scattering_routines/fluka/flukaio/src/tags +0 -167
  61. xcoll/scattering_routines/fluka/flukaio/tests/AllTests.cpp +0 -8
  62. xcoll/scattering_routines/fluka/flukaio/tests/CommonTest.h +0 -10
  63. xcoll/scattering_routines/fluka/flukaio/tests/ConnectionTest.cpp +0 -99
  64. xcoll/scattering_routines/fluka/flukaio/tests/FlukaIOServerTest.cpp +0 -104
  65. xcoll/scattering_routines/fluka/flukaio/tests/FlukaIOTest.cpp +0 -439
  66. xcoll/scattering_routines/fluka/flukaio/tests/FortranFlukaIOTest.cpp +0 -682
  67. xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeConnection.c +0 -19
  68. xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeConnection.h +0 -16
  69. xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeFlukaIO.c +0 -74
  70. xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeFlukaIO.h +0 -50
  71. xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeFlukaIOHandshake.c +0 -16
  72. xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeFlukaIOHandshake.h +0 -20
  73. xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeFlukaIOServer.c +0 -12
  74. xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeFlukaIOServer.h +0 -18
  75. xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeFortranFlukaIO.h +0 -19
  76. xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeNetIO.c +0 -80
  77. xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeNetIO.h +0 -35
  78. xcoll-0.6.0.dist-info/LICENSE +0 -201
  79. xcoll-0.6.0.dist-info/NOTICE +0 -2
  80. xcoll-0.6.0.dist-info/RECORD +0 -135
  81. /LICENSE → /xcoll-0.6.2.dist-info/LICENSE +0 -0
  82. /NOTICE → /xcoll-0.6.2.dist-info/NOTICE +0 -0
@@ -1,304 +0,0 @@
1
- #include "NetIO.h"
2
-
3
- static ssize_t netio_xwrite(int fd, const void *buf, size_t len);
4
-
5
- /**
6
- * Read if possible
7
- * @param fd file/socket descriptor
8
- * @param buf buffer
9
- * @param len buffer length
10
- * @return bytes read, -1 on failure
11
- */
12
- ssize_t netio_read(const int fd, void *buf, size_t len)
13
- {
14
- ssize_t nr;
15
- while (1) {
16
- nr = read(fd, buf, len);
17
- //if ((nr < 0) && (errno == EAGAIN || errno == EINTR))
18
- if ((nr < 0) && (errno == EINTR))
19
- continue;
20
- return nr;
21
- }
22
- }
23
-
24
- /**
25
- * Writes the complete buffer safely
26
- * Blocks until done
27
- *
28
- * @param fd file/socket descriptor
29
- * @param buf buffer
30
- * @param count number of bytes to write
31
- * @return bytes written, -1 on failure
32
- */
33
- ssize_t netio_write(int fd, const void *buf, size_t count)
34
- {
35
- const char *p = buf;
36
- ssize_t total = 0;
37
-
38
- while (count > 0) {
39
- ssize_t written = netio_xwrite(fd, p, count);
40
- if (written < 0)
41
- return -1;
42
- if (!written) {
43
- errno = ENOSPC;
44
- return -1;
45
- }
46
- count -= written;
47
- p += written;
48
- total += written;
49
- }
50
-
51
- return total;
52
- }
53
-
54
- /**
55
- * Writes to fd and restarts operations if recoverable error.
56
- *
57
- * Either sends something or the connection is broken
58
- * Doesn't guarantee len bytes are written
59
- *
60
- * Uses netio_can_write after first error happens
61
- * @return bytes written, -1 on failure
62
- */
63
- static ssize_t netio_xwrite(int fd, const void *buf, size_t len)
64
- {
65
- ssize_t nr;
66
- while (1) {
67
- nr = write(fd, buf, len);
68
- if ((nr < 0) && (errno == EAGAIN || errno == EINTR))
69
- {
70
- if (netio_can_write(fd, 5, 0) < 0)
71
- return -1;
72
- continue;
73
- }
74
- return nr;
75
- }
76
- }
77
-
78
-
79
- /**
80
- * Check if the socket can write data
81
- * @param fd socket descriptor to check
82
- * @param timeout_sec timeout in seconds
83
- * @param timeout_usec timeout in micro-seconds
84
- * @return 1 if socket available to send data
85
- */
86
- int netio_can_write(int fd, long timeout_sec, long timeout_usec)
87
- {
88
- int ret;
89
- fd_set writefds;
90
- struct timeval tv;
91
-
92
- FD_ZERO(&writefds);
93
- FD_SET(fd, &writefds);
94
-
95
- while(1) {
96
- tv.tv_sec = timeout_sec;
97
- tv.tv_usec = timeout_usec;
98
-
99
- ret = select(fd+1, NULL, &writefds, NULL, &tv);
100
- if (ret < 0) {
101
- if (errno == EINTR)
102
- continue;
103
- return -1;
104
- }
105
- return FD_ISSET(fd, &writefds) != 0;
106
- }
107
- }
108
-
109
- /**
110
- * Check if the socket can read data
111
- * @param fd socket descriptor to check
112
- * @param timeout_sec timeout in seconds
113
- * @param timeout_usec timeout in micro-seconds
114
- * @return 1 if socket available to send data
115
- */
116
- int netio_can_read(int fd, long timeout_sec, long timeout_usec)
117
- {
118
- int ret;
119
- fd_set readfds;
120
- struct timeval tv;
121
-
122
- FD_ZERO(&readfds);
123
- FD_SET(fd, &readfds);
124
-
125
- while(1) {
126
- tv.tv_sec = timeout_sec;
127
- tv.tv_usec = timeout_usec;
128
-
129
- ret = select(fd+1, &readfds, NULL, NULL, &tv);
130
- if (ret < 0) {
131
- if (errno == EINTR)
132
- continue;
133
- return -1;
134
- }
135
- return FD_ISSET(fd, &readfds) != 0;
136
- }
137
- }
138
-
139
- /**
140
- * Enable no delay flag in a socket
141
- * @return setsockopt value
142
- */
143
- int netio_set_nodelay(int fd) {
144
- int flag = 1;
145
- return setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (char *)&flag, sizeof(int));
146
- }
147
-
148
- /**
149
- * Connect to host and port
150
- * @return 1 socket fd if ok, -1 if failure
151
- */
152
- int netio_connect(const char *host, int portnum)
153
- {
154
- int sockfd = -1;
155
- struct sockaddr_in sin;
156
- struct hostent *server;
157
-
158
- sockfd = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
159
- if (sockfd < 0)
160
- {
161
- fprintf(stderr, "Unable to create socket (%s)\n", strerror(errno));
162
- return -1;
163
- }
164
-
165
- // Set connection parameters
166
- server = gethostbyname(host);
167
- if (server == NULL)
168
- {
169
- fprintf(stderr, "Unable to resolve host %s\n", host);
170
- close(sockfd);
171
- sockfd = -1;
172
- return -1;
173
- }
174
-
175
- memset(&sin, 0, sizeof(sin));
176
- sin.sin_family = AF_INET;
177
- sin.sin_port = htons(portnum);
178
- memcpy(&sin.sin_addr, server->h_addr, server->h_length);
179
-
180
- if (connect(sockfd, (struct sockaddr *)&sin, sizeof(sin)) < 0)
181
- {
182
- fprintf(stderr, "Unable to connect to %s %d error=(%s)\n", host, portnum, strerror(errno));
183
- close(sockfd);
184
- sockfd = -1;
185
- return -1;
186
- }
187
- netio_set_nonblocking(sockfd);
188
- #ifdef FLUKAIO_NODELAY
189
- netio_set_nodelay(sockfd);
190
- #endif
191
-
192
- return sockfd;
193
- }
194
-
195
- /**
196
- * Set non blocking flag in a socket
197
- * @return fnctl return value
198
- */
199
- int netio_set_nonblocking(int fd) {
200
- int flags;
201
- if (-1 == (flags = fcntl(fd, F_GETFL, 0)))
202
- flags = 0;
203
- return fcntl(fd, F_SETFL, flags | O_NONBLOCK);
204
- }
205
-
206
- /**
207
- * Starts server and returns socket
208
- * @param port number where to listen (random if 0)
209
- * @return socket or -1 if failure
210
- */
211
- int netio_server_start(int *port, int *sockfd)
212
- {
213
- struct sockaddr_in myaddr_in;
214
- socklen_t myaddr_in_len = sizeof(myaddr_in);
215
-
216
- /* Create the listen socket. */
217
- *sockfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
218
- if (*sockfd < 0) {
219
- perror("netio");
220
- return -1;
221
- }
222
-
223
- /* clear out address structures */
224
- memset(&myaddr_in, 0, sizeof(myaddr_in));
225
-
226
- myaddr_in.sin_family = AF_INET;
227
- myaddr_in.sin_port = htons(*port); // If the user supplied 0 then it will be assigned by the kernel
228
- myaddr_in.sin_addr.s_addr = htonl(INADDR_ANY);
229
-
230
- /* Bind the listen address to the socket. */
231
- if (bind(*sockfd, (const struct sockaddr*)&myaddr_in, myaddr_in_len) < 0) {
232
- close(*sockfd);
233
- perror("netio");
234
- return -1;
235
- }
236
-
237
- /* Find the assigned port and return it back */
238
- if (getsockname(*sockfd, (struct sockaddr *)&myaddr_in, &myaddr_in_len) < 0) {
239
- close(*sockfd);
240
- perror("netio");
241
- return -1;
242
- }
243
-
244
- *port = ntohs(myaddr_in.sin_port);
245
-
246
- if (listen(*sockfd, 5) == -1) {
247
- close(*sockfd);
248
- perror("netio");
249
- return -1;
250
- }
251
-
252
- return *port;
253
- }
254
-
255
- /**
256
- * Accepts a connection in a server socket
257
- * @param server_sockfd an already initialized server socket
258
- * @return new connection socket, -1 if failure
259
- */
260
- int netio_server_accept(int server_sockfd)
261
- {
262
- int sockfd;
263
- struct sockaddr_storage peeraddr_in;
264
- socklen_t addrlen = sizeof(peeraddr_in);
265
-
266
- if (server_sockfd < 0)
267
- return -1;
268
-
269
- memset((char *)&peeraddr_in, 0, sizeof(peeraddr_in));
270
-
271
- sockfd = accept(server_sockfd,
272
- (struct sockaddr*)&peeraddr_in,
273
- &addrlen);
274
-
275
- if (sockfd < 0)
276
- return -1;
277
-
278
- #ifdef FLUKAIO_NODELAY
279
- netio_set_nodelay(sockfd);
280
- #endif
281
- netio_set_nonblocking(sockfd);
282
-
283
- return sockfd;
284
- }
285
-
286
- /**
287
- * Shutdownd and closes server
288
- * @param server_sockfd an already initialized server socket
289
- * @return 0 if success, -1 if failure
290
- */
291
- int netio_server_shutdown(int server_sockfd)
292
- {
293
- if (server_sockfd < 0)
294
- return 0;
295
-
296
- if (shutdown(server_sockfd, SHUT_RDWR) == -1) {
297
- perror("netio");
298
- return -1;
299
- }
300
-
301
- close(server_sockfd);
302
-
303
- return 0;
304
- }
@@ -1,66 +0,0 @@
1
- src/NetIO.o src/NetIO.d: src/NetIO.c src/NetIO.h \
2
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/stdlib.h \
3
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/features.h \
4
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/sys/cdefs.h \
5
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/wordsize.h \
6
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/gnu/stubs.h \
7
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/gnu/stubs-64.h \
8
- /apps/miniforge3/envs/xcoll/lib/gcc/x86_64-conda-linux-gnu/13.2.0/include/stddef.h \
9
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/waitflags.h \
10
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/waitstatus.h \
11
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/endian.h \
12
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/endian.h \
13
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/byteswap.h \
14
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/sys/types.h \
15
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/types.h \
16
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/typesizes.h \
17
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/time.h \
18
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/sys/select.h \
19
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/select.h \
20
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/sigset.h \
21
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/time.h \
22
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/sys/sysmacros.h \
23
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/pthreadtypes.h \
24
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/alloca.h \
25
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/stdio.h \
26
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/libio.h \
27
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/_G_config.h \
28
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/wchar.h \
29
- /apps/miniforge3/envs/xcoll/lib/gcc/x86_64-conda-linux-gnu/13.2.0/include/stdarg.h \
30
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/stdio_lim.h \
31
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/sys_errlist.h \
32
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/unistd.h \
33
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/posix_opt.h \
34
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/environments.h \
35
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/confname.h \
36
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/getopt.h \
37
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/errno.h \
38
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/errno.h \
39
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/linux/errno.h \
40
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/asm/errno.h \
41
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/asm-generic/errno.h \
42
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/asm-generic/errno-base.h \
43
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/string.h \
44
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/xlocale.h \
45
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/sys/socket.h \
46
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/sys/uio.h \
47
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/uio.h \
48
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/socket.h \
49
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/sockaddr.h \
50
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/asm/socket.h \
51
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/asm-generic/socket.h \
52
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/asm/sockios.h \
53
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/asm-generic/sockios.h \
54
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/arpa/inet.h \
55
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/netinet/in.h \
56
- /apps/miniforge3/envs/xcoll/lib/gcc/x86_64-conda-linux-gnu/13.2.0/include/stdint.h \
57
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/stdint.h \
58
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/wchar.h \
59
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/in.h \
60
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/fcntl.h \
61
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/fcntl.h \
62
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/stat.h \
63
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/netinet/tcp.h \
64
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/netdb.h \
65
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/rpc/netdb.h \
66
- /apps/miniforge3/envs/xcoll/x86_64-conda-linux-gnu/sysroot/usr/include/bits/netdb.h
@@ -1,30 +0,0 @@
1
- #ifndef FLUKAIO_NETIO_PRIV_H__
2
- #define FLUKAIO_NETIO_PRIV_H__
3
-
4
- #include <stdlib.h>
5
- #include <stdio.h>
6
- #include <unistd.h>
7
- #include <errno.h>
8
- #include <string.h>
9
- #include <sys/types.h>
10
- #include <sys/socket.h>
11
- #include <arpa/inet.h>
12
- #include <fcntl.h>
13
- #include <netinet/in.h>
14
- #include <netinet/tcp.h>
15
- #include <netdb.h>
16
-
17
- ssize_t netio_read(int fd, void *buf, size_t n);
18
- ssize_t netio_write(int fd, const void *buf, size_t len);
19
- ssize_t netio_write_str(int fd, const char *msg);
20
- int netio_can_write(int fd, long timeout_sec, long timeout_usec);
21
- int netio_can_read(int fd, long timeout_sec, long timeout_usec);
22
- int netio_connect(const char *host, int portnum);
23
- int netio_set_nonblocking(int fd);
24
- int netio_set_nodelay(int fd);
25
-
26
- int netio_server_start(int *port, int *sockfd);
27
- int netio_server_accept(int server_sockfd);
28
- int netio_server_shutdown(int server_sockfd);
29
-
30
- #endif
@@ -1,167 +0,0 @@
1
- !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
2
- !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
3
- !_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
4
- !_TAG_PROGRAM_NAME Exuberant Ctags //
5
- !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
6
- !_TAG_PROGRAM_VERSION 5.8 //
7
- DEFAULT_READ_TIMEOUT ../include/Connection.h 17;" d
8
- DEFAULT_WRITE_TIMEOUT ../include/Connection.h 18;" d
9
- FLUKAIO_CONNECTION_H__ ../include/Connection.h 2;" d
10
- FLUKAIO_FLUKAIOSERVER_H__ ../include/FlukaIOServer.h 2;" d
11
- FLUKAIO_FLUKAIOSERVER_PRIV_H__ FlukaIOServer_private.h 2;" d
12
- FLUKAIO_FLUKAIO_H__ ../include/FlukaIO.h 2;" d
13
- FLUKAIO_FLUKAIO_PRIV_H__ FlukaIO_private.h 2;" d
14
- FLUKAIO_FORTRANFLUKAIO_H__ ../include/FortranFlukaIO.h 2;" d
15
- FLUKAIO_HANDSHAKE_H__ FlukaIOHandshake.h 2;" d
16
- FLUKAIO_IN_CACHE ../include/FlukaIO.h 29;" d
17
- FLUKAIO_MAJOR_VERSION ../include/FlukaIO.h 11;" d
18
- FLUKAIO_MAX_CONNECTIONS FortranFlukaIO.c 7;" d file:
19
- FLUKAIO_MAX_SERVERS FortranFlukaIO.c 8;" d file:
20
- FLUKAIO_MESSAGE_H__ ../include/Message.h 2;" d
21
- FLUKAIO_MINOR_VERSION ../include/FlukaIO.h 12;" d
22
- FLUKAIO_NETIO_PRIV_H__ NetIO.h 2;" d
23
- FLUKAIO_OUT_CACHE ../include/FlukaIO.h 22;" d
24
- FLUKAIO_PARTICLE_INFO_H__ ../include/ParticleInfo.h 2;" d
25
- FLUKAIO_VERSION ../include/FlukaIO.h 13;" d
26
- IN_BUFFER_LEN ../include/Connection.h 13;" d
27
- MSG_EOB_LEN ../include/Message.h 30;" d
28
- MSG_EOC_LEN ../include/Message.h 31;" d
29
- MSG_HEADER_LEN ../include/Message.h 27;" d
30
- MSG_HSK_LEN ../include/Message.h 32;" d
31
- MSG_IPT_LEN ../include/Message.h 29;" d
32
- MSG_PART_LEN ../include/Message.h 28;" d
33
- N_CONF ../include/Message.h /^ N_CONF = 0x04,$/;" e enum:flukaio_message_type_e
34
- N_END ../include/Message.h /^ N_END = 0x03,$/;" e enum:flukaio_message_type_e
35
- N_EOB ../include/Message.h /^ N_EOB = 0x02,$/;" e enum:flukaio_message_type_e
36
- N_ERR ../include/Message.h /^ N_ERR = 0x00,$/;" e enum:flukaio_message_type_e
37
- N_HSK ../include/Message.h /^ N_HSK = 0x06,$/;" e enum:flukaio_message_type_e
38
- N_IPT ../include/Message.h /^ N_IPT = 0x05,$/;" e enum:flukaio_message_type_e
39
- N_OTHER ../include/Message.h /^ N_OTHER = 0xff$/;" e enum:flukaio_message_type_e
40
- N_PART ../include/Message.h /^ N_PART = 0x01,$/;" e enum:flukaio_message_type_e
41
- OUT_BUFFER_LEN ../include/Connection.h 14;" d
42
- _data ../include/Message.h /^ union _data {$/;" u struct:__anon4
43
- _flukaio_connection_t ../include/Connection.h /^typedef struct _flukaio_connection_t {$/;" s
44
- aa ../include/ParticleInfo.h /^ uint16_t aa;$/;" m struct:__anon5
45
- accept ../include/FlukaIOServer.h /^ int (*accept)(int server_sockfd);$/;" m struct:__anon1
46
- can_read ../include/Connection.h /^ int (*can_read)(int fd, long timeout_sec, long timeout_usec);$/;" m struct:_flukaio_connection_t
47
- can_write ../include/Connection.h /^ int (*can_write)(int fd, long timeout_sec, long timeout_usec);$/;" m struct:_flukaio_connection_t
48
- connect ../include/Connection.h /^ int (*connect)(const char *host, int portnum);$/;" m struct:_flukaio_connection_t
49
- connection_can_read Connection.c /^int connection_can_read(flukaio_connection_t *conn)$/;" f
50
- connection_can_write Connection.c /^int connection_can_write(flukaio_connection_t *conn)$/;" f
51
- connection_connect Connection.c /^int connection_connect(flukaio_connection_t *conn, const char *host, int port) {$/;" f
52
- connection_create ../include/FlukaIOServer.h /^ flukaio_connection_t* (*connection_create)(int);$/;" m struct:__anon1
53
- connection_create Connection.c /^flukaio_connection_t *connection_create(int fd)$/;" f
54
- connection_destroy Connection.c /^void connection_destroy(flukaio_connection_t *conn)$/;" f
55
- connection_flush Connection.c /^ssize_t connection_flush(flukaio_connection_t *conn)$/;" f
56
- connection_push_message Connection.c /^ssize_t connection_push_message(flukaio_connection_t * conn,$/;" f
57
- connection_read Connection.c /^ssize_t connection_read(flukaio_connection_t *conn)$/;" f
58
- connection_read_message_from Connection.c /^inline ssize_t connection_read_message_from(flukaio_message_t *msg, const void *buffer, size_t buffer_len)$/;" f
59
- connection_receive_message Connection.c /^ssize_t connection_receive_message(flukaio_connection_t *conn, flukaio_message_t *msg)$/;" f
60
- connection_set_read_timeout Connection.c /^int connection_set_read_timeout(flukaio_connection_t *conn, long timeout)$/;" f
61
- connection_set_write_timeout Connection.c /^int connection_set_write_timeout(flukaio_connection_t *conn, long timeout)$/;" f
62
- connection_write Connection.c /^ssize_t connection_write(flukaio_connection_t *conn)$/;" f
63
- connection_write_message_bin Connection.c /^ssize_t connection_write_message_bin($/;" f
64
- connections FortranFlukaIO.c /^static flukaio_connection_t *connections[FLUKAIO_MAX_CONNECTIONS];$/;" v file:
65
- create_fortran_string FortranFlukaIO.c /^char * create_fortran_string(const char *str, const long str_len) {$/;" f
66
- data ../include/Message.h /^ } data;$/;" m struct:__anon4 typeref:union:__anon4::_data
67
- fd ../include/Connection.h /^ int fd; \/**< Socket file descriptor *\/$/;" m struct:_flukaio_connection_t
68
- fd ../include/FlukaIOServer.h /^ int fd;$/;" m struct:__anon1
69
- flukaio_conn FlukaIO.c /^flukaio_connection_t* flukaio_conn() {$/;" f
70
- flukaio_connect FlukaIO.c /^flukaio_connection_t *flukaio_connect(flukaio_connection_t *conn, const char *host, int port) {$/;" f
71
- flukaio_connection_t ../include/Connection.h /^} flukaio_connection_t;$/;" t typeref:struct:_flukaio_connection_t
72
- flukaio_disconnect FlukaIO.c /^void flukaio_disconnect(flukaio_connection_t *conn) {$/;" f
73
- flukaio_handshake_client FlukaIOHandshake.c /^int (*flukaio_handshake_client)(flukaio_connection_t * conn) = &impl_flukaio_handshake_client;$/;" v
74
- flukaio_handshake_server FlukaIOHandshake.c /^int (*flukaio_handshake_server)(flukaio_connection_t * conn) = &impl_flukaio_handshake_server;$/;" v
75
- flukaio_hsk_data_t ../include/Message.h /^} flukaio_hsk_data_t;$/;" t typeref:struct:__anon3
76
- flukaio_ipt_data_t ../include/Message.h /^} flukaio_ipt_data_t;$/;" t typeref:struct:__anon2
77
- flukaio_message_t ../include/Message.h /^} flukaio_message_t;$/;" t typeref:struct:__anon4
78
- flukaio_message_type_e ../include/Message.h /^enum flukaio_message_type_e {$/;" g
79
- flukaio_message_type_t ../include/Message.h /^typedef uint8_t flukaio_message_type_t;$/;" t
80
- flukaio_receive_message FlukaIO.c /^ssize_t flukaio_receive_message(flukaio_connection_t *conn, flukaio_message_t *msg)$/;" f
81
- flukaio_send_eob FlukaIO.c /^ssize_t flukaio_send_eob(flukaio_connection_t *conn)$/;" f
82
- flukaio_send_eoc FlukaIO.c /^ssize_t flukaio_send_eoc(flukaio_connection_t *conn)$/;" f
83
- flukaio_send_hsk FlukaIO.c /^ssize_t flukaio_send_hsk(flukaio_connection_t *conn, uint16_t major, uint16_t minor, uint32_t key)$/;" f
84
- flukaio_send_ipt FlukaIO.c /^ssize_t flukaio_send_ipt(flukaio_connection_t *conn, uint32_t turn, uint16_t ipt)$/;" f
85
- flukaio_send_particle FlukaIO.c /^ssize_t flukaio_send_particle(flukaio_connection_t *conn, const particle_info_t *part)$/;" f
86
- flukaio_server_accept FlukaIOServer.c /^flukaio_connection_t *flukaio_server_accept(flukaio_server_t* server)$/;" f
87
- flukaio_server_create FlukaIOServer.c /^flukaio_server_t* flukaio_server_create()$/;" f
88
- flukaio_server_get_port FlukaIOServer.c /^int flukaio_server_get_port(flukaio_server_t* server) {$/;" f
89
- flukaio_server_shutdown FlukaIOServer.c /^int flukaio_server_shutdown(flukaio_server_t* server)$/;" f
90
- flukaio_server_start FlukaIOServer.c /^int flukaio_server_start(flukaio_server_t* server, unsigned int port)$/;" f
91
- flukaio_server_t ../include/FlukaIOServer.h /^} flukaio_server_t;$/;" t typeref:struct:__anon1
92
- flukaio_wait_message FlukaIO.c /^ssize_t flukaio_wait_message(flukaio_connection_t *conn, flukaio_message_t *msg) {$/;" f
93
- gen ../include/ParticleInfo.h /^ uint32_t gen;$/;" m struct:__anon5
94
- get_connection FortranFlukaIO.c /^static flukaio_connection_t *get_connection(int cid)$/;" f file:
95
- get_server FortranFlukaIO.c /^static flukaio_server_t *get_server(int serverid)$/;" f file:
96
- hsk ../include/Message.h /^ flukaio_hsk_data_t hsk;$/;" m union:__anon4::_data
97
- id ../include/ParticleInfo.h /^ uint32_t id;$/;" m struct:__anon5
98
- impl_flukaio_handshake_client FlukaIOHandshake.c /^int impl_flukaio_handshake_client(flukaio_connection_t * conn) {$/;" f
99
- impl_flukaio_handshake_server FlukaIOHandshake.c /^int impl_flukaio_handshake_server(flukaio_connection_t * conn) {$/;" f
100
- in_buffer ../include/Connection.h /^ char in_buffer[IN_BUFFER_LEN]; \/**< Input data buffer *\/$/;" m struct:_flukaio_connection_t
101
- in_buffer_end ../include/Connection.h /^ size_t in_buffer_end; \/**< End position of the data in the buffer (bytes) *\/$/;" m struct:_flukaio_connection_t
102
- in_buffer_len ../include/Connection.h /^ size_t in_buffer_len; \/**< Length of the data in the buffer (bytes) *\/$/;" m struct:_flukaio_connection_t
103
- in_buffer_size ../include/Connection.h /^ size_t in_buffer_size; \/**< Total size of the buffer (bytes) *\/$/;" m struct:_flukaio_connection_t
104
- in_buffer_start ../include/Connection.h /^ size_t in_buffer_start; \/**< Start position of the data in the buffer (bytes) *\/$/;" m struct:_flukaio_connection_t
105
- ipt ../include/Message.h /^ flukaio_ipt_data_t ipt;$/;" m union:__anon4::_data
106
- ipt ../include/Message.h /^ uint16_t ipt;$/;" m struct:__anon2
107
- key ../include/Message.h /^ uint32_t key; \/\/ random key$/;" m struct:__anon3
108
- m ../include/ParticleInfo.h /^ double m;$/;" m struct:__anon5
109
- major ../include/Message.h /^ uint16_t major; \/\/ version$/;" m struct:__anon3
110
- minor ../include/Message.h /^ uint16_t minor;$/;" m struct:__anon3
111
- netio_can_read NetIO.c /^int netio_can_read(int fd, long timeout_sec, long timeout_usec)$/;" f
112
- netio_can_write NetIO.c /^int netio_can_write(int fd, long timeout_sec, long timeout_usec)$/;" f
113
- netio_connect NetIO.c /^int netio_connect(const char *host, int portnum)$/;" f
114
- netio_read NetIO.c /^ssize_t netio_read(const int fd, void *buf, size_t len)$/;" f
115
- netio_server_accept NetIO.c /^int netio_server_accept(int server_sockfd)$/;" f
116
- netio_server_shutdown NetIO.c /^int netio_server_shutdown(int server_sockfd)$/;" f
117
- netio_server_start NetIO.c /^int netio_server_start(int *port, int *sockfd)$/;" f
118
- netio_set_nodelay NetIO.c /^int netio_set_nodelay(int fd) {$/;" f
119
- netio_set_nonblocking NetIO.c /^int netio_set_nonblocking(int fd) {$/;" f
120
- netio_write NetIO.c /^ssize_t netio_write(int fd, const void *buf, size_t count)$/;" f
121
- netio_xwrite NetIO.c /^static ssize_t netio_xwrite(int fd, const void *buf, size_t len)$/;" f file:
122
- ntaccept_ FortranFlukaIO.c /^int ntaccept_(const int *serverid)$/;" f
123
- ntconnect_ FortranFlukaIO.c /^int ntconnect_(char *host, int *port, const long hostlen)$/;" f
124
- ntend_ FortranFlukaIO.c /^int ntend_(const int *cid) {$/;" f
125
- ntgetport_ FortranFlukaIO.c /^int ntgetport_(const int *serverid) {$/;" f
126
- ntinit_ FortranFlukaIO.c /^int ntinit_()$/;" f
127
- ntrecv_ FortranFlukaIO.c /^int ntrecv_($/;" f
128
- ntrtimeout_ FortranFlukaIO.c /^int ntrtimeout_(const int *cid, const int *seconds) {$/;" f
129
- ntsendeob_ FortranFlukaIO.c /^int ntsendeob_(const int *cid) {$/;" f
130
- ntsendeoc_ FortranFlukaIO.c /^int ntsendeoc_(const int *cid) {$/;" f
131
- ntsendipt_ FortranFlukaIO.c /^int ntsendipt_(const int *cid, const uint32_t *turn, const uint16_t *ipt) {$/;" f
132
- ntsendp_ FortranFlukaIO.c /^int ntsendp_($/;" f
133
- ntserver_ FortranFlukaIO.c /^int ntserver_() {$/;" f
134
- ntshdwn_ FortranFlukaIO.c /^int ntshdwn_(const int *serverid) {$/;" f
135
- ntstart_ FortranFlukaIO.c /^int ntstart_(const int *serverid, int *port) {$/;" f
136
- ntwait_ FortranFlukaIO.c /^int ntwait_($/;" f
137
- ntwtimeout_ FortranFlukaIO.c /^int ntwtimeout_(const int *cid, const int *seconds) {$/;" f
138
- out_buffer ../include/Connection.h /^ char out_buffer[OUT_BUFFER_LEN]; \/**< Output data buffer *\/$/;" m struct:_flukaio_connection_t
139
- out_buffer_len ../include/Connection.h /^ size_t out_buffer_len; \/**< Length of the data in the buffer (bytes) *\/$/;" m struct:_flukaio_connection_t
140
- out_buffer_size ../include/Connection.h /^ size_t out_buffer_size; \/**< Total size of the buffer (bytes) *\/$/;" m struct:_flukaio_connection_t
141
- particle ../include/Message.h /^ particle_info_t particle;$/;" m union:__anon4::_data
142
- particle_info_t ../include/ParticleInfo.h /^} particle_info_t;$/;" t typeref:struct:__anon5
143
- pc ../include/ParticleInfo.h /^ double pc;$/;" m struct:__anon5
144
- port ../include/FlukaIOServer.h /^ int port;$/;" m struct:__anon1
145
- read ../include/Connection.h /^ ssize_t (*read)(int fd, void *buf, size_t n);$/;" m struct:_flukaio_connection_t
146
- read_timeout ../include/Connection.h /^ int read_timeout; \/**< Timeout for reading operations (seconds) *\/$/;" m struct:_flukaio_connection_t
147
- servers FortranFlukaIO.c /^static flukaio_server_t *servers[FLUKAIO_MAX_SERVERS];$/;" v file:
148
- set_nodelay ../include/Connection.h /^ int (*set_nodelay)(int fd);$/;" m struct:_flukaio_connection_t
149
- set_nonblocking ../include/Connection.h /^ int (*set_nonblocking)(int fd);$/;" m struct:_flukaio_connection_t
150
- shutdown ../include/FlukaIOServer.h /^ int (*shutdown)(int server_sockfd);$/;" m struct:__anon1
151
- size ../include/Message.h /^ uint16_t size; \/**< Total size in bytes of the message (including headers) *\/$/;" m struct:__anon4
152
- start ../include/FlukaIOServer.h /^ int (*start)(int *port, int *sockfd);$/;" m struct:__anon1
153
- store_connection FortranFlukaIO.c /^int store_connection(flukaio_connection_t *conn)$/;" f
154
- store_server FortranFlukaIO.c /^int store_server(flukaio_server_t *server)$/;" f
155
- t ../include/ParticleInfo.h /^ double t;$/;" m struct:__anon5
156
- turn ../include/Message.h /^ uint32_t turn;$/;" m struct:__anon2
157
- tx ../include/ParticleInfo.h /^ double tx;$/;" m struct:__anon5
158
- ty ../include/ParticleInfo.h /^ double ty;$/;" m struct:__anon5
159
- type ../include/Message.h /^ flukaio_message_type_t type; \/**< Type of message *\/$/;" m struct:__anon4
160
- tz ../include/ParticleInfo.h /^ double tz;$/;" m struct:__anon5
161
- weight ../include/ParticleInfo.h /^ double weight;$/;" m struct:__anon5
162
- write ../include/Connection.h /^ ssize_t (*write)(int fd, const void *buf, size_t len);$/;" m struct:_flukaio_connection_t
163
- write_timeout ../include/Connection.h /^ int write_timeout; \/**< Timeout for writing operations (seconds) *\/$/;" m struct:_flukaio_connection_t
164
- x ../include/ParticleInfo.h /^ double x;$/;" m struct:__anon5
165
- y ../include/ParticleInfo.h /^ double y;$/;" m struct:__anon5
166
- z ../include/ParticleInfo.h /^ double z;$/;" m struct:__anon5
167
- zz ../include/ParticleInfo.h /^ uint16_t zz;$/;" m struct:__anon5
@@ -1,8 +0,0 @@
1
- #include "CppUTest/CommandLineTestRunner.h"
2
- #include "CppUTest/TestPlugin.h"
3
-
4
- int main(int ac, char** av)
5
- {
6
- return CommandLineTestRunner::RunAllTests(ac, av);
7
- }
8
-
@@ -1,10 +0,0 @@
1
- #ifndef FLUKAIO_COMMON_TEST_H__
2
- #define FLUKAIO_COMMON_TEST_H__
3
-
4
- #include <stdint.h>
5
-
6
- #include "CppUTest/TestHarness.h"
7
-
8
- #define DOUBLE_TOL 0E0
9
-
10
- #endif