Description

Forces binding to a specific address.

Some servers may request packets being sent from a specific address, then one binds to that address before proceeding to dial.

If no address is provided or bind is not called, a random port is bound automatically to any address.

@note IP and PORT must be all numeric, no name resolution is applied.

Since 1.19

Values

  • address - Address to bind to

Signature

@property bind {
    get {
        values {
            address: free(string, free) @nonull;
        }
    }
    set {
        values {
            address: free(string, free) @nonull;
        }
        return: Eina.Error;
    }
}

C signature

const char *efl_net_socket_udp_bind_get(const Eo *obj);
Eina_Error efl_net_socket_udp_bind_set(Eo *obj, const char *address);

Implemented by

  • Efl.Net.Socket.Udp.bind