From 9df1b408c1b2432728ecc3d114854535f168b47a Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Sun, 7 Nov 2010 10:05:56 +0100 Subject: 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. --- source4/echo_server/echo_server.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 source4/echo_server/echo_server.h (limited to 'source4/echo_server/echo_server.h') 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 + + 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 . +*/ + +#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__*/ -- cgit