blob: c9fc725b8246de2f9ec02c5f6180650d2798cd6b [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 {
Madan Jampani2e5f87b2015-02-22 10:37:15 -080022 READ_MESSAGE_ID,
23 READ_SENDER_IP_VERSION,
24 READ_SENDER_IP,
25 READ_SENDER_PORT,
Madan Jampani49115e92015-03-14 10:43:33 -070026 READ_MESSAGE_TYPE_LENGTH,
Madan Jampani2e5f87b2015-02-22 10:37:15 -080027 READ_MESSAGE_TYPE,
Madan Jampani62744c22014-10-04 20:51:10 -070028 READ_CONTENT_LENGTH,
Madan Jampani62744c22014-10-04 20:51:10 -070029 READ_CONTENT
30}