English 中文(简体)
A. 与申请连接有关的问题
原标题:Problem with socket connection request
  • 时间:2011-03-31 14:46:01
  •  标签:
  • sockets
  • vb6

我正在把一份袖珍文函电传给一个积极的东西。

该表标的是从客户申请中产生的,并将向客户提供活动通知。

When ConnectionRequest event raised,the connection is accepted and the client will be notified through CONNECTED (defined in socket object) event. Everything is working upto this point but ConnectionRequest is again being raised WITH SAME RequestId after the previous connection is accepted through Accept method.

When i am trying to close the socket and reaceept the request,a run time error is generated saying "Run-time Error 10038 ,the Descriptor Is Not A Socket" !

是否有任何人面临这一问题? 请建议进行一些工作。

Thanks in advance.

PS:I am using TCP Protocol.

最佳回答

I m pretty sure the requestID value is a socket descriptor for the socket in listening state, so it makes sense that it doesn t vary when you have just one listener (which is most common).

这些都是程序性的,因此,你可以在有意义的进程之间传递。 要做到这一点,你可能必须打电话。 WSADuplicateSocket( function. 我从未尝试过这一点,因此,你可能会尝试试验——但我认为,当“联系”请求书手在不接受温斯克控制请求的情况下离开时,你会拒绝。

问题回答

暂无回答




相关问题
Prevent windows from queuing shellexecute requests

Win.ShellExecute 0, "open", "C:dirprogram.exe", "arguments", vbNullString, SW_SHOWNORMAL Win.ShellExecute 0, "open", "http://www.google.com", vbNullString, vbNullString, SW_SHOWNORMAL I want google....

Why is My Loop Only Deleting One File?

Using VB6 In a folder, i have n number of files, i want to delete a 0 kb files code Dim filename5 As String filename5 = Dir$(txtsourcedatabasefile & "*_*", vbDirectory) MsgBox filename5 Do ...

How to check the filesize?

Using VB6 I have the text file with different sizes, so i want to delete the file where filesize = 0 kb. How to make a vb6 code for deleting the 0 kb files. Need vb6 code Help

File Rename problem?

I m using VB6 and I have a folder where I have n number of files. I want to change the file extension to .txt. I used the code below to change the extension of all .fin files to .txt. Dim filename1 ...

Error 20728-F while in using Crystal Reports in VB6

I m using Crystal Reports in my VB6 project, but I m facing error while loading the report in crystalreport1.action=1; Please give me some solution for this problem. It is showing the error as Error ...

DllRegisterServer entry point was not found

When running my vb6 application I am getting error like, runtime error 53 : file not found: rscomclNoMsg.dll then i tried to register that dll from cmd line using regsvr32. Then I am getting ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8

热门标签