   Sending "long" int types over Winsock?
  Hello everyone! I was wondering if Winsock had a max int size? Like can I send a long long variable type? I tried doing so and so far it only returns garbage after a recv message.Unless... Is it better to some how multiply the number to a lower size and re multiply it when I get the receive function to get the same value when I sent it?The value size is maybe going to be between 11-16 digits long.What I want to send is the date in a int such like so:2010-05-09-06-55-1 (With out the "-")Them being year, month, day, hour, minute, and PM or AM, but for some odd reason, Winsock doesn't like anything more then a int being passed through.Can someone maybe give a example what they would do with out creating more variables to pass through a struct?Thanks, Andrew.   
  The send function should send anything you want. What is the actual code you are using?My guess is that you don't have a proper endian swap function in there for the 64bit variable.Doesn't seem there is a base winsock function for that (htonl is for 32bit only, and if you are using that it is trashing your variable).You'll probably have to google up some endian stuff for a 64bit swap, and when you need to use it.In a very nieve implementation you should be able to just:long long my64bit = 0xF0F0F0F0F0F0F0F0ull;send( socket, &my64bit, sizeof(my64bit), flags );and recv it on the other end just fine.Just remember that sending a raw number like that will break as soon as the source/destination computers aren't of the same endian. (ie PowerPC server to a x86 host).;  Alright thanks for your help! :)I found part of the problem why it was kinda throwing up strange values. I forgot to mention I was using Mysql connector C++ and I was using the regular old getInt instead of using the getInt64 function to get int in mysql table columns that are longer then 11 bytes.Thanks again!   