Initializes the ethernet connection. Gets the local ip address from the DHCP service. Returns true if the ip address was assigned successfully. MacAddress - The shield mac address.
Allows for the renewal of DHCP leases. This method should be called approximately every second when the the ethernet was initialized with InitializeDHCP.
Initializes the server. Port - The server port. NewConnectionSub - The sub that will handle the NewConnection event.
ListenAsvoid
Starts listening for connections. The NewConnection event will be raised when data from the new client is available. This means that the client is expected to send at least one byte after the connection is established. You should call Listen again after the connection has broken. AsyncStreams_Error is a good place for this call.
Initializes the object. Returns True if successful. Port - The UDP socket will be bound to this port. PacketArrivedSub - The sub that handles the PacketArrived event.
SendPacketAsBoolean
Sends the packet.
Write (Data() AsByte) AsInt
Writes data to the packet. Returns the number of bytes that were written successfully. This method should only be called between a call to BeginPacket and SendPacket. You can call Write multiple times.
Top