ubit
Public Types | Public Member Functions | List of all members
ubit::UMSrequest Struct Reference

UMS Request (from a Client to the UMS server). More...

#include <umsproto.hpp>

Inheritance diagram for ubit::UMSrequest:
ubit::UOutbuf ubit::UIObuf

Public Types

enum  RequestType {
  KEY_MOUSE_CTRL = 1, SEND_EVENT = 2, SEND_MESSAGE = 3, SET_NEIGHBOR = 8,
  CALIBRATE = 9, BROWSE_NEIGHBORS = 10, BROWSE_SERVERS = 11, RESOLVE_SERVER = 12,
  RESOLVE_WINDOW = 13, BROWSE_WINDOWS = 14, GET_SCREEN_SIZE = 20, MOVE_BACK_POINTER = 30,
  FILE_TRANSFERT = 33, OPEN_DEVICE = 40, CLOSE_DEVICE = 41, TACTOS = 50,
  REQUEST_COUNT
}
 

Public Member Functions

 UMSrequest (unsigned char reqtype)
 
- Public Member Functions inherited from ubit::UOutbuf
void writeChar (char)
 
void writeChar (unsigned char)
 
void writeShort (short)
 
void writeLong (long)
 
void writeString (const UStr &)
 
void writeString (const char *)
 
void writeString (const char *s, unsigned int len)
 
void writeEvent (unsigned char event_type, unsigned char event_flow, long x, long y, unsigned long detail)
 
- Public Member Functions inherited from ubit::UIObuf
const char * data () const
 
char * data ()
 returns the data in this IObuf (may be NOT null-terminated). More...
 
unsigned int size () const
 
unsigned int consumed () const
 
bool resize (unsigned short)
 
bool augment (unsigned short)
 

Additional Inherited Members

- Protected Types inherited from ubit::UIObuf
enum  { DEFAULT_BUFSIZE = 512, AUGMENT_QUANTUM = 2048 }
 
- Protected Attributes inherited from ubit::UIObuf
char * buffer
 
char default_buffer [DEFAULT_BUFSIZE]
 
unsigned int inpos
 
unsigned int outpos
 
unsigned int bufsize
 

Detailed Description

UMS Request (from a Client to the UMS server).

<

pre>

reqtype(uchar) | arguments(c = uchar / c* = char* / l = long)

KEY_MOUSE_CTRL (c)evtype (c)evflow (l)x (l)y (l)btn|key|mvm SEND_EVENT (c)evtype (c)evflow (l)x (l)y (l)btn|key|mvm (c*)target SEND_MESSAGE (c*)target (c*)message SERVER_REQUEST (c*)request

...

target identifies a window as follows:


The documentation for this struct was generated from the following file: