Recent

Author Topic: LNET connection and send  (Read 3761 times)

johnctba

  • Newbie
  • Posts: 1
LNET connection and send
« on: September 01, 2011, 04:21:11 pm »
Hello everyone,

I trying connect from a client application on a server application using LTCP from LNET, I can do that....my doubt is:

In the event onClick of a button, if I try to Connect and SendMessage doesn't work.....but if I have a button with Connect and another button with SendMessage work perfectly.

So, can I connect and send a message in the same event of a button? If yes, how can I do that?

Thanks 

Almindor

  • Sr. Member
  • ****
  • Posts: 412
    • http://www.astarot.tk
Re: LNET connection and send
« Reply #1 on: September 02, 2011, 09:08:21 am »
No, you cannot connect and send at the same time, because .Connect only initializes connection.

You need to wait for the OnConnect event and do the Send there :)

 

TinyPortal © 2005-2018