stun

simple point to point tunnel
git clone git://git.2f30.org/stun
Log | Files | Refs | README

commit b9d6b2643295074574f551fbec26b624fb4c2ec4
parent 5744ad96762b7364dcbce292ba3a34c30cc1b506
Author: sin <sin@2f30.org>
Date:   Mon, 21 Mar 2016 18:50:35 +0000

remove some useless comments

Diffstat:
Mstun.c | 4----
1 file changed, 0 insertions(+), 4 deletions(-)

diff --git a/stun.c b/stun.c @@ -191,7 +191,6 @@ unpack32(unsigned char *buf) return buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3]; } -/* handles partial writes */ int writeall(int fd, void *buf, int len) { @@ -213,7 +212,6 @@ writeall(int fd, void *buf, int len) return total; } -/* encrypt a packet and send it to the remote peer */ int writenet(int fd, unsigned char *buf, int len) { @@ -226,7 +224,6 @@ writenet(int fd, unsigned char *buf, int len) return writeall(fd, encbuf, pktlen); } -/* handles partial reads */ int readall(int fd, void *buf, int len) { @@ -248,7 +245,6 @@ readall(int fd, void *buf, int len) return total; } -/* read a packet from the remote peer, decrypt it and pass it back through buf */ int readnet(int fd, unsigned char *buf, int len) {