/* Simplified socket access functions */
-class SimpleSocket {
+class SimpleSocket
+{
SOCKET s;
char *buf;
int fill ();
void invalidate (void);
- public:
- SimpleSocket (const char *hostname, int port);
- ~SimpleSocket ();
+public:
+ SimpleSocket (const char *hostname, int port);
+ ~SimpleSocket ();
int ok ();
int write (const char *buf, int len);
char *gets ();
- int read (char *buf, int len);
+ int read (char *buf, int len);
};