Is there a way to send floats through Winsock?

This is a discussion on Is there a way to send floats through Winsock? within the Networking/Device Communication forums, part of the General Programming Boards category; And does anyone know where i could learn about Winsock and Networking. I used http://www.gametutorials.com/Tutoria...orking_Pg1.htm TIA...

  1. #1
    Registered User jimboob's Avatar
    Join Date
    Jun 2004
    Posts
    40

    Is there a way to send floats through Winsock?

    And does anyone know where i could learn about Winsock and Networking.
    I used http://www.gametutorials.com/Tutoria...orking_Pg1.htm

    TIA

  2. #2
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  3. #3
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    Is there a way to send floats through Winsock?
    Code:
    float myfloat = 10.0f;
    send(s,(const char*)&myfloat,sizeof(float),0);

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sending n no of char data uning send() function,
    By thebrighter in forum Windows Programming
    Replies: 1
    Last Post: 08-22-2007, 12:26 PM
  2. Winsock. What's the right way to make a blocking send()?
    By manugarciac in forum Windows Programming
    Replies: 6
    Last Post: 06-18-2007, 09:39 AM
  3. Replies: 2
    Last Post: 03-05-2002, 04:52 AM
  4. Winsock exe send html to IE
    By (TNT) in forum Windows Programming
    Replies: 1
    Last Post: 12-23-2001, 06:00 PM
  5. Replies: 0
    Last Post: 11-16-2001, 11:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21