Lidgren with Windows.Forms ?

39 views
Skip to first unread message

Llorenç Marti

unread,
Apr 27, 2010, 6:38:10 AM4/27/10
to lidgren-network
Hi all

Anyone can point me or give me some tips on making a Windows.Forms
applications with Lidgren Network Lib ?

I am developing a server with Lidgren. This server is growing every
day, and i feel that 'console output' its not enough to see all the
information in a correct way for the human eye.

I feel litle stuck with Windows.Forms, because i dont know where to
put the main loop to read messages. If anyone have some links/tips/
help on this topic, it will be very apreciated :)

Thanks for your time and help.

LLORENS

--
You received this message because you are subscribed to the Google Groups "lidgren-network" group.
To post to this group, send email to lidgren...@googlegroups.com.
To unsubscribe from this group, send email to lidgren-netwo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lidgren-network?hl=en.

Poz

unread,
Apr 27, 2010, 7:00:24 AM4/27/10
to lidgren...@googlegroups.com
You could always just a timer control to call your server function.

2010/4/27 Llorenç Marti <arka...@gmail.com>



--
poseid...@gmail.com

lidgren

unread,
Apr 27, 2010, 7:25:13 AM4/27/10
to lidgren-network
Check out the ImageServer sample that comes with the library; it hooks
Application.Idle and uses an interop call to see if the windows
message pump is still empty. It´s a pretty efficient way which keeps
the application responsive without consuming too much resources (I
usually Thread.Sleep(0) at the end of the loop)

--michael

ArKangeL ArK

unread,
Apr 27, 2010, 7:34:15 AM4/27/10
to lidgren...@googlegroups.com

Thank you very much, i will study this to make a simple application with Lidgren integrated :)

Thanks :)
Reply all
Reply to author
Forward
0 new messages