Remote exploits/DoS (buffer overflow kind) work like a normal exploit but instead they then send the shellcode (exploit) or large junk string (DoS) over a socket so in order to create a remote exploit/DoS you must know socket programming.
Guide to *nix socket programming.
http://www.ecst.csuchico.edu/~beej/guide/net/html/ Hoped this has helped, if I didn't answer your question please refrase your question as I was a little confused on what you were exactly asking.