blob: c4393018c3360aa98d4b2b27bf34ea45c5db00bb [file] [log] [blame]
Thomas Vachuska24c849c2014-10-27 09:53:05 -07001/*
Ray Milkey34c95902015-04-15 09:47:53 -07002 * Copyright 2014-2015 Open Networking Laboratory
Thomas Vachuska24c849c2014-10-27 09:53:05 -07003 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07004 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
Thomas Vachuska24c849c2014-10-27 09:53:05 -07007 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07008 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
Thomas Vachuska24c849c2014-10-27 09:53:05 -070015 */
Madan Jampani62744c22014-10-04 20:51:10 -070016package org.onlab.netty;
17
18/**
19 * State transitions a decoder goes through as it is decoding an incoming message.
20 */
21public enum DecoderState {
Aaron Kruglikoveb0ae4e2015-11-10 19:16:16 -080022 READ_MESSAGE_PREAMBLE,
Madan Jampani2e5f87b2015-02-22 10:37:15 -080023 READ_MESSAGE_ID,
24 READ_SENDER_IP_VERSION,
25 READ_SENDER_IP,
26 READ_SENDER_PORT,
Madan Jampani49115e92015-03-14 10:43:33 -070027 READ_MESSAGE_TYPE_LENGTH,
Madan Jampani2e5f87b2015-02-22 10:37:15 -080028 READ_MESSAGE_TYPE,
Madan Jampani62744c22014-10-04 20:51:10 -070029 READ_CONTENT_LENGTH,
Madan Jampani62744c22014-10-04 20:51:10 -070030 READ_CONTENT
31}