Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Achou.Wang
4Gsim
提交
2efb8bc3
4
4Gsim
项目概览
Achou.Wang
/
4Gsim
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
4
4Gsim
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
2efb8bc3
编写于
7月 02, 2012
作者:
C
calin cerchez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
diameterbase owner
上级
0e0ca2cb
变更
31
隐藏空白更改
内联
并排
Showing
31 changed file
with
77 addition
and
1 deletion
+77
-1
src/applications/diameter/DiameterBase.cc
src/applications/diameter/DiameterBase.cc
+2
-0
src/applications/diameter/DiameterBase.h
src/applications/diameter/DiameterBase.h
+3
-1
src/applications/diameter/DiameterBase.ned
src/applications/diameter/DiameterBase.ned
+2
-0
src/applications/diameter/DiameterClient.cc
src/applications/diameter/DiameterClient.cc
+2
-0
src/applications/diameter/DiameterClient.h
src/applications/diameter/DiameterClient.h
+2
-0
src/applications/diameter/DiameterClient.ned
src/applications/diameter/DiameterClient.ned
+2
-0
src/applications/diameter/DiameterNode.ned
src/applications/diameter/DiameterNode.ned
+2
-0
src/applications/diameter/DiameterServer.cc
src/applications/diameter/DiameterServer.cc
+2
-0
src/applications/diameter/DiameterServer.h
src/applications/diameter/DiameterServer.h
+2
-0
src/applications/diameter/DiameterServer.ned
src/applications/diameter/DiameterServer.ned
+2
-0
src/applications/diameter/connection/DiameterConnection.cc
src/applications/diameter/connection/DiameterConnection.cc
+4
-0
src/applications/diameter/connection/DiameterConnection.h
src/applications/diameter/connection/DiameterConnection.h
+2
-0
src/applications/diameter/connection/DiameterConnectionMap.cc
...applications/diameter/connection/DiameterConnectionMap.cc
+2
-0
src/applications/diameter/connection/DiameterConnectionMap.h
src/applications/diameter/connection/DiameterConnectionMap.h
+2
-0
src/applications/diameter/peer/DiameterApplication.cc
src/applications/diameter/peer/DiameterApplication.cc
+2
-0
src/applications/diameter/peer/DiameterApplication.h
src/applications/diameter/peer/DiameterApplication.h
+2
-0
src/applications/diameter/peer/DiameterPeer.cc
src/applications/diameter/peer/DiameterPeer.cc
+12
-0
src/applications/diameter/peer/DiameterPeer.h
src/applications/diameter/peer/DiameterPeer.h
+2
-0
src/applications/diameter/peer/DiameterPeerTable.cc
src/applications/diameter/peer/DiameterPeerTable.cc
+2
-0
src/applications/diameter/peer/DiameterPeerTable.h
src/applications/diameter/peer/DiameterPeerTable.h
+2
-0
src/applications/diameter/session/DiameterSession.cc
src/applications/diameter/session/DiameterSession.cc
+4
-0
src/applications/diameter/session/DiameterSession.h
src/applications/diameter/session/DiameterSession.h
+2
-0
src/applications/diameter/session/DiameterSessionTable.cc
src/applications/diameter/session/DiameterSessionTable.cc
+2
-0
src/applications/diameter/session/DiameterSessionTable.h
src/applications/diameter/session/DiameterSessionTable.h
+2
-0
src/applications/diameter/utils/DiameterMessage.cc
src/applications/diameter/utils/DiameterMessage.cc
+2
-0
src/applications/diameter/utils/DiameterMessage.h
src/applications/diameter/utils/DiameterMessage.h
+2
-0
src/applications/diameter/utils/DiameterMessage.msg
src/applications/diameter/utils/DiameterMessage.msg
+2
-0
src/applications/diameter/utils/DiameterSerializer.cc
src/applications/diameter/utils/DiameterSerializer.cc
+2
-0
src/applications/diameter/utils/DiameterSerializer.h
src/applications/diameter/utils/DiameterSerializer.h
+2
-0
src/applications/diameter/utils/DiameterUtils.cc
src/applications/diameter/utils/DiameterUtils.cc
+2
-0
src/applications/diameter/utils/DiameterUtils.h
src/applications/diameter/utils/DiameterUtils.h
+2
-0
未找到文件。
src/applications/diameter/DiameterBase.cc
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/DiameterBase.h
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
@@ -54,7 +56,7 @@ public:
void
initialize
(
int
stage
);
void
handleMessage
(
cMessage
*
msg
);
virtual
DiameterMessage
*
processMessage
(
DiameterMessage
*
msg
)
{}
virtual
DiameterMessage
*
processMessage
(
DiameterMessage
*
msg
)
{
return
NULL
;
}
int
getOutboundStreams
()
{
return
outboundStreams
;
}
SCTPSocket
getServerSocket
()
{
return
serverSocket
;
}
...
...
src/applications/diameter/DiameterBase.ned
浏览文件 @
2efb8bc3
//
//
Copyright
(
C
)
2012
Calin
Cerchez
//
//
This
program
is
free
software
:
you
can
redistribute
it
and
/
or
modify
//
it
under
the
terms
of
the
GNU
Lesser
General
Public
License
as
published
by
//
the
Free
Software
Foundation
,
either
version
3
of
the
License
,
or
...
...
src/applications/diameter/DiameterClient.cc
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/DiameterClient.h
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/DiameterClient.ned
浏览文件 @
2efb8bc3
//
//
Copyright
(
C
)
2012
Calin
Cerchez
//
//
This
program
is
free
software
:
you
can
redistribute
it
and
/
or
modify
//
it
under
the
terms
of
the
GNU
Lesser
General
Public
License
as
published
by
//
the
Free
Software
Foundation
,
either
version
3
of
the
License
,
or
...
...
src/applications/diameter/DiameterNode.ned
浏览文件 @
2efb8bc3
//
//
Copyright
(
C
)
2012
Calin
Cerchez
//
//
This
program
is
free
software
:
you
can
redistribute
it
and
/
or
modify
//
it
under
the
terms
of
the
GNU
Lesser
General
Public
License
as
published
by
//
the
Free
Software
Foundation
,
either
version
3
of
the
License
,
or
...
...
src/applications/diameter/DiameterServer.cc
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/DiameterServer.h
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/DiameterServer.ned
浏览文件 @
2efb8bc3
//
//
Copyright
(
C
)
2012
Calin
Cerchez
//
//
This
program
is
free
software
:
you
can
redistribute
it
and
/
or
modify
//
it
under
the
terms
of
the
GNU
Lesser
General
Public
License
as
published
by
//
the
Free
Software
Foundation
,
either
version
3
of
the
License
,
or
...
...
src/applications/diameter/connection/DiameterConnection.cc
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
@@ -98,6 +100,7 @@ void DiameterConnection::socketDataArrived(int32 connId, void *yourPtr, cPacket
default:
PeerEvent
event
=
R_RCV_MESSAGE
;
peer
->
performStateTransition
(
event
,
dmsg
);
break
;
}
}
else
{
switch
(
hdr
.
getCommandCode
())
{
...
...
@@ -119,6 +122,7 @@ void DiameterConnection::socketDataArrived(int32 connId, void *yourPtr, cPacket
default:
PeerEvent
event
=
I_RCV_MESSAGE
;
peer
->
performStateTransition
(
event
,
dmsg
);
break
;
}
}
}
...
...
src/applications/diameter/connection/DiameterConnection.h
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/connection/DiameterConnectionMap.cc
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/connection/DiameterConnectionMap.h
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/peer/DiameterApplication.cc
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/peer/DiameterApplication.h
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/peer/DiameterPeer.cc
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
@@ -126,6 +128,7 @@ void DiameterPeer::performStateTransition(PeerEvent &event, DiameterMessage *msg
EV
<<
"DiameterPeer: Received unexpected event
\n
"
;
if
(
msg
!=
NULL
)
delete
msg
;
break
;
}
break
;
case
WAIT_CONN_ACK
:
...
...
@@ -156,6 +159,7 @@ void DiameterPeer::performStateTransition(PeerEvent &event, DiameterMessage *msg
EV
<<
"DiameterBase: Received unexpected event
\n
"
;
if
(
msg
!=
NULL
)
delete
msg
;
break
;
}
break
;
case
WAIT_I_CEA
:
...
...
@@ -187,6 +191,7 @@ void DiameterPeer::performStateTransition(PeerEvent &event, DiameterMessage *msg
EV
<<
"DiameterPeer: Received unexpected event
\n
"
;
if
(
msg
!=
NULL
)
delete
msg
;
break
;
}
break
;
case
WAIT_CONN_ACK_ELECT
:
...
...
@@ -215,6 +220,7 @@ void DiameterPeer::performStateTransition(PeerEvent &event, DiameterMessage *msg
EV
<<
"DiameterPeer: Received unexpected event
\n
"
;
if
(
msg
!=
NULL
)
delete
msg
;
break
;
}
break
;
case
WAIT_RETURNS
:
...
...
@@ -248,6 +254,7 @@ void DiameterPeer::performStateTransition(PeerEvent &event, DiameterMessage *msg
EV
<<
"DiameterPeer: Received unexpected event
\n
"
;
if
(
msg
!=
NULL
)
delete
msg
;
break
;
}
break
;
case
R_OPEN
:
...
...
@@ -297,6 +304,7 @@ void DiameterPeer::performStateTransition(PeerEvent &event, DiameterMessage *msg
EV
<<
"DiameterPeer: Received unexpected event
\n
"
;
if
(
msg
!=
NULL
)
delete
msg
;
break
;
}
break
;
case
I_OPEN
:
...
...
@@ -345,6 +353,7 @@ void DiameterPeer::performStateTransition(PeerEvent &event, DiameterMessage *msg
EV
<<
"DiameterPeer: Received unexpected event
\n
"
;
if
(
msg
!=
NULL
)
delete
msg
;
break
;
}
break
;
case
CLOSING
:
...
...
@@ -373,12 +382,14 @@ void DiameterPeer::performStateTransition(PeerEvent &event, DiameterMessage *msg
EV
<<
"DiameterPeer: Received unexpected event
\n
"
;
if
(
msg
!=
NULL
)
delete
msg
;
break
;
}
break
;
default:
EV
<<
"DiameterPeer: Unknown state
\n
"
;
if
(
msg
!=
NULL
)
delete
msg
;
break
;
}
if
(
oldState
!=
fsm
.
getState
())
...
...
@@ -443,6 +454,7 @@ void DiameterPeer::stateEntered() {
startTimer
(
twTimer
,
"TW-TIMER"
,
TW_TIMER_TIMEOUT
+
uniform
(
-
2
,
2
));
break
;
default:
;
break
;
}
}
...
...
src/applications/diameter/peer/DiameterPeer.h
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/peer/DiameterPeerTable.cc
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/peer/DiameterPeerTable.h
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/session/DiameterSession.cc
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
@@ -61,12 +63,14 @@ void DiameterSession::performStateTransition(SessionEvent &event, unsigned applI
EV
<<
"DiameterSession: Received unexpected event
\n
"
;
if
(
msg
!=
NULL
)
delete
msg
;
break
;
}
break
;
default:
EV
<<
"DiameterSession: Unknown state
\n
"
;
if
(
msg
!=
NULL
)
delete
msg
;
break
;
}
if
(
oldState
!=
fsm
->
getState
())
...
...
src/applications/diameter/session/DiameterSession.h
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/session/DiameterSessionTable.cc
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/session/DiameterSessionTable.h
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/utils/DiameterMessage.cc
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/utils/DiameterMessage.h
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/utils/DiameterMessage.msg
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/utils/DiameterSerializer.cc
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/utils/DiameterSerializer.h
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/utils/DiameterUtils.cc
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
src/applications/diameter/utils/DiameterUtils.h
浏览文件 @
2efb8bc3
//
// Copyright (C) 2012 Calin Cerchez
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录