Winsock - Notification When User Accepts Request
Does anyone know of a way that an initiator of a Winsock connection can be notified when a user on the other end accepts the connection ? I'm new to Winsock, so my terminology might not be the best, but I'm trying to find out if the inititator has any way of knowing that a connection was made before any messages are exchanged?
Thanks for any help....
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Winsock Syntax? (To Request A Website With The Winsock Control)
Ok, I don't know very much about Winsock and am just now starting to use it. I'm making an anonymity program that modifies referer and user agent data. I managed to find an example of how its done on planetsourcecode.com but there's a few things that aren't working.
Anyway, when this string is sent, it sends the headers and a request for index.html from the connected host (winsock1.connect domain.com 80).
GET index.html HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-comet, */*
Accept-Language: en
Accept-Encoding: gzip , deflate
Cache-Control: no-cache
Proxy-Connection: Keep-Alive
User-Agent: Whatever
Referer: www.whatever.com
But when I used the website http://ipid.shat.net/ as the domain to see if code mdified the headers or not, it directed me instead to just www.shat.net. How would a browser request information to ipid.shat.net?
Also, I noticed that by sending just that information, cookies don't work properly. What other tags do I have to add onto that for it to recieve my session information? Thanks a lot.
Winsock Disconnect Notification
Hi friends,
I am using winsock for sending file from client to server.
I was testing it on my LAN.
Client and server r running on different pc and connection is established.
But suppose i remove LAN connection network chord from client.
I m not getting any notification of disconnection, neither on client nor on
server and client keeps on sending data to the socket and completes it
whereas server keeps on listenning.
How and from where, i can get the notification, what are the window
messages or events for that.
pls. reply as soon as possible..
it's urgent.
Thanks in advance.
Regards,
sukh
Winsock Request
I have a Winsock component setup right now on my network, exact same as whats in this thread
I would like to know if a similar control can be built using Winsock to do this:
1) Connect to a remote computer, by IP address. (I have a code that determines the IP address of the remote machine already..)
2) Open a .txt file, send it back to (my) the users computer and displays it in a text box on screen.
3) On command button press, take what ever is in my text box, and send the file back to the remote computer and save it.
Kind of like editing a configuration file, remotly.
I know the application would have to be running on the remote end as well as my end for this to work, if its at all possible.
I would really like to do this, I appeciate everyones help in advance!
Winsock Example Request
I'm at work where I can't get to any help files for winsock. Can somebody give me a quick example of the code required to create a winsock instance, including telling it to listen and respont to internet requests? I'm going to attempt to make MS Access act like a simple server, and I just don't have the resources here to get it running. Thanks!
User Info Request
hello all
i'm relatively new to vb, and have been searching the net to see if i could get a piece of code that can basically read the amount of time a user has been logged on under windows XP and 2000.
I've looked around at quite a few sites, and have an idea that it needs to use the GetObject command, but from there im not sure what to do.
Any help would be appreciated.
Request In Cancelled By The User
Hello,
I'm printing a report, created in Crystal Reports 6.0 from VB6 application (Crystal Reports ActiveX control is used). Sometimes the users get an error 20545 ("request was cancelled by the user"). They do not click "Cancel" button, "Use default properties" option for the printer is set in the report, and default printer exists on the machine (it is a network printer). Can anybody suggest, what's wrong?
Thank you, Vlad.
Winsock HTTP Request Help
I need help with this, my wrapper uses winsock to send requests and the close event does not fire which makes the connection stay open forever, my wrapper is at the bottom it is a attachment
WinSock Request Accept
Hey,
I have been trying to get this code to work, It's most likely something stupid am doing, but i cant get my server program type thingie to accept the Request ID from the client program thingie... Here is the code to the part that it says is wrong (If you need anyother parts tell me an i'll post it)
Code:
Private Sub HostSocket_ConnectionRequest(ByVal requestID As Long)
'Show Request In Host Log
HMsg = "Connection request id " & requestID & " from " & HostSocket.RemoteHostIP
HostLog.AddItem (HMsg)
sRequestID = requestID
iSockets = iSockets + 1
ConNumber.Caption = iSockets
Load HostSocket(iSockets)
HostSocket.LocalPort = 1007
HostSocket.Accept requestID
End Sub
PS. I looked at an example to help me with this, so am not sure whats wrong.
Thx in advance.
Ali.
Can Winsock DLL Do Other Protocol Request ...
guys,
i find that the winsock OCX really is limited in its capability...
can anyone suggest me a better one for network programming? because the protocol type is limited to a few only....
I hope to do RTSP / RTP request ... is there any thing that i can used to do that ???
can Winsock Dll do other protocol request or its the total same with the winsock OCX?
Does anyone has a sample using winsock DLL (as client)...??
Multiple Request With Winsock
Greeting,
I have a little problem with winsock. I have a server and several
client. I want to transfer text from server to client trough the network
In this case, I using winsock to transfer the text. It is ok when only 2
computer connected (1 server and 1 client). But, when 3 computer
Connected (1 server and 2 client) I cant broadcast text to all client.
Does any body know how to broadcast text fom server to client trough the
network and winsock?
thanks
Rgds,
Rano Nugrah Agung Homan
Winsock Sample Request
Hi all,
I need to make a server app for my project. I have concluded that I will need to implement Winsock to do so. I have read up on all Winsock articles here (and many others elsewhere) and have downloaded and studied all the samples I could find.
However, I am unable to do what I want because:
- The tutorials say that the IP address or friendly name of the target computer MUST be specified for the Winsock control to connect on the other side. This strikes me as very backward, as I can not always know what IP addresses my customers' network stations will be running on and cannot also predict their friendly names. Does this have to be hard-coded?
- Try as I may, I cannot create a working sample of Server.Exe and Client.Exe to run on the same machine as I cannot afford the luxury of testing my code over two machines. Is there any way I can debug / test on one machine?
If any member proficient with Winsock (Laura Stephens and Jason Rogers come to mind) would like to help, I shall appreciate a small sample to get me started by solving the above two problems.
GoodGuy
Experience is a bad teacher for its exams precede its lessons.
Edited by - GoodGuy on 12/10/2007 10:23:30 PM
Winsock Array Connection Request
i made a post a couple days back gavino answered
im trying to make my multi chat program and well, it isnt goin by too well. for starters the client cant connect
Code:
Private Sub sckSocket_ConnectionRequest(Index As Integer, ByVal requestID As Long)
SockNum = SockNum + 1
Load sckSocket(SockNum)
sckSocket(SockNum).Listen
sckSocket(SockNum).Accept requestID
End Sub
is there sumthing wrong with that?
[VB6] Winsock POST Request Problem
I'm trying to connecto to google.com and translate a simple word (just to test if works).
And I have a problem when I'm sending POST request data, here is my code:
Code:
Private Sub Command1_Click()
Winsock1.Close
Winsock1.Connect "www.google.com", "80"
End Sub
Private Sub Winsock1_Connect()
Dim packet As String
Dim strpost As String
strpost = "hl=it&ie=UTF8&text=hello&sl=en&sl=en&tl=it&tl=it"
packet = "POST /translate_t HTTP/1.1" & vbCrLf
packet = packet & "Host: www.google.com" & vbCrLf
packet = packet & "Accept: */*" & vbCrLf
packet = packet & "Accept-Language: it,it-it;q=0.8,en;q=0.5,en-us;q=0.3" & vbCrLf & vbCrLf
packet = packet & "Content-Type: " & "application/x-www-form-urlencoded" & vbCrLf
packet = packet & "Content-Length: " & Len(strpost) & vbCrLf
packet = packet & strpost
Winsock1.SendData packet
Text1.Text = Text1.Text & packet
End Sub
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim data As String
Winsock1.GetData data
Text2.Text = Text2.Text & data & vbCrLf
End Sub
As you can see I want the GETDATA in Text2.Text but I recieve this error:
Code:
HTTP/1.1 411 Length Required
Date: Fri, 01 Aug 2008 13:57:24 GMT
Content-Type: text/html; charset=UTF-8
Server: GFE/1.3
Content-Length: 1357
{html code}
What's the problem?!
Thanks in advance.
WinSock Connection Request Error!
When I use this code for a winsock connection request:
Code:
Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
Winsock1.Accept requestID
txtRecive.Text = txtRecive.Text & vbCrLf & "ChatX: Connection Request Detected."
End Sub
I get runtime error 40020:
Invalid operation at current state
when I hit debug it highlights that code snippet up there! HELP
How To Launch A User Form From A Macro? - New (&& Different) Request
Thanks for the suggestions guys!!
I managed to get it to launch.
I have another problem however!
I am getting info from the user via text boxes on the forms but I need a date and for some reason, one text box brings me the result in a date format, the next one in a text format.
Do you have any suggestions?
Thanks
Sasm
Original Message:
>>I am looking to launch a User Form that would prompt the user >>to fill in similar data for a number of different records.
>>
>>However, I haven't been able to launch the form from within a >>macro. I would like to find the string required to do so.
>>
>>(I am planning to use a loop to launch the form for each record >>after using the data entered for the previous record)
>>
>>Has anyone got any suggestions?
>>
>>Thanks
>>Sasm
Winsock Server Connection Request Problem
hey, this is my code
Code:
Private Sub wskServer_ConnectionRequest(ByVal requestID As Long)
Dim msgboxResult
msgboxResult = MsgBox("A connect request has been initiated by: " & wskServer.RemoteHostIP & vbNewLine & "Would you like to accept it?", vbYesNo, "Connection Request")
If msgboxResult = vbYes Then
wskServer.Accept requestID
isServer = True
End If
End Sub
now the problem is, whenever i run it, and have a client try to connect to it, this is the error the server gives me on this line "wskServer.Accept requestID"
---------------------------
Project1
---------------------------
Run-time error '40020':
Invalid operation at current state
---------------------------
OK
---------------------------
can someone help?
EDIT: and yes, i did try:
wskServer.Close
wskServer.Accept requestID
but it doesn't work. if u need 2 see my whole code to know whats going on, just let me know
Winsock/cookie Request Entity Too Large...
hi i'm sending a cookie header via winsock but i think it's to large cause I'm receiving a "Request Entity Too Large" in the HTTP Response. is there a way around this?
Request For Help - How Can I Have A User Select A Database Location At Runtime?
I have a VB front end that is attached to an Access back end. The front end can be run on different computers, so the location of the database can change from computer to computer. When the app starts I would like a window to come up that prompts the user to select the location of the database. Instead of the user typing this in, I would like them to be able to click their way through a file directory.
I tried DirListBox, but this only lists the directories, not the files in them. I also checked this forum and saw that CommonDialog was reccommended. I added it, but it doesn't show when the app is run.
I have to think that this is simple, but I can't figure out how to do it. Can someone tell me how to get a graphical interface to select a file?
Thank you,
Steve Geller
Request A Password When User Selects From Combo List
I have a combobox on one of my forms which is conneted to a database. When you drop down the list it gives me employee names. What i want to achive is that when a employee selects his name from the list he must be prompted for a password, can this be done?
HELP: Winsock To Send HTTP POST REQUEST To A Machine
Hello,
I would like to use visual basic to send data to a machine using an HTTP Post request, and cannot decide on the best way to do it. Can I use winsock. Please bear in mind the following.
I am sending a mult-part message (kind of like an email with attachments). It's actually a multimedia message in the MM7 format -> this is similar to email, a multipart MIME message.
I MUST post to a destination using the following format:
http://192.168.3.75:2097/mm7
I need to then send the data which I've formated according to the MM7 spec.
I need to receive responses from the receving application.
Any help would be greatly appreciated.
Thanks
Ben
Make An App That Accepts Add-in's
Hi
I'm working on a project which has many functionalities. Although, my app will need to have more and more functionalities. I was thinking... can i make an app (like WinWord, Excel, VB6, etc...) that will accept add-in's?
I don't want to re-compile an entire project just because, for example, I had a new function to export data to file.
My questions are:
1st - Is it possible?
2nd - If so, how complex can it be?
3rd - What do I have to change in my Main App to accept the addin's?
4th - How do I make an add-in and "install" it on my app?
I hope this thread may be usefull to all comunity.
Thank you all.
FormField Accepts Only 255 Characters...what To Do Now?
Hey there,
I have a problem which I don't know how to solve. In my VB 6.0 programm I have a string which contains approx. 2300 characters and I need to transfer the content of this string to a FormField in a Word document. I can transfer strings unless they have more than 255 characters.
I'm using the following code to transfer the string:
DocumentObject.FormFields("Text").Result = string
I don't know what else I can do - I tried changing the settings of the FormField in my document, but that doesn't help. The length of the FormField is already set to unlimited....
Any suggestions? I'd be happy to hear from you!
Thanks,
whatever
Quiz App That Accepts More Than 1 Choice
Hi, i'm pretty new to VB and need help creating a Quiz application. I see a lot of quiz app that only accept 1 answer with the radial button, but i need a more advance one.
The quiz should be able to accept more than 1 choice using a checkbox. (example: a question with 2 or more answer)
also the questions and answers are in .txt. If you think using a database is more suitable. i wouldn't mind it either,but i prefer it being in .txt.
I desperately need your help. thanx!
if you also know of a good book on VB in building application like this. Please recommend it to me. Thanx.
Creating A DLL That Accepts Parameters
Hello all,
I need to take some functions out of programs that I have written and compile them as DLL's to be plugged into a larger program. The other program will be sending parameters to my DLL functions, so I need them to be able to accept parameters.
I've never done this before, I suppose I need to start a new project, select new activex dll, but I don't know how to go about declaring the function so that it can accept outside parameters.
Can anyone give me a sample in code of say a function that accepts a string and a long and displays them in a message box? That should be enough to get me started, if anyone could tell me how I return a call to the program that called my funtion that would be helpful too...
Thanks,
Sean
AND Function Only Accepts Integer Values
If I use the AND function I can only input Integer values.
Example:
if I use
Code:
123456789 AND 128
it works...
but if I expand the first value with one character(not an integer anymore) like this:
Code:
1234567890 AND 128
I get a runtime error, an overflow to more precisely.
Is the any way to put a LONG value into this function? If Yes.... How?
Tnx in advance
Edit Control Which Accepts Only IPaddress
Hi All,
For our VB application we are having a edit control.
The user have to enter only the IPAddress in that edit ctrl.
The values that the ctrl should allow is [0-255].[0-255].[0-255].[0-255]
please help me in creating the edit control in VB.
Thanks in Advance!!
Best Regards,
Prakash
A True Function That Accepts A Control As A Parameter?
Hi there! On my form, there's 5 label controls.
There's also a command button.
When this command button is clicked, I wanna change the caption of the labels.
Although there's easier ways, the way I'm really for is functions. That is, calling functions to do the job for me.
The thing is : how do I write a function that has a control's name as the parameter?(argument)
In Visual C++, the code would be something like :
void CMyDlg::ChangeLabelText(CLabel label_to_change, CString strDesiredText)
Is there an equivalent in VB, whereby we can write function parameters(arguments) that accepts the name of the control to change?
Something like :
private Sub ChangeLabelText(ControlToChange as ?)
shapeVertYellowLight.FillColor = RGB(255, 255, 0)
End Sub
Please help! Thanks a lot! :-)
Dinosaur of the moment : Brachiosaurus(my favourite....that great THING in the main hall of the Humboldt Museum in Berlin, Germany)
New Winsock User Needs Assistance
I've recently started using the Winsock control in a small client/server application, but I've come across a small problem.
The client needs a value (the head of a linked list), which is stored in a text file on the server. To retrieve it, it calls the subroutine 'GetHead', which has a parameter 'Head', through which the value will be passed back to the client. GetHead makes the request to the server to send the value, which the server does correctly (using the TCP protocol). However, the value arrives in the DataArrival subroutine, and I can't see a way of a) getting GetHead to wait for the value to arrive, and b)passing the value from DataArrival to GetHead. I think it has something to do with call-back functions, but so far MSDN has remained vague. Any solutions or responses would be greatly appreciated.
edit: hm, seems to have been posted in General . No matter - not such of a networking question as a general question...
User Removal (winsock)
Hi everyone,
I have being writing a IM chat program, i have a problem with removing clients from the user list when they log out. Here is the code i have being playin with,
Code:
If Number = "3" Then
i = TcpServer(Index)
lstIP.RemoveItem TcpServer(i)
End If
Winsock Connection Prob: "Request To Connection Time Out".
Hi All,
I am developing chat application like Yahoo and MSN messenger. Also i have almost completed it. I have two applications one is server appliation which will be run on chat server machine. the other is client appliation which will be used at any corner of the world.
Its working fine on my network. Ya, it is also working fine over network but with some misbehaviour. Sometimesm, it allow someone to login and sometimes it doesn't and gives "Request to connection time out" error.. I can't find the reason y it is happening.
I have developed this in visual basic and used winsock control.
How To Kick A User From A WinSock Server
For my new program "Whirlpool Talk", I want to make it so the server admin can select a connected user from a listbox and click "Kick" to disconnect them from the server.
Is this possible?
--PS: I already have the listbox set up to show users connected, I just want to know how to kick.
Using Winsock In A Multi-user Environment.
I've got a fairly simple form with a "Send" button that sends the text in the form to a dedicated E-mail address via a Winsock control. The intent is to have this form on the desktop of several users on an NT server.
My question:
Is there any potential problems with more than one user trying to send data via Winsock at the same time?
Thanks,
Al.
------------------
A computer is a tool, not a toy.
<A HREF="mailto:asmith3914@aol.com
asmith@spxateg.com">asmith3914@aol.com
asmith@spxateg.com</A>
User Defined Types && Winsock
Could someone please provide some advice. I would really like to be able to send some encrypted user defined types through winsock for a client-server application.
Need to know if this is possible, how to encrypt and send/receive types. I can send/recieve strings with no problem. Can't seem to figure out how to send types though.
Thank you.
Trouble Setting User ID As Index For Winsock
well I am trying to set an ID in the user database and make the ID the users connections Index. I cant realy explain the problem that greta so I'll send the code over. Theres a problem in the Connection Request and the AddNewUser in UserDB mod i believe.
Winsock Server Multi-User Question
I'm have a basic question on the Sock_DataArrival. When the data comes in, I have to pass the incoming SQL request to the DB connection, reformat the returned data, then push it back out to the connection (sock(x)) making the request. The process works fine, but now that I have 5 connections bashing the server, it appears that the requests are stepping on each other. Some of the requests can be extremely large, up to 5000 records, however most are short but frequent. I'm thinking of creating an array of timers, then passing each request to the appropriate timer for processing since each connection will wait until I send a reply....help!
Private Sub Sock_DataArrival(Index As Integer, ByVal bytesTotal As Long)
Sock(Index).GetData strDataIn
SockData(Index) = SockData(Index) & strDataIn
If InStr(SockData(Index), "~") Then 'end of message character
'**** Process The SQL Request,
'**** this gets data from the DB
'**** connection, reformats the data,
'**** then sends it out.
Sock(Index).SendData strReply
SockData(Index)= ""
strReply = ""
End If
End Sub
HTTP Winsock Overlay (user Control) -- Help
I'm attempting to code a winsock usercontrol overlay to retreive HTML content from the web. The 'Data Arrival' event on the winsock is not firing and I"m not sure why. My program connects to the server and I send a valid HTTP request upon connection. I've been staring at this code for a long while now and can't seem to figure it out so hopefully you guys will see what is obviously causing the problem ...
Here is the code:
Code:
Private mHeaderString As String
Private mHeader As String
Private mURL As String
Private mHost As String
Private mLocation As String
Private mUserAgent As String
Private sHTML As String
Private mPort As Integer
Public Event Error(ErrDesc As String, ErrNumber As Long, ExtraData As String)
Public Event DataComplete(sData As String)
Private Sub Usercontrol_Initialize()
mHeaderString = "GET HOSTLOCATION HTTP/1.0" & Chr(13) & Chr(10) & _
"Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-comet, */*" & Chr(13) & Chr(10) & _
"Accept-Language: en" & Chr(13) & Chr(10) & _
"Accept-Encoding: gzip , deflate" & Chr(13) & Chr(10) & _
"Cache-Control: no-cache" & Chr(13) & Chr(10) & _
"Proxy-Connection: Keep-Alive" & Chr(13) & Chr(10) & _
"User-Agent: USERAGENT" & Chr(13) & Chr(10) & _
"Host: HOSTADDRESS" & Chr(13) & Chr(10)
mPort = 80
End Sub
Public Property Let UserAgent(val As String)
mUserAgent = val
End Property
Public Property Get UserAgent() As String
UserAgent = mUserAgent
End Property
Public Property Let Port(val As Integer)
mPort = val
End Property
Public Property Get Port() As Integer
Port = mPort
End Property
Public Property Let URL(val As String)
mURL = val
Call ParseURL
End Property
Public Property Get URL() As String
URL = mURL
End Property
Private Sub ParseURL()
Dim sTemp As String
Dim lStartPos As Long
Dim lEndPos As Long
sTemp = mURL
sTemp = Replace(sTemp, "", "/") 'replace slashes
sTemp = Replace(LCase(sTemp), "http://", "") 'remove http
lStartPos = InStr(sTemp, "/")
If lStartPos > 0 Then
mHost = Left(sTemp, lStartPos - 1)
mLocation = Right(sTemp, Len(sTemp) - lStartPos + 1)
Else
mLocation = "/"
mHost = mURL
End If
End Sub
Private Sub WS_HTTP_Close()
WS_HTTP.Close
MsgBox "Close"
RaiseEvent DataComplete(mHTML)
End Sub
Private Sub WS_HTTP_Connect()
WS_HTTP.SendData mHeader
Debug.Print mHeader
End Sub
Private Sub WS_HTTP_DataArrival(ByVal bytesTotal As Long)
MsgBox "DATA"
Dim sTemp As String
WS_HTTP.GetData sTemp, vbString
mHTML = mHTML & sTemp
Debug.Print sTemp
End Sub
Public Function GetData()
If Not ValidURL Then
RaiseError "Invalid URL", 1, "The URL given is invalid."
Exit Function
End If
mHTML = ""
mHeader = mHeaderString
mHeader = Replace(mHeader, "HOSTADDRESS", mHost) 'Fill in Host Address
mHeader = Replace(mHeader, "HOSTLOCATION", mLocation) 'Fill in Host Location
mHeader = Replace(mHeader, "USERAGENT", mUserAgent) 'Fill in User Agent
MsgBox mHost & " " & mPort & " " & mLocation
WS_HTTP.Connect mHost, mPort
End Function
Private Function ValidURL() As Boolean
ValidURL = True
'''
End Function
Private Sub RaiseError(Optional ErrDesc As String = "", Optional ErrNumber As Long = 0, Optional ExtraData As String = "")
End Sub
Private Sub WS_HTTP_Error(ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
MsgBox "ErrNumber: " & Number & vbCrLf & _
"Description " & Description & vbCrLf & _
"Scode : " & Scode & vbCrLf & _
"Source : & Source"
End Sub
I've also attached the test project:
Why The Need For A User Control Encapsulating Winsock Controls ?
This is an app i downloaded form PSC, just trying to understand how it works. Its a P2P file sending app.
Well it has 2 user controls, receiver and sender both user controls have 2 winsock controls on them and both user control are placed on the main form with the receiver set to listen.
I dont understand the concept here, you could have all needed winsocks on the main form with the code in the main or split between the main and a module, whats the benefit of the user control ?
Winsock Mail USER Command Error
Check the thread out over here:
http://www.vbforums.com/showthread.p...17#post1578417
I added a delay loop in the after the line of code like this:
VB Code:
winsock1.connect
In the USER function I am now not getting the control to exit from the delay loop after sending the USER command. Any pointers ??
Winsock Control In Multi-user Environment
hi, I want to write a server program with able to handle mult-user request, I got the code from searching this forum which suggest like:
Code:
Private Sub ConnectionRequest(Index as Integer,requestID as Long)
If Index = 0 Then
maxConnections = maxConnections + 1
Load WSock(maxConnections)
WSock(maxConnections).LocalPort = 0
WSock(maxConnections).Accept requestID
End If
End Sub
However, I worry that as this will create array of control which number is become biger and biger, e.g. if I inital have three client request, then it will create three control to server, but after the request is complete, I could close the WinSock connection, however, they still in memory. Later if 4 more connection request, even the first three control is idle, I can't reuse it, the maxConnections will then equal to 7.
If I using the above approach to write the server program, when it run for a long time, will it run out of memory due to creating such a large number of control??
Also, any suggestion to solve this??
Thank!
Creating A Multi-user Chatroom Using Winsock
OK, firstly I need someone to point me to a book that teaches you everything u need to know about Winsock.
Next I trying to create a multi-user chat facility for my web site, but I don't know how create the 'multi-user' part. How can I create a multi-connection on a Winsock?
Please help me!
|