|
-
Aug 30th, 2010, 05:01 PM
#1
my winsock component is broken?
hello, while trying to follow a tutorial involving sockets I found out that my winsock component has something wrong with it
what should be:
Code:
Public ReadOnly Property State() As MSWinsockLib.StateConstants()
is instead:
Code:
Public ReadOnly Property State() As Short
and this is presenting all sorts of problems such as not being able to get the state of the socket I am working with
so can anyone post a link to a working winsock component, tell me how to fix mine, or embarrass me by telling me im doing something wrong and that the winsock component is fine
-
Aug 31st, 2010, 11:39 PM
#2
Re: my winsock component is broken?
Did you manually type the code in to the program? If so maybe typed it incorrectly.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Sep 1st, 2010, 05:34 AM
#3
Re: my winsock component is broken?
No I noticed it when I was trying to get the state of my socket, I saw it threw an error for some reason and then when i looked at the intellisense I saw what I described in my first post
for instance when I type:
Code:
If sock.State = sckConnected
with "sock" being my socket it comes back with an error
-
Sep 2nd, 2010, 06:04 AM
#4
Re: my winsock component is broken?
Could you upload the source code? Someone will test it to see if they receive the same errors.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Sep 2nd, 2010, 07:06 AM
#5
Re: my winsock component is broken?
Never mind I found the solution to my problem, I was supposed to have:
StateConstants.sckListening
instead of just sckListening
But also, while trying to fix the problem myself I have discovered there is an inbuilt socket class at system.net.sockets but before I found this out I have been using the MSWinsockLib.dll which some people are saying is just for VB6
so could anyone tell me which is better/which I should be using?
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
|