📄 ll-flows.h
字号:
/* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- *//* By Pablo Martin and Paula Ballester, * Strathclyde University, Glasgow. * June, 2003.*//* Copyright (c) 2003 Strathclyde University of Glasgow, Scotland. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code and binary code must contain * the above copyright notice, this list of conditions and the following * disclaimer. * * 2. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed at Strathclyde University of * Glasgow, Scotland. * * 3. The name of the University may not be used to endorse or promote * products derived from this software without specific prior written * permission. * STRATHCLYDE UNIVERSITY OF GLASGOW, MAKES NO REPRESENTATIONS * CONCERNING EITHER THE MERCHANTABILITY OF THIS SOFTWARE OR THE * SUITABILITY OF THIS SOFTWARE FOR ANY PARTICULAR PURPOSE. The software * is provided "as is" without express or implied warranty of any kind.*/#include <stdio.h>#include <string.h>#include <config.h>struct FList{ nsaddr_t destaddr_; nsaddr_t srcaddr_; int flowid_; int wait_; // 1: waiting for paging response FList* Next; FList() {Next=NULL;srcaddr_=-1;destaddr_=-1;flowid_=-1;wait_=-1;}};typedef FList* FListPtr;class FlowList{ public: FlowList(); ~FlowList(); FListPtr Previous(FListPtr);// void Advance();// void Rewind(); void AddANode(); void AddANode(nsaddr_t src, nsaddr_t dest, int flowid, int wait); void DeleteANode(FListPtr); void DeleteANode(nsaddr_t src, nsaddr_t dest, int flowid); FListPtr GetNode(nsaddr_t src, nsaddr_t dest, int flowid); FListPtr GetNode(nsaddr_t ipaddr); void wait(nsaddr_t src, nsaddr_t dest, int flowid, int wait); FListPtr Head,Tail,CurrentPtr;};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -