/* * $Id; pretocol.h $ * * Author: Tomi Ollila -- too ät iki piste fi * * Copyright (c) 2007 Tomi Ollila * All rights reserved * * Created: Sun Aug 26 22:40:13 EEST 2007 too * Last modified: Wed Jan 30 21:23:35 EET 2008 too */ #ifndef PRETOCOL_H #define PRETOCOL_H int readwt(int fd, char * buf, int len, int timeout); void sendident(int fd); int recvident(int fd, int timeout); int readhsmsg(int fd, unsigned char buf[256]); int writehsmsg(int fd, unsigned char * buf, int len); int dobindandlisten(int port, bool fatal); int doconnect(unsigned char * secrets, const char * host, int port); int doaccept(unsigned char * secrets, int ssd); #endif /* PRETOCOL_H */ /* * Local variables: * mode: c * c-file-style: "stroustrup" * tab-width: 8 * End: */