summaryrefslogtreecommitdiff
path: root/source4/echo_server/echo_server.h
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-11-07 10:05:56 +0100
committerKai Blin <kai@samba.org>2010-12-09 23:01:57 +0100
commit9df1b408c1b2432728ecc3d114854535f168b47a (patch)
treeb94ecd9fcce36af955ee5ca75d95a3148fad9345 /source4/echo_server/echo_server.h
parent5fcbb1676009de9e384a8f76e0c4ab1b43ce3746 (diff)
downloadsamba-9df1b408c1b2432728ecc3d114854535f168b47a.tar.gz
samba-9df1b408c1b2432728ecc3d114854535f168b47a.tar.bz2
samba-9df1b408c1b2432728ecc3d114854535f168b47a.zip
s4: Implement UDP echo server example
This is a simple UDP-based echo server. It is mainly intended as an example on how to do server service tasks in s4.
Diffstat (limited to 'source4/echo_server/echo_server.h')
-rw-r--r--source4/echo_server/echo_server.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/source4/echo_server/echo_server.h b/source4/echo_server/echo_server.h
new file mode 100644
index 0000000000..3c3e1ae934
--- /dev/null
+++ b/source4/echo_server/echo_server.h
@@ -0,0 +1,33 @@
+/*
+ Unix SMB/CIFS implementation.
+
+ Echo structures, server service example
+
+ Copyright (C) 2010 Kai Blin <kai@samba.org>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef __ECHO_SERVER_H__
+#define __ECHO_SERVER_H__
+
+struct task_server;
+
+struct echo_server {
+ struct task_server *task;
+};
+
+#define ECHO_SERVICE_PORT 7
+
+#endif /*__ECHO_SERVER_H__*/