github.com/lirm/aeron-go@v0.0.0-20230415210743-920325491dc4/aeron/command/control.go (about) 1 /* 2 Copyright 2016 Stanislav Liberman 3 Copyright (C) 2022 Talos, Inc. 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 */ 17 18 package command 19 20 const ( 21 // Clients to Media Driver 22 23 // AddPublication command from client 24 AddPublication int32 = 0x01 25 // RemovePublication command from client 26 RemovePublication int32 = 0x02 27 // AddExclusivePublication from client 28 AddExclusivePublication int32 = 0x03 29 // AddSubscription command from client 30 AddSubscription int32 = 0x04 31 // RemoveSubscription command from client 32 RemoveSubscription int32 = 0x05 33 // ClientKeepalive message from client */ 34 ClientKeepalive int32 = 0x06 35 // AddDestination adds a destination to an existing Publication. 36 AddDestination = 0x07 37 // RemoveDestination removes a destination from an existing Publication. 38 RemoveDestination = 0x08 39 // AddCounter command from client 40 AddCounter = 0x09 41 // RemoveCounter command from client 42 RemoveCounter = 0x0A 43 // ClientClose command from client 44 ClientClose = 0x0B 45 // AddRcvDestination adds a Destination for existing Subscription. 46 AddRcvDestination = 0x0c 47 // RemoveRcvDestination removes a Destination for existing Subscription. 48 RemoveRcvDestination = 0x0D 49 ) 50 51 const ( 52 ErrorCodeUnknownCodeValue = -1 53 ErrorCodeUnused = 0 54 ErrorCodeInvalidChannel = 1 55 ErrorCodeUnknownSubscription = 2 56 ErrorCodeUnknownPublication = 3 57 ErrorCodeChannelEndpointError = 4 58 ErrorCodeUnknownCounter = 5 59 ErrorCodeUnknownCommandTypeID = 6 60 ErrorCodeMalformedCommand = 7 61 ErrorCodeNotSupported = 8 62 ErrorCodeUnknownHost = 9 63 ErrorCodeResourceTemporarilyUnavailable = 10 64 ErrorCodeGenericError = 11 65 )