Results 1 to 6 of 6

Thread: [Winsock] send & recv

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Posts
    566

    [Winsock] send & recv

    Is it possible to send a text message with the API send? and receive the sent text message with recv on the server/client?

    Like:
    VB Code:
    1. send lSocket, "howdy", Len("howdy"), flags ' probably wrong but thats why Im here :)
    Possible?

    Any examples you recommend seeing?

    (I've checked vbip/winsockvb/allapi but none really have good examples of it)

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: [Winsock] send & recv

    The only example I can find is about downloading a file, which I guess doesn't help much... Is there a problem using the winsock control?


    Has someone helped you? Then you can Rate their helpful post.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Posts
    566

    Re: [Winsock] send & recv

    I can't ues the Winsock Control because my project is DLL. It errors "Out of Memory" when I use control. Thus why I want send/recv API's to send Text messages.

  4. #4
    Lively Member
    Join Date
    May 2005
    Posts
    90

    Re: [Winsock] send & recv

    If you are familiar with Sockets (such as the Winsock OCX), search google for "VB6 CSocket" - csocket is a GREAT all-API class + module that you can use as a socket, it works FAR better than winsock, doesn't eat memory like crazy. I have a control to "encapsulate" it so it's more like winsock - just email [email protected]

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Posts
    566

    Re: [Winsock] send & recv

    I've tried using CSocket before but I couldn't get it to send and receive data properly. I've also tried using Wokawidget's "vbWinsck" in his Component Suite but it errors "Failed to initialize blah blah". I was told it errors that because Winsock needs to create a window and it can't in a DLL. So I was then instructed to use the API's send and recv.

    I emailed you, MalcolmCarmen.

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

    Re: [Winsock] send & recv

    If you are still having problems look at this project - http://vbforums.com/attachment.php?attachmentid=37051

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