|
-
Oct 11th, 2000, 03:41 AM
#1
Thread Starter
Lively Member
Greetings,
Can someone let me in on the basic code to listen with the winsock ocx on a socket, accept the connection, create a new winsock control that will then go back to listening on the same port?
Thanks
Daniel Rose
VB 5.0 Enterprise.
irc:irc2.dynam.ac
If TheCodeInTheSig() Is Not Lame() Then IDontKnowWhatIs()
-
Oct 11th, 2000, 08:13 AM
#2
Frenzied Member
See the MSDN page Using the Winsock Control.
If you need to send/receive record type structures, let me know. There are some important issues that you need to be aware of.
-
Oct 11th, 2000, 10:02 AM
#3
Fanatic Member
If you need help write back
Kurt Simons
[I know I'm a hack but my clients don't!]
-
Oct 12th, 2000, 03:53 AM
#4
Thread Starter
Lively Member
Well, i just really want to know how to generate a new control 'on the fly' in code.
Daniel Rose
VB 5.0 Enterprise.
irc:irc2.dynam.ac
If TheCodeInTheSig() Is Not Lame() Then IDontKnowWhatIs()
-
Oct 12th, 2000, 07:46 AM
#5
Fanatic Member
your listening sock should have a index of (0)
dim NextSock as integer
sock(0).listen
in the sock connect_request
NextSock=NextSock+1
load sock(NextSock)
sock(NextSock).Accept RequestID
the listening sock's state is never changed the connection requests are accepted on new socks
Kurt Simons
[I know I'm a hack but my clients don't!]
-
Oct 12th, 2000, 07:54 AM
#6
Frenzied Member
CAPHS wrote:
Well, i just really want to know how to generate a new control 'on the fly' in code.
Did you look at the MSDN page? What you want is described there. With code examples.
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
|