xcoll 0.6.1__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.
- xcoll/general.py +1 -1
- {xcoll-0.6.1.dist-info → xcoll-0.6.2.dist-info}/METADATA +5 -4
- xcoll-0.6.2.dist-info/RECORD +61 -0
- {xcoll-0.6.1.dist-info → xcoll-0.6.2.dist-info}/WHEEL +1 -1
- xcoll/__init__.py.orig +0 -26
- xcoll/general.py.orig +0 -20
- xcoll/initial_distribution.py.orig +0 -256
- xcoll/scattering_routines/fluka/flukaio/.git +0 -1
- xcoll/scattering_routines/fluka/flukaio/.gitignore +0 -2
- xcoll/scattering_routines/fluka/flukaio/CMakeLists.txt +0 -18
- xcoll/scattering_routines/fluka/flukaio/ComponentMakefile +0 -192
- xcoll/scattering_routines/fluka/flukaio/Makefile +0 -144
- xcoll/scattering_routines/fluka/flukaio/README +0 -26
- xcoll/scattering_routines/fluka/flukaio/doc/Doxyfile +0 -1551
- xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO.asciidoc +0 -1054
- xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO.epub +0 -0
- xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO.html +0 -1607
- xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO.pdf +0 -0
- xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO__1.png +0 -0
- xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO__2.png +0 -0
- xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO__3.png +0 -0
- xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO__4.png +0 -0
- xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO__5.png +0 -0
- xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO__6.png +0 -0
- xcoll/scattering_routines/fluka/flukaio/doc/FlukaIO__7.png +0 -0
- xcoll/scattering_routines/fluka/flukaio/doc/Makefile +0 -8
- xcoll/scattering_routines/fluka/flukaio/doc/docbook.xsl +0 -1690
- xcoll/scattering_routines/fluka/flukaio/include/Connection.h +0 -79
- xcoll/scattering_routines/fluka/flukaio/include/FlukaIO.h +0 -58
- xcoll/scattering_routines/fluka/flukaio/include/FlukaIOServer.h +0 -33
- xcoll/scattering_routines/fluka/flukaio/include/FortranFlukaIO.h +0 -277
- xcoll/scattering_routines/fluka/flukaio/include/Message.h +0 -89
- xcoll/scattering_routines/fluka/flukaio/include/ParticleInfo.h +0 -76
- xcoll/scattering_routines/fluka/flukaio/lib/libFlukaIO64.a +0 -0
- xcoll/scattering_routines/fluka/flukaio/lib/libFlukaIO64.so +0 -0
- xcoll/scattering_routines/fluka/flukaio/samples/ClientTest.c +0 -156
- xcoll/scattering_routines/fluka/flukaio/samples/ServerTest.c +0 -123
- xcoll/scattering_routines/fluka/flukaio/samples/fclient.f +0 -149
- xcoll/scattering_routines/fluka/flukaio/samples/fserver.f +0 -118
- xcoll/scattering_routines/fluka/flukaio/src/Connection.c +0 -264
- xcoll/scattering_routines/fluka/flukaio/src/Connection.d +0 -69
- xcoll/scattering_routines/fluka/flukaio/src/Connection.o +0 -0
- xcoll/scattering_routines/fluka/flukaio/src/FlukaIO.c +0 -211
- xcoll/scattering_routines/fluka/flukaio/src/FlukaIO.d +0 -46
- xcoll/scattering_routines/fluka/flukaio/src/FlukaIO.o +0 -0
- xcoll/scattering_routines/fluka/flukaio/src/FlukaIOHandshake.c +0 -45
- xcoll/scattering_routines/fluka/flukaio/src/FlukaIOHandshake.d +0 -29
- xcoll/scattering_routines/fluka/flukaio/src/FlukaIOHandshake.h +0 -17
- xcoll/scattering_routines/fluka/flukaio/src/FlukaIOHandshake.o +0 -0
- xcoll/scattering_routines/fluka/flukaio/src/FlukaIOServer.c +0 -84
- xcoll/scattering_routines/fluka/flukaio/src/FlukaIOServer.d +0 -70
- xcoll/scattering_routines/fluka/flukaio/src/FlukaIOServer.o +0 -0
- xcoll/scattering_routines/fluka/flukaio/src/FlukaIOServer_private.h +0 -22
- xcoll/scattering_routines/fluka/flukaio/src/FlukaIO_private.h +0 -16
- xcoll/scattering_routines/fluka/flukaio/src/FortranFlukaIO.c +0 -533
- xcoll/scattering_routines/fluka/flukaio/src/FortranFlukaIO.d +0 -40
- xcoll/scattering_routines/fluka/flukaio/src/FortranFlukaIO.o +0 -0
- xcoll/scattering_routines/fluka/flukaio/src/NetIO.c +0 -304
- xcoll/scattering_routines/fluka/flukaio/src/NetIO.d +0 -66
- xcoll/scattering_routines/fluka/flukaio/src/NetIO.h +0 -30
- xcoll/scattering_routines/fluka/flukaio/src/NetIO.o +0 -0
- xcoll/scattering_routines/fluka/flukaio/src/tags +0 -167
- xcoll/scattering_routines/fluka/flukaio/tests/AllTests.cpp +0 -8
- xcoll/scattering_routines/fluka/flukaio/tests/CommonTest.h +0 -10
- xcoll/scattering_routines/fluka/flukaio/tests/ConnectionTest.cpp +0 -99
- xcoll/scattering_routines/fluka/flukaio/tests/FlukaIOServerTest.cpp +0 -104
- xcoll/scattering_routines/fluka/flukaio/tests/FlukaIOTest.cpp +0 -439
- xcoll/scattering_routines/fluka/flukaio/tests/FortranFlukaIOTest.cpp +0 -682
- xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeConnection.c +0 -19
- xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeConnection.h +0 -16
- xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeFlukaIO.c +0 -74
- xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeFlukaIO.h +0 -50
- xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeFlukaIOHandshake.c +0 -16
- xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeFlukaIOHandshake.h +0 -20
- xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeFlukaIOServer.c +0 -12
- xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeFlukaIOServer.h +0 -18
- xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeFortranFlukaIO.h +0 -19
- xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeNetIO.c +0 -80
- xcoll/scattering_routines/fluka/flukaio/tests/fakes/FakeNetIO.h +0 -35
- xcoll-0.6.1.dist-info/LICENSE +0 -201
- xcoll-0.6.1.dist-info/NOTICE +0 -2
- xcoll-0.6.1.dist-info/RECORD +0 -138
- /LICENSE → /xcoll-0.6.2.dist-info/LICENSE +0 -0
- /NOTICE → /xcoll-0.6.2.dist-info/NOTICE +0 -0
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
#include "FakeFlukaIO.h"
|
|
2
|
-
|
|
3
|
-
ssize_t fakeflukaio_insert_message(
|
|
4
|
-
flukaio_connection_t *conn,
|
|
5
|
-
const unsigned char type,
|
|
6
|
-
const void *data, const size_t datalen)
|
|
7
|
-
{
|
|
8
|
-
ssize_t size;
|
|
9
|
-
size = connection_write_message_bin(type, data, datalen,
|
|
10
|
-
conn->in_buffer + conn->in_buffer_end,
|
|
11
|
-
conn->in_buffer_size - conn->in_buffer_end);
|
|
12
|
-
|
|
13
|
-
if (size > 0) {
|
|
14
|
-
conn->in_buffer_end += size;
|
|
15
|
-
conn->in_buffer_len += size;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return size;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
ssize_t fakeflukaio_insert_eob_message(flukaio_connection_t *conn) {
|
|
22
|
-
return fakeflukaio_insert_message(conn, N_EOB, NULL, 0);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
ssize_t fakeflukaio_insert_ipt_message(flukaio_connection_t *conn, const uint32_t turn, const uint16_t ipt) {
|
|
26
|
-
flukaio_ipt_data_t data;
|
|
27
|
-
data.turn = turn;
|
|
28
|
-
data.ipt = ipt;
|
|
29
|
-
return fakeflukaio_insert_message(conn, N_IPT, &data, sizeof(data));
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
ssize_t fakeflukaio_insert_particle_message(flukaio_connection_t *conn, const particle_info_t *part) {
|
|
33
|
-
return fakeflukaio_insert_message(conn, N_PART, part, sizeof(particle_info_t));
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
ssize_t fakeflukaio_insert_eoc_message(flukaio_connection_t *conn) {
|
|
37
|
-
return fakeflukaio_insert_message(conn, N_END, NULL, 0);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
ssize_t fakeflukaio_insert_config_message(flukaio_connection_t *conn) {
|
|
41
|
-
return fakeflukaio_insert_message(conn, N_CONF, NULL, 0);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
ssize_t fakeflukaio_insert_unknown_message(flukaio_connection_t *conn) {
|
|
45
|
-
return fakeflukaio_insert_message(conn, N_OTHER, NULL, 0);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
ssize_t fakeflukaio_insert_hsk_message(flukaio_connection_t *conn,
|
|
49
|
-
const uint16_t major, const uint16_t minor, const uint32_t key)
|
|
50
|
-
{
|
|
51
|
-
flukaio_hsk_data_t data;
|
|
52
|
-
data.minor = minor;
|
|
53
|
-
data.major = major;
|
|
54
|
-
data.key = key;
|
|
55
|
-
return fakeflukaio_insert_message(conn, N_HSK, &data, sizeof(data));
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
ssize_t fakeflukaio_get_last_sent_message(flukaio_connection_t *conn, flukaio_message_t *msg)
|
|
59
|
-
{
|
|
60
|
-
ssize_t len = connection_read_message_from(msg, conn->out_buffer, conn->out_buffer_len);
|
|
61
|
-
|
|
62
|
-
if (len > 0)
|
|
63
|
-
{
|
|
64
|
-
conn->out_buffer_len -= len;
|
|
65
|
-
memmove(conn->out_buffer, conn->out_buffer + len, conn->out_buffer_len);
|
|
66
|
-
}
|
|
67
|
-
return len;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
void fakeflukaio_clean_buffers(flukaio_connection_t *conn)
|
|
71
|
-
{
|
|
72
|
-
conn->in_buffer_len = 0;
|
|
73
|
-
conn->out_buffer_len = 0;
|
|
74
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
#ifndef FLUKAIO_FAKEFLUKAIO_H__
|
|
2
|
-
#define FLUKAIO_FAKEFLUKAIO_H__
|
|
3
|
-
|
|
4
|
-
#include <assert.h>
|
|
5
|
-
#include <stdio.h>
|
|
6
|
-
#include <string.h>
|
|
7
|
-
#include <stddef.h>
|
|
8
|
-
|
|
9
|
-
#include "FlukaIO.h"
|
|
10
|
-
#include "Connection.h"
|
|
11
|
-
|
|
12
|
-
#ifdef __cplusplus
|
|
13
|
-
extern "C" {
|
|
14
|
-
#endif
|
|
15
|
-
|
|
16
|
-
int flukaio_send_message(flukaio_connection_t *conn, const flukaio_message_t *msg);
|
|
17
|
-
|
|
18
|
-
ssize_t fakeflukaio_insert_message(
|
|
19
|
-
flukaio_connection_t *conn,
|
|
20
|
-
const unsigned char type,
|
|
21
|
-
const void *data, const size_t datalen);
|
|
22
|
-
ssize_t fakeflukaio_insert_eob_message(flukaio_connection_t *conn);
|
|
23
|
-
ssize_t fakeflukaio_insert_ipt_message(flukaio_connection_t *conn,
|
|
24
|
-
const uint32_t turn, const uint16_t ipt);
|
|
25
|
-
ssize_t fakeflukaio_insert_particle_message(flukaio_connection_t *conn,
|
|
26
|
-
const particle_info_t *part);
|
|
27
|
-
ssize_t fakeflukaio_insert_eoc_message(flukaio_connection_t *conn);
|
|
28
|
-
ssize_t fakeflukaio_insert_config_message(flukaio_connection_t *conn);
|
|
29
|
-
ssize_t fakeflukaio_insert_unknown_message(flukaio_connection_t *conn);
|
|
30
|
-
ssize_t fakeflukaio_insert_hsk_message(flukaio_connection_t *conn,
|
|
31
|
-
const uint16_t major, const uint16_t minor, const uint32_t key);
|
|
32
|
-
|
|
33
|
-
ssize_t fakeflukaio_get_last_sent_message(flukaio_connection_t *conn, flukaio_message_t *msg);
|
|
34
|
-
|
|
35
|
-
void fakeflukaio_clean_buffers(flukaio_connection_t *conn);
|
|
36
|
-
|
|
37
|
-
// Defined as private in FlukaIO_private.h
|
|
38
|
-
ssize_t connection_read_message_from(flukaio_message_t *msg, const void *buffer, size_t buffer_len);
|
|
39
|
-
ssize_t connection_write_message_bin(
|
|
40
|
-
const flukaio_message_type_t type,
|
|
41
|
-
const void *data, const size_t datalen,
|
|
42
|
-
void *buf, const size_t buflen);
|
|
43
|
-
|
|
44
|
-
ssize_t flukaio_flush(flukaio_connection_t *conn);
|
|
45
|
-
|
|
46
|
-
#ifdef __cplusplus
|
|
47
|
-
}
|
|
48
|
-
#endif
|
|
49
|
-
|
|
50
|
-
#endif
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#include "FakeFlukaIOHandshake.h"
|
|
2
|
-
|
|
3
|
-
int (*flukaio_handshake_client)(flukaio_connection_t * conn) = &fakeflukaio_handshake_client;
|
|
4
|
-
int (*flukaio_handshake_server)(flukaio_connection_t * conn) = &fakeflukaio_handshake_server;
|
|
5
|
-
int fakeflukaio_handshake_client_called = 0;
|
|
6
|
-
int fakeflukaio_handshake_server_called = 0;
|
|
7
|
-
|
|
8
|
-
int fakeflukaio_handshake_client(flukaio_connection_t * conn) {
|
|
9
|
-
fakeflukaio_handshake_client_called++;
|
|
10
|
-
return 1;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
int fakeflukaio_handshake_server(flukaio_connection_t * conn) {
|
|
14
|
-
fakeflukaio_handshake_server_called++;
|
|
15
|
-
return 1;
|
|
16
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#ifndef FLUKAIO_FAKEHANDSHAKE_H__
|
|
2
|
-
#define FLUKAIO_FAKEHANDSHAKE_H__
|
|
3
|
-
|
|
4
|
-
#include "FakeFlukaIO.h"
|
|
5
|
-
|
|
6
|
-
#ifdef __cplusplus
|
|
7
|
-
extern "C" {
|
|
8
|
-
#endif
|
|
9
|
-
|
|
10
|
-
extern int fakeflukaio_handshake_client_called;
|
|
11
|
-
extern int fakeflukaio_handshake_server_called;
|
|
12
|
-
|
|
13
|
-
int fakeflukaio_handshake_client(flukaio_connection_t * conn);
|
|
14
|
-
int fakeflukaio_handshake_server(flukaio_connection_t * conn);
|
|
15
|
-
|
|
16
|
-
#ifdef __cplusplus
|
|
17
|
-
}
|
|
18
|
-
#endif
|
|
19
|
-
|
|
20
|
-
#endif
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
#include "FakeFlukaIOServer.h"
|
|
2
|
-
|
|
3
|
-
flukaio_server_t* fakeflukaio_server_create() {
|
|
4
|
-
flukaio_server_t *server = flukaio_server_create();
|
|
5
|
-
if (server) {
|
|
6
|
-
server->start = &fakenetio_server_start;
|
|
7
|
-
server->accept = &fakenetio_server_accept;
|
|
8
|
-
server->shutdown = &fakenetio_server_shutdown;
|
|
9
|
-
server->connection_create = &fakeconnection_create;
|
|
10
|
-
}
|
|
11
|
-
return server;
|
|
12
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#ifndef FLUKAIO_FAKEFLUKAIOSERVER_H__
|
|
2
|
-
#define FLUKAIO_FAKEFLUKAIOSERVER_H__
|
|
3
|
-
|
|
4
|
-
#include "FlukaIOServer.h"
|
|
5
|
-
#include "FakeNetIO.h"
|
|
6
|
-
#include "FakeConnection.h"
|
|
7
|
-
|
|
8
|
-
#ifdef __cplusplus
|
|
9
|
-
extern "C" {
|
|
10
|
-
#endif
|
|
11
|
-
|
|
12
|
-
flukaio_server_t* fakeflukaio_server_create();
|
|
13
|
-
|
|
14
|
-
#ifdef __cplusplus
|
|
15
|
-
}
|
|
16
|
-
#endif
|
|
17
|
-
|
|
18
|
-
#endif
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#ifndef FLUKAIO_FAKEFORTRANFLUKAIO_H__
|
|
2
|
-
#define FLUKAIO_FAKEFORTRANFLUKAIO_H__
|
|
3
|
-
|
|
4
|
-
#include "Connection.h"
|
|
5
|
-
#include "FlukaIOServer.h"
|
|
6
|
-
#include "FortranFlukaIO.h"
|
|
7
|
-
|
|
8
|
-
#ifdef __cplusplus
|
|
9
|
-
extern "C" {
|
|
10
|
-
#endif
|
|
11
|
-
|
|
12
|
-
int store_connection(flukaio_connection_t *conn);
|
|
13
|
-
int store_server(flukaio_server_t *server);
|
|
14
|
-
|
|
15
|
-
#ifdef __cplusplus
|
|
16
|
-
}
|
|
17
|
-
#endif
|
|
18
|
-
|
|
19
|
-
#endif
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
#include "FakeNetIO.h"
|
|
2
|
-
|
|
3
|
-
/* FakeNetIO */
|
|
4
|
-
#define DEFAULT_RAND_PORT 44
|
|
5
|
-
static ssize_t fakenetio_read_retval = 0;
|
|
6
|
-
static ssize_t fakenetio_last_sent_size = 0;
|
|
7
|
-
static ssize_t fakenetio_next_port = DEFAULT_RAND_PORT;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/* Function substitutes */
|
|
11
|
-
int fakenetio_server_start(int *port, int *sockfd) {
|
|
12
|
-
if (*port == 0)
|
|
13
|
-
*port = fakenetio_next_port;
|
|
14
|
-
|
|
15
|
-
*sockfd = 101;
|
|
16
|
-
|
|
17
|
-
fakenetio_next_port = DEFAULT_RAND_PORT;
|
|
18
|
-
|
|
19
|
-
return *port;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
int fakenetio_server_accept(int server_sockfd)
|
|
23
|
-
{
|
|
24
|
-
return 102;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
int fakenetio_server_shutdown(int server_sockfd)
|
|
28
|
-
{
|
|
29
|
-
return 0;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
int fakenetio_connect(const char *host, int portnum)
|
|
33
|
-
{
|
|
34
|
-
return 103;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
ssize_t fakenetio_write(int fd, const void *buf, size_t n)
|
|
38
|
-
{
|
|
39
|
-
fakenetio_last_sent_size = n;
|
|
40
|
-
return 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
ssize_t fakenetio_read(int fd, void *buf, size_t n) {
|
|
44
|
-
return fakenetio_read_retval;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
int fakenetio_can_write(int fd, long timeout_sec, long timeout_usec)
|
|
48
|
-
{
|
|
49
|
-
return 1;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
int fakenetio_can_read(int fd, long timeout_sec, long timeout_usec)
|
|
53
|
-
{
|
|
54
|
-
return 1;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
int fakenetio_set_nonblocking(int fd) {
|
|
58
|
-
return 0;
|
|
59
|
-
}
|
|
60
|
-
int fakenetio_set_nodelay(int fd) {
|
|
61
|
-
return 0;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
/* Information retreival */
|
|
66
|
-
ssize_t fakenetio_get_last_sent_size() {
|
|
67
|
-
ssize_t n = fakenetio_last_sent_size;
|
|
68
|
-
fakenetio_last_sent_size = 0;
|
|
69
|
-
return n;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
void fakenetio_set_read_retval(ssize_t n)
|
|
73
|
-
{
|
|
74
|
-
fakenetio_read_retval = n;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
void fakenetio_set_next_port(int port)
|
|
78
|
-
{
|
|
79
|
-
fakenetio_next_port = port;
|
|
80
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
#ifndef FLUKAIO_FAKENETIO_H__
|
|
2
|
-
#define FLUKAIO_FAKENETIO_H__
|
|
3
|
-
|
|
4
|
-
#include <stdlib.h>
|
|
5
|
-
|
|
6
|
-
#ifdef __cplusplus
|
|
7
|
-
extern "C" {
|
|
8
|
-
#endif
|
|
9
|
-
|
|
10
|
-
/* Function substitutes */
|
|
11
|
-
int fakenetio_server_start(int *port, int *sockfd);
|
|
12
|
-
int fakenetio_server_accept(int server_sockfd);
|
|
13
|
-
int fakenetio_server_shutdown(int server_sockfd);
|
|
14
|
-
|
|
15
|
-
int fakenetio_connect(const char *host, int portnum);
|
|
16
|
-
|
|
17
|
-
ssize_t fakenetio_read(int fd, void *buf, size_t n);
|
|
18
|
-
ssize_t fakenetio_write(int fd, const void *buf, size_t len);
|
|
19
|
-
|
|
20
|
-
int fakenetio_can_write(int fd, long timeout_sec, long timeout_usec);
|
|
21
|
-
int fakenetio_can_read(int fd, long timeout_sec, long timeout_usec);
|
|
22
|
-
|
|
23
|
-
int fakenetio_set_nonblocking(int fd);
|
|
24
|
-
int fakenetio_set_nodelay(int fd);
|
|
25
|
-
|
|
26
|
-
/* Information retreival */
|
|
27
|
-
ssize_t fakenetio_get_last_sent_size();
|
|
28
|
-
void fakenetio_set_read_retval(ssize_t n);
|
|
29
|
-
void fakenetio_set_next_port(int port);
|
|
30
|
-
|
|
31
|
-
#ifdef __cplusplus
|
|
32
|
-
}
|
|
33
|
-
#endif
|
|
34
|
-
|
|
35
|
-
#endif
|
xcoll-0.6.1.dist-info/LICENSE
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright [yyyy] [name of copyright owner]
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
xcoll-0.6.1.dist-info/NOTICE
DELETED