Results 1 to 8 of 8

Thread: listening to AIM

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Posts
    255

    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:
    1. Public Sub Form_Load()
    2.     sckAIM.LocalPort = 5190
    3.     sckAIM.Bind
    4.     sckAIM.Listen
    5. End Sub
    6.  
    7. Public Sub sckAIM_DataArrival(ByVal bytesTotal As Long)
    8.     Dim strTemp As String
    9.     sckAIM.GetData strTemp, vbString
    10.     ParseAIM strTemp
    11. End Sub
    nothing happens tho..

  2. #2
    Addicted Member imbue's Avatar
    Join Date
    Aug 2002
    Location
    Midwest USA
    Posts
    155
    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

  3. #3
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217

    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:
    1. Public Sub Form_Load()
    2.     sckAIM.LocalPort = 5190
    3.     sckAIM.Bind
    4.     sckAIM.Listen
    5. End Sub
    6.  
    7. Public Sub sckAIM_DataArrival(ByVal bytesTotal As Long)
    8.     Dim strTemp As String
    9.     sckAIM.GetData strTemp, vbString
    10.     ParseAIM strTemp
    11. 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 .

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Posts
    255
    hah..i forgot 2 look at it
    its tcp :\

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Posts
    255
    *bump*

  6. #6
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    ??????

    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 .

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Posts
    255
    im not sure how i have to change the code..ive never worked with TCP before..just UDP :|

  8. #8
    Addicted Member imbue's Avatar
    Join Date
    Aug 2002
    Location
    Midwest USA
    Posts
    155
    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
  •  



Click Here to Expand Forum to Full Width