如何为套接字python3创建应用程序层 [英] How to create an application layer for sockets python3

查看:137
本文介绍了如何为套接字python3创建应用程序层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我一直在查看python中的套接字,我创建了一个简单的套接字服务器和客户端。我很好奇如何为我自己的套接字服务器创建一个应用层(我相信它所谓的但我不完全确定);示例如下:



Hello,

I have been looking at sockets in python and I have create a simple socket server and client. I am curious as to how to create an Application Layer (I believe thats what its called but I'm not completely sure) for my own socket server; examples would be like:

http://

ftp://

smb://

etc..





我希望为我的套接字连接创建自己的;这样做怎么办?我道歉,因为我不知道怎么说这个问题。





谢谢。



我尝试了什么:



我在互联网上环顾四周但我似乎无法找到如何做到这一点。



I wish to create my own for my socket connection; how do I go by doing this? I apologise as I don't know how to word this question.


Thank you.

What I have tried:

I've looked around on the internet but I can't seem to find how to do this.

推荐答案

ISO / OSI模型的应用层不能在几个小时内完成。您需要研究RFC文档以查看所需内容。
Application layer of the ISO/OSI model is not something that can be written in a few hours. You need to study the RFC documents to see what is required.


这篇关于如何为套接字python3创建应用程序层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆