简单的回声服务器 [英] simple echo server

查看:124
本文介绍了简单的回声服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试实现国际象棋服务器程序,所以我开始实现简单的echo服务器。

当客户端尝试连接到服务器时一切正常但是当服务器试图回应它从客户端接收到的内容时我会获得访问权限

拒绝错误。

为什么会发生这种情况?

(我将我的server.py放在(m-net.arbornet.org)我的用户帐户下。

这是放置服务器程序的正确位置还是有位置在

网上欢迎申请此类申请?)


谢谢

Haris

I''m trying to implement chess server program so I started by
implementing simple echo server.
When client is trying to connect to the server everything works fine but
when server tries to echo what it receieved from client I get access
denied error.
Why is that happening ?
(I put my server.py under ("m-net.arbornet.org") my user account. Is
this the right place to put server program or is there a place on the
Net where such applications are welcome ? )

Thanks
Haris

推荐答案

Haris Bogdanovic写道:
Haris Bogdanovic wrote:
当客户端尝试连接到服务器时一切正常但服务器时
试图回应它从客户端接收到的内容我得到访问
拒绝错误。
为什么会发生这种情况?
When client is trying to connect to the server everything works fine but
when server tries to echo what it receieved from client I get access
denied error.
Why is that happening ?




因为服务器没有访问权限?


没有 - 你必须提供更详细的信息。

首选确切的代码片段和确切的错误信息

你是谁''得到。


--Irmen



Because the server has no access?

No really-- you have to give much more detailed information.
Preferrably the exact code fragment and exact error message
that you''re getting.

--Irmen


Irmen de Jong写道:
Irmen de Jong wrote:
Haris Bogdanovic写道:
Haris Bogdanovic wrote:
当客户端尝试连接到服务器时一切正常
但是当服务器试图回应它从客户端收到的内容时我得到了
访问权限拒绝错误。
为什么会发生这种情况?
When client is trying to connect to the server everything works fine
but when server tries to echo what it receieved from client I get
access denied error.
Why is that happening ?



因为服务器无法访问?

没有 - 你必须提供更详细的信息信息。
最好是你得到的确切代码片段和确切的错误信息。

- Irmen


Because the server has no access?

No really-- you have to give much more detailed information.
Preferrably the exact code fragment and exact error message
that you''re getting.

--Irmen



It这是python docs(socket部分)的例子。如果您的个人用户帐号位于某个地方,您可以尝试使用它。

告诉我你做了什么。


谢谢

Haris


It''s the example from python docs (socket section). If you have
somewhere your personal user account you can try it aswell.
Tell me what you managed to do.

Thanks
Haris


Irmen de Jong写道:
Irmen de Jong wrote:
Haris Bogdanovic写道:
Haris Bogdanovic wrote:
当客户端尝试连接到服务器时一切正常
但是当服务器试图回应它从客户端收到的内容时,我得到访问被拒绝错误。
为什么发生了什么?
When client is trying to connect to the server everything works fine
but when server tries to echo what it receieved from client I get
access denied error.
Why is that happening ?



因为服务器没有访问权限?

没有 - 你必须提供更详细的信息。
最好是确切的代码片段和确切的错误消息
你得到了。

- Irmen


Because the server has no access?

No really-- you have to give much more detailed information.
Preferrably the exact code fragment and exact error message
that you''re getting.

--Irmen



这是来自python docs的例子(插座部分)。如果您的个人用户帐号位于某个地方,您可以尝试使用它。

告诉我你做了什么。


谢谢

Haris


It''s the example from python docs (socket section). If you have
somewhere your personal user account you can try it aswell.
Tell me what you managed to do.

Thanks
Haris


这篇关于简单的回声服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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