Winsock.bas 
Author Message
 Winsock.bas

Can someone tell me where I can get winsock.bas on the net quickly?

Thanks in advance!

--
Regards,
Collin Ng
+-------------------------------------------------------------------+


|                                               Datel : 243-1493    |
| Web Page : http://www.*-*-*.com/ :8000/~sf7225714/www.html        |
+-------------------------------------------------------------------+



Wed, 10 Jun 1998 03:00:00 GMT  
 Winsock.bas
In comp.os.ms-windows.programmer.tools.winsock on 24 Dec 1995 05:47:03 GMT,

Quote:


> >Can anyone tell me where I can get Winsock.bas on the net?
> >Thanks a lot!
> I am currently working on Winsock programming in VB4/32 and have a
> winsock.bas file with both the 16 bit and 32 bit declares posted on my web
> page. If you are interested go to http://jacobs.vnet.net
> My page will be up only on weekends, although this weekend (Christmas) it
> will be up until noon tuesday the 26th. Follow the link to the VB
> Programming area and there will be instructions on how to get the files.
> BTW: There is also code for a simple VB Web Server as well as a OCX for
> the necessary message handling.
> Steve Jacobs


I tried this server between 9 and 10 AM EST but it never answered. I would like
to have this winsock.bas file myself, so if it is up please post here.
----

Quantitative Analyst            ADAM Investment Svcs    
  Opinions I express here are my own and not my employer's.


Sat, 13 Jun 1998 03:00:00 GMT  
 Winsock.bas
Here it is!

Rem Winsock.dll  Version 1.1 API declarations for use with Visual Basic
Rem
Rem   The type to be used in all socket references.
Rem

Global sockettype As Integer
Global Const FD_SETSIZE = 64

Type fd_set_type
  fd_count As Integer
  fd_array(FD_SETSIZE) As Integer
End Type
Global FD_SET As fd_set_type

Declare Function FD_ISSET Lib "winsock.dll" Alias "__WSAFDIsSet" (ByVal s
As Integer,
passed_set As fd_set_type) As Integer

Rem
Rem   Structure used in select() call, taken from the BSD file sys/time.h.
Rem
Type timeval
  tv_sec As Long
  tv_usec As Long
End Type

Type SockAddr_in
  sin_family As Integer
  sin_port As Integer
  sin_addr As Long
  sin_zero(7) As String * 1
End Type

Type in_addr
 temp As Long
End Type

Type sockaddr
  sa_family As Integer
  sa_data(14) As Integer
End Type

Global Const WSADESCRIPTION_LEN = 256
Global Const WSASYS_STATUS_LEN = 128

Type WSAdata_type
   wVersion As Integer
   wHighVersion As Integer
   szDescription As String * 257
   szSystemStatus As String * 129
   iMaxSockets As Integer
   iMaxUdpDg As Integer
   lpVendorInfo As String * 200
End Type

Global WSAdata As WSAdata_type

Type sockproto
  sp_family As Integer
  sp_protocol As Integer
End Type

Type linger
  l_onoff As Integer
  l_linger As Integer
End Type

Rem   Socket function prototypes
Declare Function Accept Lib "winsock.dll" (ByVal s As Integer, addr As
SockAddr_in, addrlen As
Integer) As Integer
Declare Function Bind Lib "winsock.dll" (ByVal s As Integer, addr As
SockAddr_in, ByVal namelen
As Integer) As Integer
Declare Function closesocket Lib "winsock.dll" (ByVal s As Integer) As
Integer
Declare Function htonl Lib "winsock.dll" (ByVal a As Long) As Long
Declare Function inet_addr Lib "winsock.dll" (ByVal s As String) As Long
Declare Function inet_ntoa Lib "winsock.dll" (ByVal in As Long) As Long
Declare Function ntohl Lib "winsock.dll" (ByVal a As Long) As Long
Declare Function socket Lib "winsock.dll" (ByVal af As Integer, ByVal
typesock As Integer, ByVal
protocol As Integer) As Integer
Declare Function htons Lib "winsock.dll" (ByVal a As Integer) As Integer
Declare Function ntohs Lib "winsock.dll" (ByVal a As Integer) As Integer
Declare Function Connect Lib "winsock.dll" (ByVal sock As Integer,
sockstruct As SockAddr_in,
ByVal structlen As Integer) As Integer
Declare Function send Lib "winsock.dll" (ByVal sock As Integer, ByVal msg
As String, ByVal
msglen As Integer, ByVal flag As Integer) As Integer
Declare Function Recv Lib "winsock.dll" (ByVal sock As Integer, ByVal msg
As String, ByVal
msglen As Integer, ByVal flag As Integer) As Integer
Declare Function Listen Lib "winsock.dll" (ByVal s As Integer, ByVal
backlog As Integer) As Integer

Rem   Microsoft Windows Extension function prototypes

Declare Function WSaStartup Lib "winsock.dll" (ByVal a As Integer, b As
WSAdata_type) As
Integer
Declare Function WSACleanup Lib "winsock.dll" () As Integer

Rem   WINSOCK constants

Global Const SOCK_STREAM = 1
Global Const SOCK_DGRAM = 2
Global Const AF_INET = 2



Sun, 14 Jun 1998 03:00:00 GMT  
 Winsock.bas

Quote:
>> page. If you are interested go to http://jacobs.vnet.net
>> My page will be up only on weekends, although this weekend (Christmas)

                             ^^^^^^^^^^^
I'll have it back up this weekend.

Steve



Sun, 14 Jun 1998 03:00:00 GMT  
 Winsock.bas

(KlemenK) threw this at us:

Quote:
>Here it is!

Thanks! It's now available at
ftp://ftp.sn.no/user/balchen/vb/source/winsock.zip

Jens
--
* Everything I said are the opinions of someone else.   *
* I just cut-and-pasted.                                *

Jens Balchen jr.       http://www.sn.no/~balchen



Sun, 14 Jun 1998 03:00:00 GMT  
 Winsock.bas

Quote:

>Can someone tell me where I can get winsock.bas on the net quickly?
>Thanks in advance!
>--
>Regards,
>Collin Ng

Check out:
ftp://ftp.cac.washington.edu/pub/winsock/tsync1_8.src/win_api/
The file WINSOCK.BAS is in the above directory.

I used Archie.  It's a nice thing to have when searching for files on
the net!

Scott



Mon, 15 Jun 1998 03:00:00 GMT  
 Winsock.bas

Quote:

> >> page. If you are interested go to http://jacobs.vnet.net
> >> My page will be up only on weekends, although this weekend (Christmas)
>                              ^^^^^^^^^^^
> I'll have it back up this weekend.
> Steve

And I must remind you, Steve, that you wrote it would be up until noon on
December 26.
----

Quantitative Analyst            ADAM Investment Svcs    
  Opinions I express here are my own and not my employer's.


Mon, 15 Jun 1998 03:00:00 GMT  
 Winsock.bas
In comp.os.ms-windows.programmer.tools.winsock on 27 Dec 1995 22:12:16 GMT,

Quote:

> >> page. If you are interested go to http://jacobs.vnet.net
> >> My page will be up only on weekends, although this weekend (Christmas)
>                              ^^^^^^^^^^^
> I'll have it back up this weekend.
> Steve

Here's your earlier post, steve. It does mention that it will be up on Tuesday
December 26 until Noon.


Quote:

>Can anyone tell me where I can get Winsock.bas on the net?
>Thanks a lot!

I am currently working on Winsock programming in VB4/32 and have a
winsock.bas file with both the 16 bit and 32 bit declares posted on my web
page. If you are interested go to http://jacobs.vnet.net
My page will be up only on weekends, although this weekend (Christmas) it
will be up until noon tuesday the 26th. Follow the link to the VB
Programming area and there will be instructions on how to get the files.

BTW: There is also code for a simple VB Web Server as well as a OCX for
the necessary message handling.

Steve Jacobs

----

Quantitative Analyst            ADAM Investment Svcs    
  Opinions I express here are my own and not my employer's.



Mon, 15 Jun 1998 03:00:00 GMT  
 Winsock.bas

Quote:

>>Can anyone tell me where I can get Winsock.bas on the net?
>>Thanks a lot!
>I am currently working on Winsock programming in VB4/32 and have a
>winsock.bas file with both the 16 bit and 32 bit declares posted on my
web
>page. If you are interested go to http://jacobs.vnet.net
>My page will be up only on weekends, although this weekend (Christmas) it
>will be up until noon tuesday the 26th. Follow the link to the VB
>Programming area and there will be instructions on how to get the files.

>BTW: There is also code for a simple VB Web Server as well as a OCX for
>the necessary message handling.

>Steve Jacobs

>----

>Quantitative Analyst            ADAM Investment Svcs    
>  Opinions I express here are my own and not my employer's.

I remember what I wrote, and in fact my server was up and I was logged on
to my ISP. After checking with them they told me that there was a problem
with their T1 and Sprint was working on it. This is what I was told. If
you need the winsock.bas file that badly email me and I will send it to
you before saturday. If not then wait until then and try again. Another
winsock.bas file is available on the net and is good for 16 bit
programming. Mine is good for 16 and 32 bit programming and is available
to anyone that wants to get it. I am giving it away HOWEVER I do not have
an unlimited access account yet so I can only run my server during
non-primetime hours. This is the reason that it is not running all the
time.

Like I said, you are welcome to get it this weekend or email me and I will
attach it to a email message. I am working on a web server on port 8080
and might ocassionally have problems with slow connects, etc. but I try ti
keep my main server up as much as possible on weekends.

Steve..



Tue, 16 Jun 1998 03:00:00 GMT  
 Winsock.bas

G'day Steve,

On 27 Dec 1995 22:12:16 GMT,

wrote to everyone ...

Quote:

> >> page. If you are interested go to http://jacobs.vnet.net
> >> My page will be up only on weekends, although this weekend (Christmas)
>                              ^^^^^^^^^^^
> I'll have it back up this weekend.

> Steve

I found your server quite good and you suggested it was written in VB
but when I was downloading webserver.zip and oc30.dll the transfer just
stopped. I retried and your server sent this message:

550 Error on file D:\FTP\oc30.dll: SHARE.EXE was not loaded, or a shared
region was locked.

I hope that helps you sort out a little feature you wern't aware of.
Otherwise the terminal you setup went quite normally although I was
a little puzzled by the alias "soho.ios.com".

I did not get all of webserver.zip so I'll be back.

Thanks,

Regards, Paul.
               _\/_
          .  /      \  .
          |\| (o)(o) |/|
      ---.OOOo--oo--oOOO.----
     | Paul Mack resides in  |
     | Melbourne, Australia. |
      ------------Oooo.------
        .oooO     (   )
        (   )      ) /    :::::::::::::::::::::::::::::::::::::::::::::::

          \_)             :::::::::::::::::::::::::::::::::::::::::::::::

Quote:
>> From Dr Who ... "It worked! Now if only I could remember what I did!" <<



Sat, 20 Jun 1998 03:00:00 GMT  
 
 [ 10 post ] 

 Relevant Pages 

1. Winsock.bas (pure Winsock API programming)

2. Winsock.bas (pure Winsock API programming)

3. WinSock v1.1 and v2.2 declares for VB - winsock.bas (0/1)

4. WinSock v1.1 and v2.2 declares for VB - winsock.bas (1/1)

5. Winsock.bas Closing Socket?

6. Winsock BAS File NEEDED, Please.

7. Here is The Winsock.bas for 16-bit

8. Winsock.bas

9. Winsock.bas for 32bit VB

10. WINSOCK.BAS?

11. Winsock.Bas

12. Winsock .bas file?

 

 
Powered by phpBB® Forum Software