Click to See Complete Forum and Search --> : array of socket
purusingh
Jul 29th, 2002, 08:40 AM
socket s[10]; gives error.
Why?
IrishJoker
Jul 29th, 2002, 09:38 AM
The word socket should be in capital letters SOCKET, I think.
Try it and let me know if it works.
IJ...
IrishJoker
Jul 29th, 2002, 09:39 AM
Also are you including the winsock.h header file...??
IJ...
Technocrat
Jul 29th, 2002, 02:25 PM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.