|
-
Jul 13th, 2006, 05:00 PM
#2
Re: [2.0] Need some Socket Help
You've got some things mixed up:
1) newsocket is a Socket, not an array of anything, so the parentheses are going to cause a problem.
2) even if newsocket were an array, in c# the array indexer is the square brackets: array[n]
3) It looks like you're trying to assign an event. If you're not, you can ignore this and #4 you assign events by using the += operator and an appropriate delegate:
something.SomeEvent += new EventHandler(myEventHandler)
4) Connected is not an event, it's a boolean property.
Perhaps you meant simply "newsocket" or "((Socket)socketList[i])"?
Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|