tailieunhanh - Symbian OS Explained Effective C++ Programming for Smartphones phần 7

Có nguồn gốc lớp xuất khẩu chức năng bọc RSessionBase truyền thông với máy chủ và có ý nghĩa hơn cho các khách hàng tiềm năng của máy chủ (chẳng hạn như RFS:: Delete () hoặc RFS:: GetDir ()). Các quá tải của RSessionBase:: CreateSession () bắt đầu một phiên client-server mới. | Simpo PDF Merge and SplitHUnregistered Versions- http Having retrieved the client parameters the request-handling function then performs any necessary processing upon it-I ve omitted this from the example code to keep it straightforward. SlayNemean-LionL is a simple example because it is synchronous and doesn t package any return data to send to the client. Thus when the request processing is finished the server simply notifies the client by calling RMessage Complete which signals the client thread s request semaphore to indicate request completion. CaptureCeryneianHindL shows the server writing data back to the client thread - in this case it updates the integer value passed into the first element of the request data array. The server has an integer value count which represents the number of hinds captured. It descriptorizes this value using a TPckgC and calls RMessage WriteL to make an inter-thread data transfer into the client thread. Earlier I discussed in detail how the client submitted custom objects to the server such as those of T or C classes. I described how an object of class THydraData was marshaled into a descriptor using the TPckg class and in CHerculesSession SlayHydraL you see what happens on the other side of the client - server boundary. The server instantiates its own THydraData object wraps it in a TPckg descriptor and then reconstitutes it by reading into it the descriptor passed by the client. Having done so the server performs the necessary processing which modifies the object. It writes the changes back to the client using RMessage WriteL . In a similar manner CHercules-Session SlayErymanthianBoarL shows how a server receives a streamed CBase-derived object in a descriptor and instantiates its own copy using the appropriate NewLC method. This object can then be passed as a parameter to the appropriate internal handling function. While most of the request handler methods shown are synchronous CleanAugeanStables and .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.