' (1) I have never used WS_SELECT (select), therefore I must warn that I do
' not know if fd_set and timeval are properly defined.
' (2) A lot of the functions are declared with "buf as any", when calling these
' functions you may either pass strings, byte arrays or UDT's. For 32bit I
' I recommend Byte arrays and the use of memcopy to copy the data back out
' (3) The async functions (wsAsync*) require the use of a message hook or
' message window control to capture messages sent by the winsock stack. This
' is not to be confused with a CallBack control, The only function that uses
' callbacks is wsSetBlockingHook()
' (4) A lot of "helper" functions are provided in the file for various things
' before attempting to figure out how to call a function, look and see if
' there is already a helper function for it.
' (5) Data types (hostent etc) have kept there 16bit definitions, even under 32bit
' windows due to the problem of them not working when redefined following the
' suggested rules.
도움을 필요로 해요.. ;; 번역기 말고.. ;;; 마지막 시도.. ;;;
(1) 음..제가 WS_SELECT (select)를 써 본적이 없어요. 그래서 fd_set 하고 timeval 구조체 쪽이
제대로 정의되어 있는지 잘 모르겠네요. 이 점은 좀 주의하시길.
(2) 함수들 중 상당수가 '아무거나 버퍼로 사용 가능("buf as any")' 이라는 개념을 적용해서 정의되어
있어요. 음..이게 뭐냐면, 함수를 호출할 때 인자로 문자열이나 바이트 배열, UDT's (?) 등의 데이터를
(형식에 구애받지 않고) 자유롭게 보낼 수 있다는 거죠. 32비트 쪽에서는 Byte 배열을 쓰는 거랑,
데이터를 카피할 때(? back out?)시 memcopy를 사용하는 걸 권해요.
guest outside 님의 말:
(3) async 함수들(wsAsync*)으로 winsock 스택으로 전송된 메시지를 캡쳐하려면
메시지 훅이나 메시지 윈도 컨트롤이 필요해요. 음.. CallBack 컨트롤이랑은 좀 차이가 있어요.
callback을 쓰는 함수는 wsSetBlockingHook() 뿐이예요. (* 정확하지 않은 번역입니다.
CallBack 컨트롤과 혼동하지 마세요. wsSetBlockingHook()에서만 callback들을 씁니다. 라고
번역할 수도 있습니다)
(4) 여러 helper 함수(class 외부에서 class 내의 변수를 억세스하기 위한 함수들)들이 있어요.
함수를 어떻게 하면 호출할 수 있을까에 대해서 알아보기 전에, 그런 역할을 하는 helper 함수들이
이미 있
guest outside 님의 말:
있지는 않은지 확인해보세요.
(5) 데이터 타입(hostenc 같은)들은 32비트 윈도 하에서도 16비트쪽의 정의(definition)를 그대로 쓰는데,
다음과 같은 규칙/상황/조건(suggested rules)에서 재정의되었을때 동작하지 않는 문제가 있어서 그래요.
래요. 이 답글은 그레이스씨 (http://kyungjae.net)가 해석해 주었어요. :) 감사의 말은 본인에게 직접 전해주세요. ^^