-
Re: Resolution Emulator (r63b, Code Name: RAJ, C++03)
Update:
Code:
// ...
// Turns off all the bits in tmpAddr (sin_zero needs to be zero-filled). Sets
// the address information.
memset(&tmpAddr, 0, sizeof(sockaddr_in));
tmpAddr.sin_family = AF_INET;
tmpAddr.sin_addr.s_addr = htonl(INADDR_ANY);
tmpAddr.sin_port = htons(_port);
// Binds the temporary address to the new socket.
result = bind(this->socketDescriptor, reinterpret_cast<sockaddr *>(&tmpAddr), sizeof(sockaddr));
// Determines if there was an error binding the socket to the address.
// :TODO: Log this error.
if (-1 == result) { }
}
// See header file.
TCPConnectionManager::~TCPConnectionManager() {
this->shutdown();
delete this->dispatcher;
}
// See header file.
/*short TCPConnectionManager::getSocketDescriptor() const {
return this->socketDescriptor;
}*/
// See header file.
TCPDispatcher &TCPConnectionManager::getDispatcher() {
return *(this->dispatcher);
}
// See header file.
void TCPConnectionManager::listen(const short _backlog) {
// Marks the socket as open for connections.
int result = ::listen(this->socketDescriptor, _backlog);
// Determines if there was an error listening.
// :TODO: Log this error.
if (-1 == result) { }
// No error, create a proper dispatcher.
else if (NULL == this->dispatcher) {
this->dispatcher = new TCPDispatcher(this->socketDescriptor);
}
// ...
-
Re: Resolution Emulator (r63b, Code Name: RAJ, C++03)
Quote:
Originally Posted by
Rav4eG
Code:
memset(&tmpAddr, 0, sizeof(sockaddr_in));
tmpAddr.sin_family = AF_INET;
tmpAddr.sin_addr.s_addr = htonl(INADDR_ANY);
tmpAddr.sin_port = htons(_port);
result = bind(this->socketDescriptor, reinterpret_cast<sockaddr *>(&tmpAddr), sizeof(sockaddr));
if (-1 == result) { }
}
TCPConnectionManager::~TCPConnectionManager() {
this->shutdown();
delete this->dispatcher;
}
TCPDispatcher &TCPConnectionManager::getDispatcher() {
return *(this->dispatcher);
}
void TCPConnectionManager::listen(const short _backlog) {
int result = ::listen(this->socketDescriptor, _backlog);
if (-1 == result) { }
else if (NULL == this->dispatcher) {
this->dispatcher = new TCPDispatcher(this->socketDescriptor);
}
WOW
SO MUCH UPDATE
There's a lot more done I just cbfa to post it just yet.
-
Re: Resolution Emulator (r63b, Code Name: RAJ, C++03)
God this is so interesting I've never really seen an emulator that's only going to be supporting Linux OS.
Looking very forward to this good luck BrainNo ( Nobrain ).
Verstuurd van mijn GT-I9070 met Tapatalk
-
Re: Resolution Emulator (r63b, Code Name: RAJ, C++03)
-
Re: Resolution Emulator (r63b, Code Name: RAJ, C++03)
See's new developer.. reports to Ella.. case closed. All sarcasm intended.
Glad to see someone stepping up a notch with a Linux based Emulator. Should make hosting a retro cheaper (Still no point in making one now days)
Question how ever, are you aiming for best coded & finished emulator, or just messy rushed half decent pile of code? :P
Best of luck.
-
Re: Resolution Emulator (r63b, Code Name: RAJ, C++03)
Quote:
Originally Posted by
FatalLulz
See's new developer.. reports to Ella.. case closed. All sarcasm intended.
Glad to see someone stepping up a notch with a Linux based Emulator. Should make hosting a retro cheaper (Still no point in making one now days)
Question how ever, are you aiming for best coded & finished emulator, or just messy rushed half decent pile of code? :P
Best of luck.
He'll be spending tons of hours for some rubbish code so you all can rename it and fix it so its worth a rename. Then if you're a dick you'll be selling this to other people and claim it as yours.
I assume there is a DBAD license on this.
-
Re: Resolution Emulator (r63b, Code Name: RAJ, C++03)
Quote:
Originally Posted by
FatalLulz
See's new developer.. reports to Ella.. case closed. All sarcasm intended.
Glad to see someone stepping up a notch with a Linux based Emulator. Should make hosting a retro cheaper (Still no point in making one now days)
Question how ever, are you aiming for best coded & finished emulator, or just messy rushed half decent pile of code? :P
Best of luck.
There's nothing stopping anyone from running their emulator on a Linux server now. It's what developments like Mono are there for.
-
Re: Resolution Emulator (r63b, Code Name: RAJ, C++03)
Quote:
Originally Posted by
HillBilly
He'll be spending tons of hours for some rubbish code so you all can rename it and fix it so its worth a rename. Then if you're a dick you'll be selling this to other people and claim it as yours.
I assume there is a DBAD license on this.
Doubt people would be able to rename it easily anyway...
-
Re: Resolution Emulator (r63b, Code Name: RAJ, C++03)
Quote:
Originally Posted by
ησвяαιη
Doubt people would be able to rename it easily anyway...
Nothing to stop someone slamming a new project title on it and putting 'x emulator' in their release thread. \o/
-
Re: Resolution Emulator (r63b, Code Name: RAJ, C++03)
Jak is right some people are able to get the source eventually and edit it and do some editing work on the text and release it and call it for example: Sunshine emulator and put credits for their own because they thhink people believe that they've actualy coded it...
Doubt it on this emulator but I'm not going to confirm.
-
Re: Resolution Emulator (r63b, Code Name: RAJ, C++03)
People complaining about renames is how renames occur.
-
Re: Resolution Emulator (r63b, Code Name: RAJ, C++03)
Don't agree on that it's not that people complain that people are tempting to make edits and rename it but it's because they want to get attention or they want to get popular by renaming something that is popular and claiming they've coded all the features to make them look good and to get the good things to them to be honest.
-
Re: Resolution Emulator (r63b, Code Name: RAJ, C++03)
Quote:
Originally Posted by
n0minal
Nothing to stop someone slamming a new project title on it and putting 'x emulator' in their release thread. \o/
I was talking about the project files aha
-
Re: Resolution Emulator (r63b, Code Name: RAJ, C++03)
Quote:
Originally Posted by
Quackster
People complaining about renames is how renames occur.
No. Renames occur when they get Leonised. (The definition of Leonise = downloaded, slap a new name on it, claim credits for sh!t all, sell for $100) Silverwave, Skybird..
@n0minal I mean someone purely intended the Emulator to be for Linux.. meaning you don't have to use other programs to make it work on Linux. That's what I was getting at, as I know you can do it now, someone did it with Phoenix and it works fine.
-
Re: Resolution Emulator (r63b, Code Name: RAJ, C++03)
Quote:
Originally Posted by
FatalLulz
No. Renames occur when they get Leonised. (The definition of Leonise = downloaded, slap a new name on it, claim credits for sh!t all, sell for $100) Silverwave, Skybird..
@
n0minal I mean someone purely intended the Emulator to be for Linux.. meaning you don't have to use other programs to make it work on Linux. That's what I was getting at, as I know you can do it now, someone did it with Phoenix and it works fine.
I shall be adding Leonise to my dictionary and yea I do agree with you , no need to have the trouble to install mono and to get a .net program to work on linux when there's finally and emu like this coming out (maybe if he doesn't stop the development that is.)