用telnet来发E-Mail

2008年5月17日 18:57

#'以后的部分是我的注解,'>'表示输入,其它的为服务器的回应

rui@ubuntu-home:~$ telnet email.ustc.edu.cn 25
Trying 202.38.64.8...
Connected to email.ustc.edu.cn.
Escape character is '^]'.
220 ESMTP
> ehlo # Say 'hello'
250-AUTH=LOGIN PLAIN
250-AUTH LOGIN PLAIN
250-PIPELINING
250 8BITMIME
> auth login # SMTP服务器需要用户验证
334 VXNlcm5hbWU6 # B64编码的 Username:
> cxVd # B64编码的你的用户名,保密起见,这个是假的
334 UGFzc3dvcmQ6 # B64编码的 Password:
> ebgacd45 # B64编码的你的密码,保密起见,这个是假的
235 go ahead (eyou mta) (
http://eyou.net _80)
> Mail From: <
r...@ustc.edu.cn>
250 OK (eyou mta)
> RCPT To: <
r01u...@gmail.com>
250 OK (eyou mta) (
http://eyou.net _15000000)
> Data
354 go ahead (eyou mta)
> Subject: test from command line
> To:
51p...@gmail.com # 这个好像没什么用的
>
>
> nnd, test from telnet command line
>
>
> .
250 OK:has queued (eyou mta)
> quit
221 close connection (eyou mta)
Connection closed by foreign host.

通达信股票分析软件日线数据格式-股票数据格式大全,股票数据格式分析 http://alantop.5166.info

 
 
股票数据格式大全,股票数据格式分析 http://alantop.5166.info
 
 
我以招商银行为例说明其数据格式:
 
日线数据存放在 C:\Program Files\国泰君安证券\超强版\vipdoc\sh\lday
 
文件名: sh600036.day
 
以下是数据文件图片显示.首页内显示不了图片,请点击标题进入看.
 
 
 
其每32个字节记录的是一日线数据:
 
其数据结构定义如下:
 
typedef struct mystructtag
{
   int date;
   int open;
   int high;
   int low;
   int close;
   float amount;
   int vol;
   int reservation;
} StockData;
 
 
 
 
这个数据是以上图片翻译的两行数据
 
日期 开牌价 最高价 最低价 收盘价 成交量
 
20020409 10.51 10.88 10.51 10.66  414108800
20020410 10.66 10.70 10.39 10.60 67945400