summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/libwellenreiter/docs/quickintro15
1 files changed, 12 insertions, 3 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/docs/quickintro b/noncore/net/wellenreiter/libwellenreiter/docs/quickintro
index a027a4e..97458b7 100644
--- a/noncore/net/wellenreiter/libwellenreiter/docs/quickintro
+++ b/noncore/net/wellenreiter/libwellenreiter/docs/quickintro
@@ -61,15 +61,24 @@ Setup udp socket for incoming commands:
61int commsock(const char *, int); 61int commsock(const char *, int);
62 62
63Fist argument is the host where it should listen and second 63Fist argument is the host where it should listen and second
64is the port. 64is the port. Socket is returned, on failure -1 is returned.
65 65
66Return values: 66
67Recvfrom socket:
68int recv_commsock(int *, char *, int);
69
70First argument is the address of the socket, second is a buffer
71that should be filled in and the third is the maxlength of the
72buffer. On error, -1 is returned, on success the number of
73packet type is returned. (return value should be used with switch
74command, for types see proto.hh)
67 75
68Send command to udp socket: 76Send command to udp socket:
69int sendcomm(const char *, int, const char *, ...); 77int sendcomm(const char *, int, const char *, ...);
70 78
71First two arguments are the host and port where the command should 79First two arguments are the host and port where the command should
72be send to, followed by buffer that should be send. 80be send to, followed by buffer that should be send. On error, -1
81is returned.
73 82
74 83
75--- 84---