X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=proto.h;h=ea5eeda78f6c7560faefbcc719a90c05c055645a;hb=99f2e8c32508ab193c1d42221c86cb7fca4be9ab;hp=e0e081d01c847655af1fd474c8ac5572ad93f200;hpb=e0d6c6eb80e1c3ce8c95954002bb3c6642681758;p=rdpsrv diff --git a/proto.h b/proto.h index e0e081d..ea5eeda 100644 --- a/proto.h +++ b/proto.h @@ -36,6 +36,7 @@ BOOL iso_recv_connect(int server_sock); void iso_disconnect(void); /* licence.c */ void licence_process(STREAM s); +void send_authreq(); /* mcs.c */ STREAM mcs_init(int length); BOOL mcs_recv_connect_initial(); @@ -65,8 +66,7 @@ void rdp5_process(STREAM s, BOOL encryption); /* rdp.c */ STREAM rdp_recv(uint8 * type); void rdp_out_unistr(STREAM s, char *string, int len); -void rdp_send_input(uint32 time, uint16 message_type, uint16 device_flags, uint16 param1, - uint16 param2); +void rdp_recv_input(STREAM s, uint32 *time, uint16 *message_type, uint16 *device_flags, uint16 *param1, uint16 *param2); void process_colour_pointer_pdu(STREAM s); void process_cached_pointer_pdu(STREAM s); void process_system_pointer_pdu(STREAM s); @@ -76,7 +76,7 @@ BOOL rdp_main_loop(void); BOOL rdp_connect(char *server, uint32 flags, char *domain, char *password, char *command, char *directory); void rdp_disconnect(void); -void rdp_send_bitmap_update(void); +void rdp_send_bitmap_update(unsigned x, unsigned y, unsigned width, unsigned height, unsigned char *data); /* rdpdr.c */ void rdpdr_send_connect(void); void rdpdr_send_name(void); @@ -120,7 +120,9 @@ STREAM tcp_init(uint32 maxlen); void tcp_send(STREAM s); STREAM tcp_recv(STREAM s, uint32 length); BOOL tcp_recv_connect(int server_sock); +int tcp_connect(char *server, int port); void tcp_disconnect(void); +int tcp_get_socket(void); /* xclip.c */ void ui_clip_format_announce(uint8 * data, uint32 length); void ui_clip_handle_data(uint8 * data, uint32 length);