Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Send UINT array

Send UINT array

Scheduled Pinned Locked Moved C / C++ / MFC
sysadmindata-structures
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    javad_2005
    wrote on last edited by
    #1

    Hello, I have declared a variable like this: UINT * p[2000*800]; and I want to send this variable through network using winsock2. And time is very important for me... Thank you.

    J M 2 Replies Last reply
    0
    • J javad_2005

      Hello, I have declared a variable like this: UINT * p[2000*800]; and I want to send this variable through network using winsock2. And time is very important for me... Thank you.

      J Offline
      J Offline
      jeron1
      wrote on last edited by
      #2

      There's not enough information here. What have you done so far?

      1 Reply Last reply
      0
      • J javad_2005

        Hello, I have declared a variable like this: UINT * p[2000*800]; and I want to send this variable through network using winsock2. And time is very important for me... Thank you.

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        send(socket, (const char*)p, 2000*800*sizeof(p[0]), 0); Of course I've omitted error handling and the possibility that all bytes don't get sent in one call. Are you sure you want to send UINT pointers across the network? Pointers aren't much use except in the context of the process they were created in. Mark

        "Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot? Of course you don't, no one does. It never happens. It's a dumb question... skip it." (Rex Kramer "Airplane!")

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups