Results 1 to 40 of 163

Thread: [RESOLVED] [2008] Can I add a TCPClient Component

Hybrid View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2007
    Posts
    167

    Re: [2008] Can I add a TCPClient Component

    Excelent!
    So now, each time a new client connects to my server, its username will be added to the listbox lbClients
    How to send a msg to a specific Client (the one which is selected in the list box?)

    thanks

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: [2008] Can I add a TCPClient Component

    Quote Originally Posted by perito
    Excelent!
    So now, each time a new client connects to my server, its username will be added to the listbox lbClients
    How to send a msg to a specific Client (the one which is selected in the list box?)

    thanks
    You retrieve the selected username by using the SelectedItem property of the listbox (it returns an Object so it needs to be converted to a string).
    You use the GetClientByName function to get the ConnectedClient instance connected to the username. Once you have it, call its SendMessage method.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

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