Results 1 to 9 of 9

Thread: Help, Sockets

  1. #1

    Thread Starter
    Frenzied Member Inuyasha1782's Avatar
    Join Date
    May 2005
    Location
    California, USA
    Posts
    1,035

    Help, Sockets

    Im not really all that good with winsockets, etc. This was more of a copy and paste kind of thing. Well anyways I cant figure out exactly what is wrong with this part of my coding. Here is part that is having trouble:

    Code:
    Private Sub tmrCONN_Timer()
    If WS.State <> 7 Then ' 7 = connected
    WS.Close
    WS.Listen
    End If
    
    End Sub
    This is the returning error:
    Run-time error '10044':
    Socket Type not supported in this address family

    Truly I dont know what this means. I have a slight idea that it has do something the mabye the winsock component, but not sure. Can anyone help me fix this?

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Help, Sockets

    You may not have an NIC/LAN Card.....
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3
    Fanatic Member
    Join Date
    Jan 2005
    Location
    In front of this pc.
    Posts
    580

    Re: Help, Sockets

    You're attempting to create one type of socket and then use it in another manner. The attached demo project (I lifted it somewhere myself) should help - I know it did me - you find the the "Address Family", "Socket Type" and "Protocol" combinations you need.
    Attached Files Attached Files

  4. #4

    Thread Starter
    Frenzied Member Inuyasha1782's Avatar
    Join Date
    May 2005
    Location
    California, USA
    Posts
    1,035

    Re: Help, Sockets

    So, what exactly do I need in this project?

  5. #5

    Thread Starter
    Frenzied Member Inuyasha1782's Avatar
    Join Date
    May 2005
    Location
    California, USA
    Posts
    1,035

    Re: Help, Sockets

    *cough*

  6. #6
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Help, Sockets

    2 things....

    Please use the network forum for such questions (Moved now)

    Secondly, can you post your app? I'll be able to fix it up. if you are new to qinsock and wish to learn from the begining see the link in my sig (Basic chat application)

    Pino

  7. #7

    Thread Starter
    Frenzied Member Inuyasha1782's Avatar
    Join Date
    May 2005
    Location
    California, USA
    Posts
    1,035

    Re: Help, Sockets

    Well the whole applocation was just a test project, learning some of the stuff usin Winsock. The file attached is the whole program, you can look at it and see what might be the problem, because I have no idea. Ill look into the info on your sig though.
    Attached Files Attached Files
    Last edited by Inuyasha1782; May 30th, 2005 at 07:10 PM.

  8. #8
    Fanatic Member Nove's Avatar
    Join Date
    Jul 2004
    Posts
    736

    Re: Help, Sockets

    A little pointer, you need to include the form files and modules with your attachment, otherwise there's really no project.

  9. #9

    Thread Starter
    Frenzied Member Inuyasha1782's Avatar
    Join Date
    May 2005
    Location
    California, USA
    Posts
    1,035

    Re: Help, Sockets

    Sorry about that put the wrong file. *Edited* Includes everything needed to view the project.

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