Re: Quick Sockets Question
On Sat, 4 Dec 1999 10:02:42 -0600, Roderick Jackson <rjackson at CSIWEB.COM>
wrote:
>Pete Eberlein wrote:
>>I've got some Linux based Euphoria socket code that uses tcp.
>
>Is that the code where you call functions across
>a network? I'll be sure to look into it.
Yup, thats the one. In RDC.e, the socket routines (read,write,connect,etc.)
are not as accessible in the code as I had previously thought. The c_func
calls are hard-coded into read_object/write_object routines, instead of
wrapping the socket functions in their own routine.
I eventually wanted to make RDC handle asynchronous sockets under Linux, but
haven't done enough research into the subject. Having looked at Brians
winsock server example, I am annoyed at how windows-centric the code is. Is
is possible to do asynchronous sockets without a window to get events from?
>>You need to know the broadcast address for your local area net. This is
>>usually the subnet address bitwise-or'ed with the bitwise-not of the
subnet
>>mask. For example, if your subnet mask is 255.255.255.0 and your ip
address
>>is 100.100.100.100, the broadcast address is probably 100.100.100.255.
>
>Thanks. I don't suppose there's a way to determine this mask
>value through code? Getting the local address I can do...
Not really sure how do it from code... under Linux you could exec "ifconfig
-a" and redirect the output to a file and parse it for the mask, but that
seems like an ugly hack.
>BTW -- I'll be sure to look at Brian's code as well, it might
>already demonstrate how to do this.
>
>
>Rod Jackson
Pete
|
Not Categorized, Please Help
|
|