Commit 17888141afc4742246c49ba9805a23e1e26ad95b

Authored by Perry Werneck
1 parent 4e0716d0
Exists in master and in 1 other branch develop

Working on IPC Windows.

Showing 2 changed files with 7 additions and 5 deletions   Show diff stats
src/windows/gobject.c
@@ -102,6 +102,7 @@ void ipc3270_set_session(GObject *object, H3270 *hSession, const char *name, GEr @@ -102,6 +102,7 @@ void ipc3270_set_session(GObject *object, H3270 *hSession, const char *name, GEr
102 lib3270_set_session_id(ipc->hSession, id); 102 lib3270_set_session_id(ipc->hSession, id);
103 103
104 ipc->source->hPipe = hPipe; 104 ipc->source->hPipe = hPipe;
  105 + ipc->source->hSession = hSession;
105 ipc->source->state = PIPE_STATE_WAITING; 106 ipc->source->state = PIPE_STATE_WAITING;
106 ipc->source->overlap.hEvent = CreateEvent( NULL,TRUE,TRUE,NULL); 107 ipc->source->overlap.hEvent = CreateEvent( NULL,TRUE,TRUE,NULL);
107 108
src/windows/gobject.h
@@ -65,13 +65,14 @@ @@ -65,13 +65,14 @@
65 } IPC3270_PIPE_STATE; 65 } IPC3270_PIPE_STATE;
66 66
67 typedef struct _ipc3270_pipe_source { 67 typedef struct _ipc3270_pipe_source {
68 - GSource gsrc;  
69 - HANDLE hPipe; 68 + GSource gsrc;
  69 + HANDLE hPipe;
70 70
71 - IPC3270_PIPE_STATE state; 71 + IPC3270_PIPE_STATE state;
  72 +
  73 + OVERLAPPED overlap;
  74 + unsigned char buffer[PIPE_BUFFER_LENGTH+1];
72 75
73 - OVERLAPPED overlap;  
74 - unsigned char buffer[PIPE_BUFFER_LENGTH+1];  
75 } IPC3270_PIPE_SOURCE; 76 } IPC3270_PIPE_SOURCE;
76 77
77 struct _ipc3270 { 78 struct _ipc3270 {