View previous topic :: View next topic |
Author |
Message |
tyfon
Joined: 29 Apr 2004 Posts: 4
|
Posted: Wed May 05, 2004 3:27 am Post subject: Socket and stuff |
|
|
Shutdown is just something i allways do when i have a socket i want to close :p. The reuseaddress is as you say to make it not "crash" when you ctrl+c the server and start it again.
Also, i miss a function for atexit() in C, in case the server segfaults to do the same stuff.
I will look into the diffrent issues you have raised later today (first day off work for some weeks now
I have a problem though, i tried to make a recursive makefil thing, but the import "blabla.blabla" wants to import that from blabla/blabla.d, .. maybe it can be fixed very fast with a -I option or something, but atm it had problems when compiling the files from same directory as they are in.
No biggie _________________ --
Ãyvind Jægtnes |
|
Back to top |
|
|
kris
Joined: 27 Mar 2004 Posts: 1494 Location: South Pacific
|
Posted: Thu May 20, 2004 9:37 am Post subject: Re: Socket and stuff |
|
|
tyfon wrote: | I have a problem though, i tried to make a recursive makefil thing, but the import "blabla.blabla" wants to import that from blabla/blabla.d, .. maybe it can be fixed very fast with a -I option or something, but atm it had problems when compiling the files from same directory as they are in. |
Yeah, I ran into that issue also (assuming I understand your point correctly). D behaves quite differently from Java with respect to the import path. In particular, it has problems referencing a sibling path. This is why Mango will not compile successfully from within the subordinate directories. |
|
Back to top |
|
|
kris
Joined: 27 Mar 2004 Posts: 1494 Location: South Pacific
|
Posted: Thu May 20, 2004 9:43 am Post subject: Re: Socket and stuff |
|
|
tyfon wrote: | Shutdown is just something i allways do when i have a socket i want to close :p. The reuseaddress is as you say to make it not "crash" when you ctrl+c the server and start it again.
Also, i miss a function for atexit() in C, in case the server segfaults to do the same stuff.
I will look into the diffrent issues you have raised later today (first day off work for some weeks now |
One way to provide an equivalent for atexit() is to do this:
Code: | main()
{
try {
// do stuff
} finally {
// clean up
}
} |
Did you happen to have any luck with those socket issues on Linux? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|