/* * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef COMMUNICATIONNETSTACK_CONTEXT_KEY_H #define COMMUNICATIONNETSTACK_CONTEXT_KEY_H #define KEY_ADDRESS "address" #define KEY_FAMILY "family" #define KEY_PORT "port" #define KEY_TIMEOUT "timeout" #define KEY_ENCODING "encoding" #define KEY_DATA "data" #define KEY_RECEIVE_BUFFER_SIZE "receiveBufferSize" #define KEY_SEND_BUFFER_SIZE "sendBufferSize" #define KEY_REUSE_ADDRESS "reuseAddress" #define KEY_SOCKET_TIMEOUT "socketTimeout" #define KEY_BROADCAST "broadcast" #define KEY_IS_BOUND "isBound" #define KEY_IS_CLOSE "isClose" #define KEY_IS_CONNECTED "isConnected" #define KEY_SIZE "size" #define KEY_KEEP_ALIVE "keepAlive" #define KEY_OOB_INLINE "OOBInline" #define KEY_TCP_NO_DELAY "TCPNoDelay" #define KEY_SOCKET_LINGER "socketLinger" #define KEY_SOCKET_LINGER_ON "on" #define KEY_SOCKET_LINGER_LINGER "linger" #define KEY_ERROR_CODE "code" #define KEY_MESSAGE "message" #define KEY_REMOTE_INFO "remoteInfo" #define PARAM_NONE 0 #define PARAM_JUST_OPTIONS 1 #define PARAM_JUST_CALLBACK 1 #define PARAM_OPTIONS_AND_CALLBACK 2 #endif /* COMMUNICATIONNETSTACK_CONTEXT_KEY_H */