1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source4/echo_server/echo_server.h
Kai Blin 9df1b408c1 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.
2010-12-09 23:01:57 +01:00

34 lines
967 B
C

/*
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__*/