Create datagram.inc
Browse files- datagram.inc +18 -0
datagram.inc
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Datagram sending/receiving
|
| 2 |
+
*
|
| 3 |
+
* (c) Copyright 2005, ITB CompuPhase
|
| 4 |
+
* This file is provided as is (no warranties).
|
| 5 |
+
*/
|
| 6 |
+
#if defined _datagram_included
|
| 7 |
+
#endinput
|
| 8 |
+
#endif
|
| 9 |
+
#define _datagram_included
|
| 10 |
+
#pragma library DGram
|
| 11 |
+
|
| 12 |
+
native sendstring(const message[], const destination[]="");
|
| 13 |
+
native sendpacket(const packet[], size, const destination[]="");
|
| 14 |
+
|
| 15 |
+
native listenport(port);
|
| 16 |
+
|
| 17 |
+
forward @receivestring(const message[], const source[]);
|
| 18 |
+
forward @receivepacket(const packet[], size, const source[]);
|