Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

#pragma pack (4) 4-Byte alignment in Java

Status
Not open for further replies.

stonee74

Technical User
Nov 12, 2001
49
CH
hey JavaGurus,
I a currently starting to write a TCP/IP communication in Java (with sockets).
I need to send data packets to a server, which will execute certain commands.
Those packets should have a 4-Byte alignment convention.
As far as I know VC++ default is 8 Byte.
What about Java? Is that adjustable as well??
Does it make sense to send .writeObject(data) commands?

Any help is greatly appreciated,
stonee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top