Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
OstroSoft Winsock Component
 OstroSoft Forums : OstroSoft Winsock Component
Subject Topic: Programming Winsock Control port 6667 Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Safiria
Newbie
Newbie
Avatar

Joined: 27 December 2008
Location: Netherlands
Online Status: Offline
Posts: 3
Posted: 27 December 2008 at 2:28pm | IP Logged Quote Safiria

Hi all,

Either i'm doing something wrong, or there is something wrong with the component on my VB4-32. I'm trying to program a IRC Chat Server. The socket listens on port 6667, that is no problem, but when I get mIRC to connect on it, it stays connected causing my application to crash.

The code is below:

Private Sub Winsock2_OnConnectionRequest(ByVal requestID As Long)
Dim newsocket As Long
Winsock2.Accept requestID
TCP1.Connected = True
Form1.list1.AddItem "Activity on IRC Server detected..."

End Sub

Private Sub Winsock2_OnConnect()
Winsock2.SendData "127.0.0.1 NOTICE AUTH :*** Looking up your hostname" & vbCrLf & vbCrLf


End Sub

Private Sub Winsock2_OnDataArrival(ByVal bytesTotal As Long)
Dim sBuffer As String
Winsock2.GetData sBuffer

End Sub

Why does it crash???

Safiria

Back to Top View Safiria's Profile Search for other posts by Safiria
 
igor
Admin Group
Admin Group


Joined: 20 July 2005
Location: United States
Online Status: Offline
Posts: 252
Posted: 28 December 2008 at 2:20pm | IP Logged Quote igor

It's really hard to tell what the problem is. I haven't touched VB4 for about 10 years and Winsock Component is written in VB6.
I would expect some incompatibilities there. Specially, since Microsoft dropped support for VB4 long ago.

Back to Top View igor's Profile Search for other posts by igor Visit igor's Homepage
 
Safiria
Newbie
Newbie
Avatar

Joined: 27 December 2008
Location: Netherlands
Online Status: Offline
Posts: 3
Posted: 28 December 2008 at 2:29pm | IP Logged Quote Safiria

Issue is, telnet server seems to run fine, except when you disconnect from it. But when mIRC connects to the 6667 port of the server, it crashes almost at once with a access violation error.
Back to Top View Safiria's Profile Search for other posts by Safiria
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.92
Copyright ©2001-2004 Web Wiz Guide