CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 1999
    Posts
    4

    Sending Message through UDP/TCP Protocol





    I am developing a chat room . What I am trying to find out is that whether it is possible to send a message from one user to another indicating that someone is trying to connect him for a chat. The message will be send before the connection and only if the other user acknowledges only then the connection will be established.


    If you have the solution please reply back ,


    Subhojit

  2. #2
    Join Date
    Jun 1999
    Posts
    22

    Re: Sending Message through UDP/TCP Protocol

    Dear,

    U can use "WINSOCK" ActiveX control. It is having a lot of methods.

    1. U use two WINSOCK active X controls. One for Server and another for Client.

    You keep the Server control in Listen mode.

    WINSOCK1.REMOTEHOSTIP = 200.1.1.1
    WINSOCK1.Listen = TRUE

    2. In Client control
    U use WINSOCK2.Connect.

    U better see the VB HELP online and search for WINSOCK example. There is a very good example on this. If U still have some problem. U can contact me at address [email protected].

    Ravi Sangisetti
    Sr.Software Engineer
    Contech India Ltd
    Gandinagar, India

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

Featured