1 /** @file 2 3 A brief file description 4 5 @section license License 6 7 Licensed to the Apache Software Foundation (ASF) under one 8 or more contributor license agreements. See the NOTICE file 9 distributed with this work for additional information 10 regarding copyright ownership. The ASF licenses this file 11 to you under the Apache License, Version 2.0 (the 12 "License"); you may not use this file except in compliance 13 with the License. You may obtain a copy of the License at 14 15 http://www.apache.org/licenses/LICENSE-2.0 16 17 Unless required by applicable law or agreed to in writing, software 18 distributed under the License is distributed on an "AS IS" BASIS, 19 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 20 See the License for the specific language governing permissions and 21 limitations under the License. 22 */ 23 24 #pragma once 25 26 #include <stdio.h> 27 #include <stdlib.h> 28 #include <limits.h> 29 #include <string.h> 30 #include <assert.h> 31 #include <time.h> 32 #include <sys/time.h> 33 #include <sys/types.h> 34 35 #include <ts/ts.h> 36 37 #define PLUGIN_NAME "protocol" 38 39 #define MAX_SERVER_NAME_LENGTH 1024 40 #define MAX_FILE_NAME_LENGTH 1024 41 42 /* MAX_SERVER_NAME_LENGTH + MAX_FILE_NAME_LENGTH + strlen("\n\n") */ 43 #define MAX_REQUEST_LENGTH 2050 44 45 #define set_handler(_d, _s) \ 46 { \ 47 _d = _s; \ 48 } 49