D
dzogchen
Unregistered / Unconfirmed
GUEST, unregistred user!
type
STUDPACKETHEAD = record
packettype: Word; //包头
service_type: Byte; //类别
length: Word; //长度
pDATA DATA; //指向数据块
end {STUDPACKETHEAD};
STUDPACKETCONTENT = record //数据块
dest_address: Array[0..21-1] of Byte; //家庭住址
source_address: Array[0..21-1] of Byte; //在校寝室
stud_type: Word; //学生类别
TETS_time: Array[0..17-1] of Byte; //考试时间
valid_time: Array[0..17-1] of Byte; //有效时间
sm_length: Byte; //介绍长度
studmessage: Array[0..180-1] of Byte; //基本信息
CW_type: Array[0..2-1] of Byte; //费用类别
CW_code: Array[0..6-1] of Byte; //财务科目
end {STUDPACKETCONTENT};
STUDPACKETSINGLE = record
smpackethead: SMPACKETHEAD;
smpacketcontent: SMPACKETCONTENT;
end {STUDPACKETSINGLE};
请问如何将 以上结构的内容以流的方式传递给SOCKET的SERVER,谁愿意就这个
协议体,帮我D7做一个SOCKET的CLIENT/SERVER的程序,我就是不明白怎么以流
方式传递的?
STUDPACKETHEAD = record
packettype: Word; //包头
service_type: Byte; //类别
length: Word; //长度
pDATA DATA; //指向数据块
end {STUDPACKETHEAD};
STUDPACKETCONTENT = record //数据块
dest_address: Array[0..21-1] of Byte; //家庭住址
source_address: Array[0..21-1] of Byte; //在校寝室
stud_type: Word; //学生类别
TETS_time: Array[0..17-1] of Byte; //考试时间
valid_time: Array[0..17-1] of Byte; //有效时间
sm_length: Byte; //介绍长度
studmessage: Array[0..180-1] of Byte; //基本信息
CW_type: Array[0..2-1] of Byte; //费用类别
CW_code: Array[0..6-1] of Byte; //财务科目
end {STUDPACKETCONTENT};
STUDPACKETSINGLE = record
smpackethead: SMPACKETHEAD;
smpacketcontent: SMPACKETCONTENT;
end {STUDPACKETSINGLE};
请问如何将 以上结构的内容以流的方式传递给SOCKET的SERVER,谁愿意就这个
协议体,帮我D7做一个SOCKET的CLIENT/SERVER的程序,我就是不明白怎么以流
方式传递的?