[Mono-list] Hello

Terry thenn@sbcglobal.net
Sat, 24 May 2003 21:51:17 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_001C_01C3223E.9AA335D0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hello all,

I just thought I'd introduce myself to the list before asking questions.
I'm a software developer by profession and I work on a free game server tool
in my spare time.  After adding a server-side portion to my app, I got
several requests for Linux support and I started looking at C/C++ and C# as
an option.  A co-worker told me about Mono and I started working with the
0.23 release.  Great job!  I'm very impressed with the progress so far -
it's a huge thrill for me to take a binary and watch it work on both Windows
and Linux.  I'm very excited about the future!

It's a simple TCP server that allows admins to have remote access to their
game consoles.  So far, it's working pretty well, but I've come across a
couple things that, as far as I can tell, should be operational, but isn't
working for me.

I just installed 0.24 on RH8 without garbage collection.  The "make" failed
with an invalid "-lgc" option (problem with configure?).  I've run into two
problems with TcpListener and FileSystemWatcher....

[Newbie flame suit on]
I have a thread that calls "TcpListener.AcceptSocket()" and keeps looping
handling the new connection requests.  This works great.  However, when I go
to shut down, I call "TcpListener.Stop()" from a different thread and then
"Join" to wait for the server thread to exit.  It never exists because the
server thread is still blocking on the "AcceptSocket()" call.  Shouldn't
calling "Stop" interrupt the "AcceptSocket()" call?  Or is that an invalid
assumption?

Also, I want to use FileSystemWatcher to watch for changes to my cfg files,
but after setting things up, it appears that after making changes to files
in the watched directory, the changed event never fires.  It does work on
Windows, however.  I do not get an exception - nothing happens.  I'm using
the "FileSystemWatcher/FileSystemEventHandler" method rather than the
"WaitForChanged" method (I see that's not implemented yet :-).
[Newbie flame suit off]

I can post code if it's relevant...

Thanks,
Terry

------=_NextPart_000_001C_01C3223E.9AA335D0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial size=3D2>Hello=20
all,</FONT></SPAN></DIV>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial size=3D2>I just =
thought I'd=20
introduce myself to the list before asking questions.&nbsp; I'm a =
software=20
developer by profession and I work on a free game server tool in my =
spare=20
time.&nbsp; After adding a server-side portion to my app, I got several =
requests=20
for Linux support and I started looking at C/C++ and C# as an =
option.&nbsp; A=20
co-worker told me about Mono and I started working with the 0.23 =
release.&nbsp;=20
Great job!&nbsp; I'm very impressed with the progress so far - it's a =
huge=20
thrill for me to take a binary and watch it work on both Windows and=20
Linux.&nbsp; I'm very excited about the future!</FONT></SPAN></DIV>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial size=3D2>It's a =
simple TCP=20
server that allows admins to have remote access to their game =
consoles.&nbsp; So=20
far, it's working pretty well, but I've come across a couple things =
that, as far=20
as I can tell, should be operational, but isn't working for me.&nbsp;=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial size=3D2>I just =
installed=20
0.24 on RH8 without garbage collection.&nbsp; The "make" failed with an =
invalid=20
"-lgc" option (problem with configure?).&nbsp; I've run into two =
problems with=20
TcpListener and FileSystemWatcher....</FONT></SPAN></DIV>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial =
size=3D2>[Newbie flame suit=20
on]</FONT></SPAN></DIV>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial size=3D2>I have =
a thread that=20
calls "TcpListener.AcceptSocket()" and keeps looping handling the new =
connection=20
requests.&nbsp; This works great.&nbsp; However, when I go to shut down, =
I call=20
"TcpListener.Stop()" from a different thread and then "Join" to wait for =
the=20
server thread to exit.&nbsp; It never exists because the server thread =
is still=20
blocking on the "AcceptSocket()" call.&nbsp; Shouldn't calling "Stop" =
interrupt=20
the "AcceptSocket()" call?&nbsp; Or is that an invalid=20
assumption?</FONT></SPAN></DIV>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial size=3D2>Also, =
I want to use=20
FileSystemWatcher to watch for changes to my cfg files, but after =
setting things=20
up, it appears that after making changes to files in the watched =
directory, the=20
changed event never fires.&nbsp; It does work on Windows, however.&nbsp; =
I do=20
not get an exception - nothing happens.&nbsp; I'm using the=20
"FileSystemWatcher/<FONT size=3D2>FileSystemEventHandler" method rather =
than the=20
"WaitForChanged" method (I see that's not implemented yet=20
:-).</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial =
size=3D2>[Newbie flame suit=20
off]</FONT></SPAN></DIV>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial size=3D2>I can =
post code if=20
it's relevant...</FONT></SPAN></DIV>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial=20
size=3D2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=3D625372302-25052003><FONT face=3DArial=20
size=3D2>Terry</FONT></SPAN></DIV></BODY></HTML>

------=_NextPart_000_001C_01C3223E.9AA335D0--