⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 httpd.mdl

📁 这是一个简单的用C语言写的http服务器源代码
💻 MDL
📖 第 1 页 / 共 5 页
字号:

(object Petal
    version    	44
    _written   	"Rose 7.0.9420.17"
    charSet    	134)

(object Design "Logical View"
    is_unit    	TRUE
    is_loaded  	TRUE
    quid       	"3F6167280251"
    defaults   	(object defaults
	rightMargin 	0.250000
	leftMargin 	0.250000
	topMargin  	0.250000
	bottomMargin 	0.500000
	pageOverlap 	0.250000
	clipIconLabels 	TRUE
	autoResize 	TRUE
	snapToGrid 	TRUE
	gridX      	16
	gridY      	16
	defaultFont 	(object Font
	    size       	10
	    face       	"宋体"
	    charSet    	134
	    bold       	FALSE
	    italics    	FALSE
	    underline  	FALSE
	    strike     	FALSE
	    color      	0
	    default_color 	TRUE)
	showMessageNum 	1
	showClassOfObject 	TRUE
	notation   	"Unified")
    root_usecase_package 	(object Class_Category "Use Case View"
	quid       	"3F423765028C"
	exportControl 	"Public"
	global     	TRUE
	logical_models 	(list unit_reference_list
	    (object Class "客户"
		quid       	"3F4238D302A8"
		stereotype 	"Actor"
		visible_modules 	(list dependency_list
		    (object Dependency_Relationship
			quid       	"3F4389B903E7"
			supplier   	"Use Case View::获取服务器当前目录文件列表"
			quidu      	"3F4238F1000A")
		    (object Dependency_Relationship
			quid       	"3F4389BB02BE"
			supplier   	"Use Case View::获取指定文件"
			quidu      	"3F4238F4019A")
		    (object Dependency_Relationship
			quid       	"3F4389BD01E3"
			supplier   	"Use Case View::获取HTML类型文件"
			quidu      	"3F4387BB0270")
		    (object Dependency_Relationship
			quid       	"3F4389BF036A"
			supplier   	"Use Case View::获取纯文本文件"
			quidu      	"3F4387DD00D9")
		    (object Dependency_Relationship
			quid       	"3F4389C10156"
			supplier   	"Use Case View::获取JPG图像文件"
			quidu      	"3F4387F503A8")
		    (object Dependency_Relationship
			quid       	"3F438A0503E7"
			supplier   	"Use Case View::获取GIF图像文件"
			quidu      	"3F4389E001E3")))
	    (object UseCase "获取服务器当前目录文件列表"
		quid       	"3F4238F1000A")
	    (object UseCase "获取指定文件"
		quid       	"3F4238F4019A")
	    (object UseCase "解析用户请求"
		quid       	"3F4238F6033E")
	    (object UseCase "获取HTML类型文件"
		quid       	"3F4387BB0270")
	    (object UseCase "获取纯文本文件"
		quid       	"3F4387DD00D9")
	    (object UseCase "获取JPG图像文件"
		quid       	"3F4387F503A8")
	    (object UseCase "获取GIF图像文件"
		quid       	"3F4389E001E3")
	    (object Association "$UNNAMED$0"
		quid       	"3F43899400D9"
		roles      	(list role_list
		    (object Role "$UNNAMED$1"
			quid       	"3F43899601C4"
			supplier   	"Use Case View::获取服务器当前目录文件列表"
			quidu      	"3F4238F1000A"
			is_navigable 	TRUE)
		    (object Role "$UNNAMED$2"
			quid       	"3F43899601C5"
			supplier   	"Use Case View::客户"
			quidu      	"3F4238D302A8")))
	    (object Association "$UNNAMED$3"
		quid       	"3F438A0E0250"
		roles      	(list role_list
		    (object Role "$UNNAMED$4"
			quid       	"3F438A0F02FC"
			supplier   	"Use Case View::解析用户请求"
			quidu      	"3F4238F6033E")
		    (object Role "$UNNAMED$5"
			quid       	"3F438A0F02FD"
			supplier   	"Use Case View::客户"
			quidu      	"3F4238D302A8"))))
	logical_presentations 	(list unit_reference_list
	    (object UseCaseDiagram "Main"
		quid       	"3F42376D000B"
		title      	"Main"
		zoom       	100
		max_height 	28350
		max_width  	21600
		origin_x   	0
		origin_y   	495
		items      	(list diagram_item_list
		    (object UseCaseView "Use Case View::获取指定文件" @1
			location   	(640, 544)
			font       	(object Font
			    size       	10
			    face       	"宋体"
			    charSet    	134
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@1
			    location   	(640, 682)
			    anchor_loc 	1
			    nlines     	2
			    max_width  	630
			    justify    	0
			    label      	"获取指定文件")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"3F4238F4019A"
			height     	118)
		    (object UseCaseView "Use Case View::获取HTML类型文件" @2
			location   	(640, 784)
			font       	(object Font
			    size       	10
			    face       	"宋体"
			    charSet    	134
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@2
			    location   	(640, 922)
			    anchor_loc 	1
			    nlines     	2
			    max_width  	630
			    justify    	0
			    label      	"获取HTML类型文件")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"3F4387BB0270"
			height     	118)
		    (object UseCaseView "Use Case View::获取纯文本文件" @3
			location   	(640, 1056)
			font       	(object Font
			    size       	10
			    face       	"宋体"
			    charSet    	134
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@3
			    location   	(640, 1194)
			    anchor_loc 	1
			    nlines     	2
			    max_width  	630
			    justify    	0
			    label      	"获取纯文本文件")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"3F4387DD00D9"
			height     	118)
		    (object UseCaseView "Use Case View::获取JPG图像文件" @4
			location   	(640, 1280)
			font       	(object Font
			    size       	10
			    face       	"宋体"
			    charSet    	134
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@4
			    location   	(640, 1418)
			    anchor_loc 	1
			    nlines     	2
			    max_width  	630
			    justify    	0
			    label      	"获取JPG图像文件")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"3F4387F503A8"
			height     	118)
		    (object UseCaseView "Use Case View::获取服务器当前目录文件列表" @5
			location   	(640, 304)
			font       	(object Font
			    size       	10
			    face       	"宋体"
			    charSet    	134
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@5
			    location   	(640, 442)
			    anchor_loc 	1
			    nlines     	2
			    max_width  	630
			    justify    	0
			    label      	"获取服务器当前目录文件列表")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"3F4238F1000A"
			height     	118)
		    (object UseCaseView "Use Case View::获取GIF图像文件" @6
			location   	(640, 1504)
			font       	(object Font
			    size       	10
			    face       	"宋体"
			    charSet    	134
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@6
			    location   	(640, 1642)
			    anchor_loc 	1
			    nlines     	2
			    max_width  	630
			    justify    	0
			    label      	"获取GIF图像文件")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"3F4389E001E3"
			height     	118)
		    (object UseCaseView "Use Case View::解析用户请求" @7
			location   	(640, 1744)
			font       	(object Font
			    size       	10
			    face       	"宋体"
			    charSet    	134
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@7
			    location   	(640, 1882)
			    anchor_loc 	1
			    nlines     	2
			    max_width  	630
			    justify    	0
			    label      	"解析用户请求")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"3F4238F6033E"
			height     	118)
		    (object ClassView "Class" "Use Case View::客户" @8
			ShowCompartmentStereotypes 	TRUE
			IncludeAttribute 	TRUE
			IncludeOperation 	TRUE
			location   	(176, 1008)
			font       	(object Font
			    size       	10
			    face       	"宋体"
			    charSet    	134
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@8
			    location   	(176, 1168)
			    anchor_loc 	1
			    nlines     	2
			    max_width  	325
			    justify    	0
			    label      	"客户")
			icon       	"Actor"
			icon_style 	"Icon"
			line_color 	3342489
			quidu      	"3F4238D302A8"
			annotation 	8
			autoResize 	TRUE)
		    (object DependencyView "" @9
			stereotype 	TRUE
			line_color 	3342489
			quidu      	"3F4389B903E7"
			client     	@8
			supplier   	@5
			line_style 	0)
		    (object DependencyView "" @10
			stereotype 	TRUE
			line_color 	3342489
			quidu      	"3F4389BB02BE"
			client     	@8
			supplier   	@1
			line_style 	0)
		    (object DependencyView "" @11
			stereotype 	TRUE
			line_color 	3342489
			quidu      	"3F4389BD01E3"
			client     	@8
			supplier   	@2
			line_style 	0)
		    (object DependencyView "" @12
			stereotype 	TRUE
			line_color 	3342489
			quidu      	"3F4389BF036A"
			client     	@8
			supplier   	@3
			line_style 	0)
		    (object DependencyView "" @13
			stereotype 	TRUE
			line_color 	3342489
			quidu      	"3F4389C10156"
			client     	@8
			supplier   	@4
			line_style 	0)
		    (object DependencyView "" @14
			stereotype 	TRUE
			line_color 	3342489
			quidu      	"3F438A0503E7"
			client     	@8
			supplier   	@6
			line_style 	0)
		    (object AssociationViewNew "$UNNAMED$3" @15
			location   	(444, 1436)
			stereotype 	TRUE
			line_color 	3342489
			quidu      	"3F438A0E0250"
			roleview_list 	(list RoleViews
			    (object RoleView "$UNNAMED$4" @16
				Parent_View 	@15
				location   	(268, 428)
				stereotype 	TRUE
				line_color 	3342489
				quidu      	"3F438A0F02FC"
				client     	@15
				supplier   	@7
				line_style 	0)
			    (object RoleView "$UNNAMED$5" @17
				Parent_View 	@15
				location   	(268, 428)
				stereotype 	TRUE
				line_color 	3342489
				quidu      	"3F438A0F02FD"
				client     	@15
				supplier   	@8
				line_style 	0)))))))
    root_category 	(object Class_Category "Logical View"
	quid       	"3F423765028B"
	exportControl 	"Public"
	global     	TRUE
	subsystem  	"Component View"
	quidu      	"3F423765028D"
	logical_models 	(list unit_reference_list
	    (object Class_Category "主程序"
		quid       	"3F42444503B6"
		exportControl 	"Public"
		logical_models 	(list unit_reference_list)
		statemachine 	(object State_Machine "State/Activity Model"
		    quid       	"3F4244570168"
		    states     	(list States
			(object State "$UNNAMED$6"
			    quid       	"3F42457E0096"
			    transitions 	(list transition_list
				(object State_Transition
				    quid       	"3F424A18038E"
				    supplier   	"设置信号处理句柄"
				    quidu      	"3F42458101F4"
				    sendEvent  	(object sendEvent
					quid       	"3F424A180391")))
			    type       	"StartState")
			(object ActivityState "设置信号处理句柄"
			    quid       	"3F42458101F4"
			    transitions 	(list transition_list
				(object State_Transition
				    quid       	"3F424A190316"
				    supplier   	"进入根目录"
				    quidu      	"3F4247950190"
				    sendEvent  	(object sendEvent
					quid       	"3F424A190319"))))
			(object ActivityState "进入根目录"
			    quid       	"3F4247950190"
			    transitions 	(list transition_list
				(object State_Transition
				    quid       	"3F424A1A01F4"
				    supplier   	"命令行处理"
				    quidu      	"3F4247B101D6"
				    sendEvent  	(object sendEvent
					quid       	"3F424A1A01F7"))))
			(object ActivityState "命令行处理"
			    quid       	"3F4247B101D6"
			    transitions 	(list transition_list
				(object State_Transition
				    quid       	"3F424A1B00A0"
				    supplier   	"建立TCP流SOCKET"
				    quidu      	"3F4247D4030C"
				    sendEvent  	(object sendEvent
					quid       	"3F424A1B00A3"))))
			(object ActivityState "建立TCP流SOCKET"
			    quid       	"3F4247D4030C"
			    transitions 	(list transition_list
				(object State_Transition
				    quid       	"3F424A1B03D4"
				    supplier   	"绑定监听端口"
				    quidu      	"3F4248BA0398"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -