- Joined
- Apr 2, 2013
- Posts
- 138
- Reaction score
- 7
Does anybody know of any guides to using both EPP and DAC?
Preferably with BASH, PHP or C?
Thanks
Preferably with BASH, PHP or C?
Thanks
I have read both of those, and I'm still a little confused
Have you any knowledge of programming?
What are you confused about exactly?
From your reply, I'd suggest that you are not ready to be programming to the levels needed. I'd read up on network socket programming and see how confident you feel with it. In simple terms you open the port, write to it and read the response then deal with the response however you see fit.
Nominet do not provide any code samples, they expect you to roll your own and most here who have done so will keep cards close to their chest as I'm guessing most have only written their code for catching purposes. If you understand network programming, then it's really quite simple to code something.
So what code do catchers need to be most proficient in these days? Scripts made entirely of c++, php, a mix, or something else completely?
Wish I had paid attention to coding years ago!
So what code do catchers need to be most proficient in these days? Scripts made entirely of c++, php, a mix, or something else completely?
Wish I had paid attention to coding years ago!
If you wanted raw speed, go assembly, long slog though. MASM makes me shudder and shiver
With PHP for your current needs you don't really need to look into network programming, off the top of my head code would look like
$sock = socket_create(af_inet, sock_stream, 0);
socket_connect($sock , 'dac.nic.uk' , 3043);
socket_send ($sock, "dom.uk", strlen(6), 0);
//read socket
//do as you need to do.
socket_send ($sock, "#exit", 5, 0);
socket_shutdown($sock, 2);
socket_close($sock);
Put a loop in to send multiple names, write to a database whatever, you need, but all the nasty network programming is done by PHP, the above it petty ALL the network programming needed for your needs.
I've been looking into speed of languages over the last couple of days, and Python seems to be the fastest from what I've read, when I'm back at my pic I'll post some links.
From what I have read on here it seems to be more to do with the latency to the Nominet servers
From what I have read on here it seems to be more to do with the latency to the Nominet servers
If a command takes 50ms to execute with one language and 5ms with another then latency will be an irrelevant factor.
Of course, if the language goes through the same common underlying C library files included with the OS then the actual language the control looping is written in is not going to make that much of a difference once the issue of compilation is removed from the equation as this mostly affects start-up time rather than execution time.
Python and PHP are interpreted languages. Any routine you write in those languages can be faster executed in assembler or C. I think people are getting too hung up on latency - although that is one factor it becomes irrelevant if your code is full of slow loops, function calls, even something as simple as variable declaration *if* you are going to have to pass through an interpreter before you even get to a precompiled library. Also my statement still stands - if your code requires 50ms to run something that can be run at 5ms in another language you are at a disadantage. I believe it was Alex here who had suggested reading about networks and socketing. This is a must. If these routines are poorly written or slow you will be wasting time trying to catch. Of course for compiling lists speed isn't an issue and, as mentioned, PHP socket handling is probably one of the easier wrappers to use.
Python and PHP are interpreted languages. Any routine you write in those languages can be faster executed in assembler or C. I think people are getting too hung up on latency - although that is one factor it becomes irrelevant if your code is full of slow loops, function calls, even something as simple as variable declaration *if* you are going to have to pass through an interpreter before you even get to a precompiled library. Also my statement still stands - if your code requires 50ms to run something that can be run at 5ms in another language you are at a disadantage. I believe it was Alex here who had suggested reading about networks and socketing. This is a must. If these routines are poorly written or slow you will be wasting time trying to catch. Of course for compiling lists speed isn't an issue and, as mentioned, PHP socket handling is probably one of the easier wrappers to use.
Who's for Rob and Alex have a script speed off battle