Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

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.



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com