|
-
Dec 20th, 2003, 10:19 PM
#1
Thread Starter
Addicted Member
listening to AIM
searched:no finds
what im trying to do (basically) is just bind a sock to port 5190, and listen for incoming AIM chat...from an im not a room..
my code is:
VB Code:
Public Sub Form_Load()
sckAIM.LocalPort = 5190
sckAIM.Bind
sckAIM.Listen
End Sub
Public Sub sckAIM_DataArrival(ByVal bytesTotal As Long)
Dim strTemp As String
sckAIM.GetData strTemp, vbString
ParseAIM strTemp
End Sub
nothing happens tho..
-
Dec 20th, 2003, 11:18 PM
#2
Addicted Member
You're not accepting the connection. Try adding something like:
Private Sub sckAIM_ConnectionRequest(ByVal requestID As Long)
sckAIM.Close
sckAIM.Accept requestID
End Sub
-
Dec 20th, 2003, 11:53 PM
#3
The picture isn't missing
Re: listening to AIM
well i think it is UDP, which doesn't need to accept.
Originally posted by R.a.B.B.i.T
searched:no finds
what im trying to do (basically) is just bind a sock to port 5190, and listen for incoming AIM chat...from an im not a room..
my code is:
VB Code:
Public Sub Form_Load()
sckAIM.LocalPort = 5190
sckAIM.Bind
sckAIM.Listen
End Sub
Public Sub sckAIM_DataArrival(ByVal bytesTotal As Long)
Dim strTemp As String
sckAIM.GetData strTemp, vbString
ParseAIM strTemp
End Sub
nothing happens tho..
Are you sure that it is sent by UDP though?
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Dec 21st, 2003, 01:44 AM
#4
Thread Starter
Addicted Member
hah..i forgot 2 look at it
its tcp :\
-
Dec 21st, 2003, 10:07 AM
#5
Thread Starter
Addicted Member
-
Dec 21st, 2003, 05:27 PM
#6
The picture isn't missing
??????
so did you change it to TCP and change the code to reflect that?
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Dec 21st, 2003, 08:09 PM
#7
Thread Starter
Addicted Member
im not sure how i have to change the code..ive never worked with TCP before..just UDP :|
-
Dec 21st, 2003, 08:20 PM
#8
Addicted Member
Sorry for not posting. I thought you had the problem solved. Anyway, to use TCP you will need to add the code I posted above. You will also need to make sure that sckAIM.Protocol = 0
TCP also has some other concepts that UDP doesn't, but that should get you started. There are plenty of tutorials online for this too, so I suggest you do a search for more info.
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
|