SocketWrench
SocketWrench
SocketWrench
SocketWrench
SocketWrench
SocketWrench SocketWrench SocketWrench SocketWrench SocketWrench SocketWrench SocketWrench SocketWrench
SocketWrench SocketWrench
SocketWrench
Go Back  Xtreme Visual Basic Talk > > > SocketWrench


Reply
 
Thread Tools Display Modes
  #1  
Old 09-08-2001, 08:58 AM
robot313's Avatar
robot313 robot313 is offline
Senior Contributor

Retired Leader
 
Join Date: May 2001
Location: USA
Posts: 1,295
Exclamation SocketWrench


I don't know why this code doesn't work. It's the code it says to use in the SocketWrench Developer's Guide for a sample program.

I'm using this code:

<pre><font color=blue>Private</font color=blue> <font color=blue>Sub</font color=blue> Form_Load()
Socket1.AddressFamily = AF_INET
Socket1.Protocol = IPPROTO_IP
Socket1.SocketType = SOCK_STREAM
Socket1.Binary = <font color=blue>False</font color=blue>
Socket1.Blocking = <font color=blue>False</font color=blue>
Socket1.BufferSize = 1024

Socket2(0).AddressFamily = AF_INET
Socket2(0).Protocol = IPPROTO_IP
Socket2(0).SocketType = SOCK_STREAM
Socket2(0).Blocking = <font color=blue>False</font color=blue>
Socket2(0).LocalPort = IPPORT_ECHO
Socket2(0).Action = SOCKET_LISTEN
LastSocket = 0
<font color=blue>End</font color=blue> <font color=blue>Sub</font color=blue></pre>

When I run the program it says:
Run-time error '24044':
Specified socket type is not supported in this address family.

Reply With Quote
  #2  
Old 09-08-2001, 09:00 AM
ThinkerSocketWrench Thinker is offline
Iron-Fisted Programmer

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Fayetteville Arkansas USA
Posts: 18,127
Default Re: SocketWrench

Did you include the correct cswsock.bas standard module in your project?
If not then copy the correct file, for your version of VB, to the directory
where your project is saved. Then, from the project explorer window,
right-click on the project and select add/Module and select the Existing
tab. Select the cswsock.bas file that you copied into the directory and
click Open.


I think therefore I am... sometimes right. [img]images/icons/wink.gif[/img]
__________________
Posting Guidelines
Reply With Quote
  #3  
Old 09-08-2001, 09:02 AM
robot313's Avatar
robot313 robot313 is offline
Senior Contributor

Retired Leader
 
Join Date: May 2001
Location: USA
Posts: 1,295
Default Re: SocketWrench

Where do I get cswsock.bas ?

Reply With Quote
  #4  
Old 09-08-2001, 09:03 AM
ThinkerSocketWrench Thinker is offline
Iron-Fisted Programmer

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Fayetteville Arkansas USA
Posts: 18,127
Default Re: SocketWrench

There should have been different versions included in the package you
downloaded.

I think therefore I am... sometimes right. [img]images/icons/wink.gif[/img]
__________________
Posting Guidelines
Reply With Quote
  #5  
Old 09-08-2001, 09:15 AM
robot313's Avatar
robot313 robot313 is offline
Senior Contributor

Retired Leader
 
Join Date: May 2001
Location: USA
Posts: 1,295
Default Re: SocketWrench

I found it in the SocketWrench samples folder and it's called Wrench.bas Now the program works fine!

Reply With Quote
  #6  
Old 09-08-2001, 09:21 AM
ThinkerSocketWrench Thinker is offline
Iron-Fisted Programmer

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Fayetteville Arkansas USA
Posts: 18,127
Default Re: SocketWrench

Great. I guess I have the older version. Maybe I should download the
newer one too.

I think therefore I am... sometimes right. [img]images/icons/wink.gif[/img]
__________________
Posting Guidelines
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
SocketWrench
SocketWrench
SocketWrench SocketWrench
SocketWrench
SocketWrench
SocketWrench SocketWrench SocketWrench SocketWrench SocketWrench SocketWrench SocketWrench
SocketWrench
SocketWrench
 
SocketWrench
SocketWrench
 
-->