Results 1 to 1 of 1

Thread: send message to receiver through server!!

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Posts
    840

    Resolved send message to receiver through server!!

    i'm doing a chat system.....all the client will connect to server and server side will have a winsock to listen all the connection.....assume that server now all listening 5 connection......client A want send message to Client B and message will send to server before send to destination......my question is server side how to take the message and send to client B(assume that client using another winsock for receive message)???

    this logic, i couldnt understand...but i got idea like this

    private sub winsock_dataArrival()
    dim message as string

    winsock.getData message
    'assume that i got the client IP address
    winsocksend.remoteIP = "192.168.1.1"
    winsocksend.remotePort = 1111
    winsocksend.connect

    winsocksend.sendData(message)

    end sub

    can this idea work????
    Last edited by kenny_oh; Oct 28th, 2005 at 12:29 PM.

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