Results 1 to 4 of 4

Thread: array of socket

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Posts
    163

    array of socket

    socket s[10]; gives error.
    Why?
    Purushottam

  2. #2
    Lively Member
    Join Date
    Jul 2000
    Location
    Ireland, Dublin
    Posts
    76

    Talking

    The word socket should be in capital letters SOCKET, I think.

    Try it and let me know if it works.

    IJ...
    ---------------------------------
    TopMan
    ---------------------------------

  3. #3
    Lively Member
    Join Date
    Jul 2000
    Location
    Ireland, Dublin
    Posts
    76
    Also are you including the winsock.h header file...??

    IJ...

  4. #4
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    Just thought I would give you some advice that I have found over the past week or so working with sockets. I dont know what your program is, but juding by the fact you want an array of sockets, you are planing to have multiple users/connections connected at one time. You may want to think about using linked lists, instead of arrays, because it will allow you to grow or srink your connection list eaiser.
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width