RichEdit Winsock

new topic     » topic index » view thread      » older message » newer message

Hi All
The Senario win32lib.ew and winsock.ew.

-- client
procedure onEvent_Win(integer self, integer event, sequence params)
-- client
integer fdvent, fd_hi
if params[1] = conevent then
	    fdevent = params[3]
	    fd_hi = hi_word(fdevent)
	if fd_hi >= WSABASEERR then
	    setFocus(Report)
	    setFont(Report, {255,"Arial"}, 10, Normal)
	    appendText(RichEd, WsockTellError(fd_hi)&"\r")
	    
	end if
end if
end procedure

if fd_hi = WSAECONNREFUSED works ok
if fd_hi = WSAECONNABORTED reset RichEd attribs
Not a big issue but if someone has an idea how to fix this problem?

Tj

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu