|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
Socket sent float type sequence data into TCP network 1.socket sent float type sequence data into TCP network
2. Array types include sending structural types, how to send.
If
Typedef struct{
Unsigned int A1;
Float A2
}A;
Typedef struct{
Unsigned INT B1
Float B2 gene
A a[10];
) B;
B a[10] issued when the data is not sent out. |
Socket sent float type sequence data into TCP network -->
If two machines using the same software and hardware environment, direct transmission of data, not conversion. But if different hardware platforms (mainly CISC, RISC架构 CPU), the byte integer value of the order, must be changed, specifically through htonl (), ntohl () to be achieved. |
| |