RE: IRC client

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

Now that I relook at Kat's fix, I'm surprised to find that she was 
incorrect! Shame on you Kat :P

Socket variables should be atoms, but the second fix allocates 4 bytes 
for the port, when it can never exceed 2 bytes.

So, yes, only the socket variables need to be changed to atoms.
Other than that, I've used every TCP routine in the lib, and have run 
into no problems.


Chris


Ray Smith wrote:
> 
> bensler at mail.com wrote:
> 
> Hi Chris (and Kat),
> 
> I have taken your advice and attempted to update euTcp4u.
> 
> I put the below changes into my source and tried to run my test
> programs but they failed.
> 
> With the changes you have made can you run the "server.exw" and
> "client.exw" that come with euTcp4u?
> 
> I left "connect_socket" as an atom but removed the second change and
> my test programs work again.
> Does your IRC code work if the second change is not used?
> 
> I might also wrap the UDP functions as well ... see how I go.
> 
> Regards,
> 
> Ray Smith
> 
> 
> > Ray, you really should post an update of eutcp4u, with the needed fixes, 
> > 
> > 
> > would save some trouble :)
> > I haven't looked into it, but perhaps it's a similar problem with 
> > eulibnet, I wasn't able to connect with that one either.
> > 
> > here is Kat's fix..
> > 
> > I found two bugs in tcp4u:
> > 
> > line 505 in function tcp4u_connect() 
> > connect_socket should be an atom, it goes outside the range of integers
> > 
> > lines:
> > 495:     port_addr = allocate(2)
> > 496:     poke(port_addr, port)
> > 
> > make them into:
> > 
> > port_addr = allocate(4)
> > poke4(port_addr,port)
> > 
> > That should be enough to get started. 
> 
> 
> Ray Smith
> http;//www.geocities.com/ray_223
> 
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu