~ubuntu-branches/ubuntu/vivid/gcl/vivid

« back to all changes in this revision

Viewing changes to gcl-tk/socks.h

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2002-03-04 14:29:59 UTC
  • Revision ID: james.westby@ubuntu.com-20020304142959-dey14w08kr7lldu3
Tags: upstream-2.5.0.cvs20020219
ImportĀ upstreamĀ versionĀ 2.5.0.cvs20020219

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _H_SOCKS
 
2
#define _H_SOCKS
 
3
 
 
4
#include "obj.h"
 
5
 
 
6
obj sock_open_named_socket( obj name, bool async );
 
7
void sock_close_named_socket( obj named_socket );
 
8
 
 
9
obj sock_connect_to_name( obj host_id, obj name, bool async );
 
10
obj sock_accept_connection( obj named_socket, bool async );
 
11
 
 
12
obj sock_hostname_to_hostid( obj hostname, obj *aliases );
 
13
obj sock_hostid_to_hostname( obj hostid, obj *aliases );
 
14
bool sock_hostid_eq( obj hostid1, obj hostid2 );
 
15
 
 
16
/* items is a list of objects returned from
 
17
   sock_open_named_socket, sock_connect_to_name,
 
18
   or sock_accept_connection with async = YES
 
19
*/
 
20
 
 
21
obj sock_collect_data( obj items );
 
22
 
 
23
void sock_write( obj connection, const char *text, UINT_32 length );
 
24
 
 
25
/* sock_read should return 0 on EOF */
 
26
 
 
27
UINT_32 sock_read( obj connection, char *buffer, UINT_32 max_len );
 
28
void sock_close_connection( obj connection );
 
29
 
 
30
#endif /* _H_SOCKS */
 
31