POP3服务器发送数据 [英] POP3 server sending of data

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

问题描述

大家好

我正在为Telit GPRS调制解调器开发嵌入式客户端应用程序.客户端应用程序检查POP3服务器中是否有新邮件.

我无法从服务器接收数据.

POP3服务器是将数据作为连续的数据流发送到客户端,还是一次将一行数据发送到客户端???

谢谢并问候

Hi all

I am developing an embedded client application for a Telit GPRS modem. The client application checks a POP3 server for new mail.

I am having trouble with receiving data from the server.

Does the POP3 server send the data as a continuous stream of data to the client or does it send the data one line at a time to the client???

Thank you and regards

推荐答案

您可以在单个TCP连接上完成所有操作.您连接,认证然后发送POP3命令,服务器将发送回响应,其中一些响应是多行的.

您正在为此使用什么课程?还是自己动手?


-------

针对您的评论:

对RETR的响应作为单个响应发送.由于内部缓冲区的限制,在接收端您可能会通过多次迭代来接收它.但是它并没有分解成几行.如果您不想阅读整个邮件正文,而只是想查看从/到/主题,请使用TOP而不是RETR.
You do it all on a single TCP connection. You connect, authenticate, and then send POP3 commands, and the server sends back responses, some of which are multi-line.

What class are you using for this? Or did you roll your own?


-------

In response to your comment:

The response to a RETR is send as a single response. At the receiving end you may receive it through multiple iterations because of internal buffer limits. But it is not broken down into lines. If you don''t want to read the entire mail body, and just want to see the from/to/subject use TOP instead of RETR.


需要时,多行响应将不间断地发送.根据您使用的库/语言,您可能可以逐行从缓冲区(客户端)读取.请注意,如果未正确终止流,请妥善处理流的末尾.

RFC 1939 [ ^ ]

您会很好地打开telnet会话并在服务器上戳一下以查看其作用.

干杯.
When required, multiline responses are sent uninterrupted. Depending on the library/language you''re using, you may be able to read from your buffer (client side) line-by-line. Just be careful that you handle the end of the stream gracefully if it''s not properly terminated.

RFC 1939[^]

You''ll do well to open a telnet session and poke at the server to see what it does.

Cheers.


有人可以帮我解决这个问题吗?
电子邮件验证问题 [
Can anyone help me to resolve this?
email validation problem[^]


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

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