File: sockets.h

package info (click to toggle)
tetrinet 0.11%2BCVS20070911-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 332 kB
  • sloc: ansic: 4,410; makefile: 41
file content (18 lines) | stat: -rw-r--r-- 487 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Tetrinet for Linux, by Andrew Church <achurch@achurch.org>
 * This program is public domain.
 *
 * Socket routine declarations.
 */

#ifndef SOCKETS_H
#define SOCKETS_H

extern int sgetc(int s);
extern int sungetc(int c, int s);
extern char *sgets(char *buf, int len, int s);
extern int sputs(const char *buf, int len);
extern int sockprintf(int s, const char *fmt, ...);
extern int conn(const char *host, int port, char ipbuf[4]);
extern void disconn(int s);

#endif	/* SOCKETS_H */