Re: Winsock Wrapper (Winsock.ew) not working on WsockSendData?
- Posted by RedWordSmith <redwordsmith at NIC.DREAMHOST.COM> Sep 11, 1999
- 427 views
RedWordSmith wrote: > > socketcommand = WsockSendData(119, "mode reader\r") > -- WsockSendData ends up returning an error on this. > -- The comments in Winsock.ew call this > -- "Fubar'ed really badly" After carefully reviewing everything, I've discovered my mistake (some of you may have just rolled your eyes and seen this immediately, but it doesn't seem to be archived, so I might as well explain it). The problem with the above code is that I'm basically trying to send "mode reader\r" *from* socket 119, which isn't connected to anything. "119" needs to be replaced by the value returned by "WsockCallSocket", which is the actual _local_ socket. I have to admit, I'm embarrassed it took me a week or so to notice that... > Am I overlooking something obvious? o_O > > -- > RWS